How to Use the Eventcube MCP in Pydantic AI
Run type-safe Eventcube ticketing tasks with Pydantic AI to catch API errors before they break your sales.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Eventcube MCP to Pydantic AI
Create your Vinkius account to connect Eventcube to Pydantic AI and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Type-Safe Eventcube Operations with Pydantic AI
When your Pydantic AI agent runs `create_event` or `create_ticket`, you cannot afford silent failures. This MCP Server integrates with Pydantic AI to validate every Eventcube payload against strict Python schemas at runtime. If the Eventcube API returns unexpected field types, your Pydantic AI agent raises a validation error immediately. Preventing corrupted venue profiles or broken pricing tiers is crucial for keeping your checkout flow clean.
Model-Agnostic Ticketing Automations
Pydantic AI lets you swap your underlying LLM without rewriting your Eventcube tool integrations for `list_orders` and `get_event`. Whether you use Anthropic or OpenAI, your agent interacts with Eventcube's `list_orders` and `get_event` the exact same way. This gives you complete flexibility. You can use a fast, cheap model in Pydantic AI for running `resend_order_confirmation` emails, and switch to a smarter model when analyzing sales trends across Eventcube's `list_tickets` and `list_venues`.
Bulletproof Order Tracking and Validations
Avoid processing errors when looking up Eventcube customer files via `get_order`. When your Pydantic AI agent calls `get_order`, the framework checks the structure of the customer's email and ticket details to ensure they match your application's data models. This eliminates hallucinated order numbers. If a customer supplies an invalid ID, Pydantic AI catches it before the agent attempts to search Eventcube's `list_orders`, saving precious API tokens.
Set up Eventcube MCP in Pydantic AI
Prerequisites
- Python 3.10+ installed
-
pydantic-ai-slim[fastmcp]package - Active Vinkius subscription with a valid endpoint token
- 1
Install Pydantic AI with FastMCP
Run
pip install "pydantic-ai-slim[fastmcp]". The FastMCP toolset replaces the deprecatedMCPServerHTTPclass with full protocol support. - 2
Configure the FastMCPToolset
Pass a JSON-style config dict to
FastMCPToolsetwith your Vinkius URL. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. Supports Streamable HTTP, SSE, and Stdio transports. - 3
Create and run your agent
Pass the toolset to
Agent(toolsets=[toolset])and callagent.run(). Swapopenai:gpt-4ofor any supported model — Anthropic, Google, Mistral, or Groq.
from pydantic_ai import Agent
from pydantic_ai.toolsets.fastmcp import FastMCPToolset
toolset = FastMCPToolset({
"mcpServers": {
"eventcube-mcp": {
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
}
}
})
agent = Agent(
"openai:gpt-4o",
toolsets=[toolset],
system_prompt="You have access to Eventcube tools.",
)
result = await agent.run("List recent Eventcube transactions")
print(result.output) Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Eventcube. 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 Eventcube MCP in Pydantic AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Eventcube MCP today
We host it, we monitor it, we maintain it. You just paste one token.