4,500+ servers built on MCP Fusion
Vinkius
Modulr logo
Vinkius
Pydantic AI logo

How to Use the Modulr MCP in Pydantic AI

Strict type-safe banking for Pydantic AI. Execute payments with runtime validation for every transaction.

See Vinkius in Action

Works with every AI agent you already use

…and any MCP-compatible client

Modulr MCP on Cursor AI Code Editor MCP Client Modulr MCP on Claude Desktop App MCP Integration Modulr MCP on OpenAI Agents SDK MCP Compatible Modulr MCP on Visual Studio Code MCP Extension Client Modulr MCP on GitHub Copilot AI Agent MCP Integration Modulr MCP on Google Gemini AI MCP Integration Modulr MCP on Lovable AI Development MCP Client Modulr MCP on Mistral AI Agents MCP Compatible Modulr MCP on Amazon AWS Bedrock MCP Support
MCP Servers - Free for Subscribers
Pydantic AI

Connect Modulr MCP to Pydantic AI

Create your Vinkius account to connect Modulr 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.

GDPR Free for Subscribers

Type-safe payment execution in Pydantic AI

Invoke `modulr_create_payment` with full Pydantic model validation. If your agent tries to send an invalid amount or a malformed IBAN, your application catches the error before the request hits the network. This prevents silent failures in your payment flow. You get a clean, validated response every time your agent executes a transaction.

Validate account state using Pydantic AI

Use `modulr_get_accounts` to fetch your current balance and account status. The server maps the raw API response to your Pydantic models, ensuring your agent knows exactly what it can spend. Any unexpected field in the bank's response triggers a validation error. You never hallucinate account data, ensuring your agent's financial decisions are grounded in hard facts.

Manage beneficiaries with Pydantic AI

Register recipients using `modulr_create_beneficiary` while enforcing strict data schemas. Your agent maintains the integrity of your payee list by validating every input against your defined models. Use `modulr_get_customers` to verify your existing entities. You ensure your agent only interacts with authorized accounts, keeping your integration clean and error-free.

Setup guide

Set up Modulr MCP in Pydantic AI

Prerequisites

  • Python 3.10+ installed
  • pydantic-ai-slim[fastmcp] package
  • Active Vinkius subscription with a valid endpoint token
  1. 1

    Install Pydantic AI with FastMCP

    Run pip install "pydantic-ai-slim[fastmcp]". The FastMCP toolset replaces the deprecated MCPServerHTTP class with full protocol support.

  2. 2

    Configure the FastMCPToolset

    Pass a JSON-style config dict to FastMCPToolset with your Vinkius URL. Replace [YOUR_TOKEN_HERE] with your token from cloud.vinkius.com. Supports Streamable HTTP, SSE, and Stdio transports.

  3. 3

    Create and run your agent

    Pass the toolset to Agent(toolsets=[toolset]) and call agent.run(). Swap openai:gpt-4o for any supported model — Anthropic, Google, Mistral, or Groq.

agent.py
from pydantic_ai import Agent
from pydantic_ai.toolsets.fastmcp import FastMCPToolset

toolset = FastMCPToolset({
    "mcpServers": {
        "modulr-mcp": {
            "url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
        }
    }
})

agent = Agent(
    "openai:gpt-4o",
    toolsets=[toolset],
    system_prompt="You have access to Modulr tools.",
)

result = await agent.run("List recent Modulr 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 Modulr Finance. 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 Modulr MCP in Pydantic AI

Yes. Every tool response is checked against your Pydantic models at runtime. If the API returns something unexpected, the agent stops immediately.
Install the MCP toolset and pass your server URL to the MCPToolset class. It integrates directly into your agent's toolset list.
It is designed for it. The tools output structured data that maps perfectly to your Python models, giving you total control over the agent's logic.
Use `modulr_list_payments` to pull your transaction arrays. Your agent will validate the entire list against your schema before it proceeds with any analysis.
The server uses HMAC-SHA256 to verify the origin and integrity of every request. Your financial data is protected by cryptographic signatures, and the server does not persist your transaction logs.

Start using the Modulr MCP today

We host it, we monitor it, we maintain it. You just paste one token.

Built & Managed by Vinkius 30s setup 7 tools

We've already built the connector for Modulr. Just plug in your AI agents and start using Vinkius.

No hosting. No infrastructure. No complex setup.
All 7 tools are live and waiting. You're up and running in seconds.

Claude Claude
ChatGPT ChatGPT
Cursor Cursor
Gemini Gemini
Windsurf Windsurf
VS Code VS Code
JetBrains JetBrains
Vercel Vercel
+ other MCP clients

Vinkius gives your AI agents access to the full catalog of app connectors, all fully managed, secure, and enterprise-ready. One subscription, every tool you need.

Zero hosting required Full MCP catalog included Enterprise-grade security Auto-updated by Vinkius

Built, hosted, and secured by Vinkius. You just connect and go.