How to Use the Contractor+ MCP in Pydantic AI
Ensure type-safe field management by connecting Contractor+ to Pydantic AI for error-free estimates and invoicing.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Contractor+ MCP to Pydantic AI
Create your Vinkius account to connect Contractor+ 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.
Strict schema validation for Contractor+ estimates
Prevent your agent from generating malformed data. When your agent calls `create_estimate` or inspects `list_invoices`, Pydantic AI validates every single field against strict Python types at runtime. If the model tries to pass a string where a float is required, the execution fails instantly. This loud-failure approach stops corrupted financial data from hitting your database. You don't have to worry about silent formatting errors or missing fields when generating bills for your customers. It guarantees that every invoice matches your exact schema.
Type-safe client registration using this MCP Server
Keep your customer database clean and structured. The agent uses `create_client` and `list_properties` to register new leads and link them to physical addresses. Because Pydantic AI enforces strict data models, you will never end up with incomplete client files or broken phone numbers. If an agent attempts to pull client details using `get_client` and receives unexpected null values, the framework raises a clear validation error. This lets you catch data consistency issues immediately during development rather than in production.
Validate active jobs with Pydantic AI
Track your field crews with absolute certainty. Your agent monitors ongoing work using `list_jobs` and `list_work_orders`, converting the raw JSON responses into validated Python objects. This ensures your custom monitoring dashboards always receive clean, predictable data structures. You can also verify your automation channels by querying `list_webhooks`. This type-safe pipeline ensures that any automated dispatch trigger behaves exactly as expected, protecting your operations from unexpected API changes.
Set up Contractor+ 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": {
"contractor-mcp": {
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
}
}
})
agent = Agent(
"openai:gpt-4o",
toolsets=[toolset],
system_prompt="You have access to Contractor+ tools.",
)
result = await agent.run("List recent Contractor+ 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 Contractor+. 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 Contractor+ MCP in Pydantic AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Contractor+ MCP today
We host it, we monitor it, we maintain it. You just paste one token.