Campinas Open Data MCP Server for Pydantic AIGive Pydantic AI instant access to 8 tools to Get Package, Get Resource, List Groups, and more
Pydantic AI brings type-safe agent development to Python with first-class MCP support. Connect Campinas Open Data through Vinkius and every tool is automatically validated against Pydantic schemas. catch errors at build time, not in production.
Ask AI about this MCP Server for Pydantic AI
The Campinas Open Data MCP Server for Pydantic AI is a standout in the Data Analytics category — giving your AI agent 8 tools to work with, ready to go from day one.
Vinkius delivers Streamable HTTP and SSE to any MCP client
import asyncio
from pydantic_ai import Agent
from pydantic_ai.mcp import MCPServerHTTP
async def main():
# Your Vinkius token. get it at cloud.vinkius.com
server = MCPServerHTTP(url="https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp")
agent = Agent(
model="openai:gpt-4o",
mcp_servers=[server],
system_prompt=(
"You are an assistant with access to Campinas Open Data "
"(8 tools)."
),
)
result = await agent.run(
"What tools are available in Campinas Open Data?"
)
print(result.data)
asyncio.run(main())
* Every MCP server runs on Vinkius-managed infrastructure inside AWS - a purpose-built runtime with per-request V8 isolates, Ed25519 signed audit chains, and sub-40ms cold starts optimized for native MCP execution. See our infrastructure
About Campinas Open Data MCP Server
Connect to the Campinas Open Data Portal (CKAN) and explore a wealth of public information from one of Brazil's major cities through natural conversation.
Pydantic AI validates every Campinas Open Data tool response against typed schemas, catching data inconsistencies at build time. Connect 8 tools through Vinkius and switch between OpenAI, Anthropic, or Gemini without changing your integration code. full type safety, structured output guarantees, and dependency injection for testable agents.
What you can do
- Dataset Discovery — Search for specific packages related to health, education, finance, or transport using keywords.
- Metadata Inspection — Retrieve full metadata for datasets and individual resources (files) to understand data structures.
- Organizational Mapping — List all city departments and organizations that provide public data.
- Thematic Exploration — Browse data by groups (e.g., 'Saúde', 'Educação') or tags to find relevant information quickly.
- Resource Access — Get direct links and metadata for CSVs, PDFs, and APIs hosted on the portal.
The Campinas Open Data MCP Server exposes 8 tools through the Vinkius. Connect it to Pydantic AI in under two minutes — credentials fully managed, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
All 8 Campinas Open Data tools available for Pydantic AI
When Pydantic AI connects to Campinas Open Data through Vinkius, your AI agent gets direct access to every tool listed below — spanning campinas, open-data, ckan, and more. Every call runs in a secure, isolated environment with full audit visibility. Beyond a simple connection, you get real-time monitoring of agent activity, enterprise governance, and optimized token usage.
Get package on Campinas Open Data
Get full metadata for a specific dataset
Get resource on Campinas Open Data
Get metadata for a specific resource
List groups on Campinas Open Data
g., Education, Health). List thematic groups
List organizations on Campinas Open Data
List organizations providing data
List packages on Campinas Open Data
List all dataset names
List tags on Campinas Open Data
List all tags used across the portal
Search packages on Campinas Open Data
Search for datasets matching specific criteria
Search resources on Campinas Open Data
g., name:financeiro). Search for resources based on fields
Connect Campinas Open Data to Pydantic AI via MCP
Follow these steps to wire Campinas Open Data into Pydantic AI. The entire setup takes under two minutes — your credentials stay safe behind Vinkius.
Install Pydantic AI
pip install pydantic-aiReplace the token
[YOUR_TOKEN_HERE] with your Vinkius tokenRun the agent
agent.py and run: python agent.pyExplore tools
Why Use Pydantic AI with the Campinas Open Data MCP Server
Pydantic AI provides unique advantages when paired with Campinas Open Data through the Model Context Protocol.
Full type safety: every MCP tool response is validated against Pydantic models, catching data inconsistencies before they reach your application
Model-agnostic architecture. switch between OpenAI, Anthropic, or Gemini without changing your Campinas Open Data integration code
Structured output guarantee: Pydantic AI ensures tool results conform to defined schemas, eliminating runtime type errors
Dependency injection system cleanly separates your Campinas Open Data connection logic from agent behavior for testable, maintainable code
Campinas Open Data + Pydantic AI Use Cases
Practical scenarios where Pydantic AI combined with the Campinas Open Data MCP Server delivers measurable value.
Type-safe data pipelines: query Campinas Open Data with guaranteed response schemas, feeding validated data into downstream processing
API orchestration: chain multiple Campinas Open Data tool calls with Pydantic validation at each step to ensure data integrity end-to-end
Production monitoring: build validated alert agents that query Campinas Open Data and output structured, schema-compliant notifications
Testing and QA: use Pydantic AI's dependency injection to mock Campinas Open Data responses and write comprehensive agent tests
Example Prompts for Campinas Open Data in Pydantic AI
Ready-to-use prompts you can give your Pydantic AI agent to start working with Campinas Open Data immediately.
"Search for datasets about 'educação' in Campinas."
"List all organizations that provide data to the portal."
"Get full metadata for the dataset 'vagas-em-creches'."
Troubleshooting Campinas Open Data MCP Server with Pydantic AI
Common issues when connecting Campinas Open Data to Pydantic AI through Vinkius, and how to resolve them.
MCPServerHTTP not found
pip install --upgrade pydantic-aiCampinas Open Data + Pydantic AI FAQ
Common questions about integrating Campinas Open Data MCP Server with Pydantic AI.
How does Pydantic AI discover MCP tools?
MCPServerHTTP instance with the server URL. Pydantic AI connects, discovers all tools, and generates typed Python interfaces automatically.Does Pydantic AI validate MCP tool responses?
Can I switch LLM providers without changing MCP code?
Explore More MCP Servers
View all →
LeadsRx
10 toolsAnalyze marketing attribution and track conversions via LeadsRx — get campaign results and touchpoint insights directly from your AI agent.

SPTrans Olho Vivo
13 toolsAccess real-time public transit data for São Paulo — track bus positions, check arrival forecasts, and locate stops across the city.

SimplyBook.me
10 toolsEnable your AI agent to manage appointments, browse staff calendars, and handle client records via the SimplyBook.me scheduling platform.

Gumlet
12 toolsOptimize images and stream video with automatic format conversion, lazy loading, and CDN delivery that loads pages faster.
