How to Use the Cognito Forms MCP in OpenAI Agents SDK
Build production-grade Python agents that safely manage your Cognito Forms entries and schemas using the OpenAI Agents SDK and MCP.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Cognito Forms MCP to OpenAI Agents SDK
Create your Vinkius account to connect Cognito Forms 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.
Safe Entry Manipulation with OpenAI Agents SDK
The `create_entry` tool lets your agent write fresh submissions directly into your Cognito Forms. Instead of letting an agent run wild, the SDK applies strict guardrails to validate these writes before they hit your live database. If a user tries to submit bad data, the agent catches the error during the pre-execution check. You track every single payload and decision inside the OpenAI tracing dashboard to keep your production pipeline clean.
Dynamic Form Discovery for OpenAI Agents
The `list_forms` tool retrieves your active forms so the agent always knows what schemas are available. It pairs with `get_form_fields` to map out the exact structure of your target Cognito Form on the fly. Your agent auto-discovers these tools without manual configuration. It looks at the field types, figures out the required inputs, and builds the correct payload for the next step.
Precise Search and Retrieval
The `search_entries` tool scans your Cognito Forms database to find specific records matching your agent's query. It uses `get_entry` to pull down the full payload for the target record once found. This setup lets your OpenAI agent handle support tickets or update customer records without human intervention. You get full visibility into how the agent filters and selects these records through the SDK's built-in tracing.
Set up Cognito Forms 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 Cognito Forms tools at runtime. - 3
Create your Agent
Pass the MCP to
Agent(mcp_servers=[server]). The agent receives Cognito Forms tools as native definitions — JSON schemas resolve automatically. - 4
Run the agent
Call
Runner.run(agent, prompt)to execute. The agent invokes the appropriate Cognito Forms 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="Cognito Forms Agent",
instructions="You have access to Cognito Forms 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 Cognito Forms. 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 Cognito Forms 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 Cognito Forms MCP today
We host it, we monitor it, we maintain it. You just paste one token.