How to Use the Arcadia Utility Cloud MCP in Pydantic AI
Type-safe utility tracking for Pydantic AI. Validate Arcadia Utility Cloud meter readings and statements at runtime.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Arcadia Utility Cloud MCP to Pydantic AI
Create your Vinkius account to connect Arcadia Utility Cloud 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.
Validate Meter Metrics
The `get_meter_data` tool retrieves raw consumption numbers that Pydantic AI validates against your predefined schemas. If the API returns a string where a float was expected for kilowatt-hours, your agent doesn't try to guess. It fails loudly with a validation error, catching type mismatches before they corrupt your energy dashboards. Building reliable pipelines means never trusting external API structures blindly. You define the exact shape of a valid meter reading in your Python code. The MCP server fetches the data, and the framework ensures every field matches perfectly before your agent processes the numbers.
Audit Accounts via MCP Server
Calling `get_account_check` and `list_accounts` maps out your active utility connections. Your code requests the current state of the Arcadia integration, receiving an array of account dictionaries. Pydantic AI parses these responses, ensuring every account ID and status flag conforms to your strict models. Setting up this connection requires the unified `MCPToolset` approach. Passing your Vinkius HTTP URL to the toolset and adding it to your Agent's toolsets array handles the plumbing. You get model-agnostic utility tracking that works equally well whether you run Claude, GPT-4, or a local Llama instance.
Parse Billing Statements
Executing `list_statements` followed by `get_statement` pulls the metadata for your utility bills. Financial applications demand exact precision, so your agent extracts the invoice amounts and dates through the type-safe framework. Hallucinated fields or missing currency markers trigger immediate runtime exceptions. Relying on the Streamable HTTP transport keeps the MCP connection stable during large data pulls. The Vinkius platform hosts the server externally, managing the complex authentication requirements. Your Pydantic AI application just makes the tool call, receives the validated JSON, and updates your accounting ledger.
Set up Arcadia Utility Cloud 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": {
"arcadia-utility-cloud-mcp": {
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
}
}
})
agent = Agent(
"openai:gpt-4o",
toolsets=[toolset],
system_prompt="You have access to Arcadia Utility Cloud tools.",
)
result = await agent.run("List recent Arcadia Utility Cloud 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 Arcadia. 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 Arcadia Utility Cloud MCP in Pydantic AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Arcadia Utility Cloud MCP today
We host it, we monitor it, we maintain it. You just paste one token.