How to Use the Knack MCP in OpenAI Agents SDK
Connect your OpenAI Agents SDK directly to your Knack databases to read schemas, filter records, and write data autonomously.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Knack MCP to OpenAI Agents SDK
Create your Vinkius account to connect Knack to OpenAI Agents SDK and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Read and map dynamic schemas
The `list_objects` and `get_object_schema` tools map out your Knack database structure before your agent attempts any writes. When your agent needs to sync customer profiles, it pulls the exact field keys directly from the source. You don't have to hardcode field mappings in your Python scripts. The agent uses `list_object_fields` to check data types dynamically. If someone changes a column name in the UI, your code adapts immediately without breaking the production pipeline.
Execute precise CRUD operations via MCP Server
The `create_record` tool pushes new JSON payloads directly into your Knack tables through this MCP Server. Your specialized data-entry agents format the exact JSON string required by the API, matching the field keys they just discovered. For existing entries, `update_record` handles partial updates so you only touch the fields that actually changed. If a record needs removal, you handoff the task to an admin agent to execute `delete_record`. This triggers OpenAI's built-in guardrails to pause and ask for human confirmation before wiping data.
Query and audit specific entries
The `search_records` tool accepts Knack Filter format JSON to find exact matches across thousands of rows. When a support agent needs context, it filters by email or status and pulls only the relevant entries into the context window. Once you have the record ID, `get_record` fetches the complete row for detailed auditing. Your agent passes this raw data back to the OpenAI dashboard. You get full visibility into exactly what the model read before making a decision.
Set up Knack MCP in OpenAI Agents SDK
Prerequisites
- Python 3.10+ installed
-
openai-agentspackage (pip install openai-agents) - Active Vinkius subscription with a valid endpoint token
- 1
Install the SDK
Run
pip install openai-agentsto install the OpenAI Agents SDK. The MCP integration is built-in — no extra dependencies needed. - 2
Connect via SSE transport
Use
MCPServerSsewith your Vinkius endpoint URL. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. The SDK auto-discovers all Knack tools at runtime. - 3
Create your Agent
Pass the MCP to
Agent(mcp_servers=[server]). The agent receives Knack tools as native definitions — JSON schemas resolve automatically. - 4
Run the agent
Call
Runner.run(agent, prompt)to execute. The agent invokes the appropriate Knack tools and returns structured results. Copy the full example on the right to get started.
import asyncio
from agents import Agent, Runner
from agents.mcp import MCPServerSse
async def main():
async with MCPServerSse(
url="https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
) as server:
agent = Agent(
name="Knack Agent",
instructions="You have access to Knack tools.",
mcp_servers=[server],
)
result = await Runner.run(agent, "List recent transactions")
print(result.final_output)
asyncio.run(main()) Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Knack. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Knack MCP in OpenAI Agents SDK
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Knack MCP today
We host it, we monitor it, we maintain it. You just paste one token.