São Paulo (Cidade) MCP Server for LangChainGive LangChain instant access to 11 tools to Datastore Search, Datastore Search Sql, Get Group, and more
LangChain is the leading Python framework for composable LLM applications. Connect São Paulo (Cidade) through Vinkius and LangChain agents can call every tool natively. combine them with retrievers, memory, and output parsers for sophisticated AI pipelines.
Ask AI about this MCP Server for LangChain
The São Paulo (Cidade) MCP Server for LangChain is a standout in the Data Analytics category — giving your AI agent 11 tools to work with, ready to go from day one.
Vinkius delivers Streamable HTTP and SSE to any MCP client
import asyncio
from langchain_mcp_adapters.client import MultiServerMCPClient
from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent
async def main():
# Your Vinkius token. get it at cloud.vinkius.com
async with MultiServerMCPClient({
"sao-paulo-cidade": {
"transport": "streamable_http",
"url": "https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp",
}
}) as client:
tools = client.get_tools()
agent = create_react_agent(
ChatOpenAI(model="gpt-4o"),
tools,
)
response = await agent.ainvoke({
"messages": [{
"role": "user",
"content": "Using São Paulo (Cidade), show me what tools are available.",
}]
})
print(response["messages"][-1].content)
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 São Paulo (Cidade) MCP Server
Connect your AI agent directly to the São Paulo City Open Data Portal (CKAN). This server allows you to navigate thousands of public datasets covering health, education, transport, and finance in Brazil's largest city.
LangChain's ecosystem of 500+ components combines seamlessly with São Paulo (Cidade) through native MCP adapters. Connect 11 tools via Vinkius and use ReAct agents, Plan-and-Execute strategies, or custom agent architectures. with LangSmith tracing giving full visibility into every tool call, latency, and token cost.
What you can do
- Dataset Discovery — Search for specific datasets using keywords or list all available packages in the portal.
- Granular Inspection — Fetch detailed metadata for datasets and individual resources (files) to understand data structures.
- Advanced Data Querying — Perform searches within data stores or execute complex SQL queries directly on CSV-backed resources.
- Organizational Mapping — List and inspect city secretariats (organizations) and thematic groups to find relevant data sources.
- Tag Exploration — Browse datasets by tags to discover related public information across different departments.
The São Paulo (Cidade) MCP Server exposes 11 tools through the Vinkius. Connect it to LangChain in under two minutes — credentials fully managed, no infrastructure to provision, no vendor lock-in. Your configuration, your data, your control.
All 11 São Paulo (Cidade) tools available for LangChain
When LangChain connects to São Paulo (Cidade) through Vinkius, your AI agent gets direct access to every tool listed below — spanning open-data, urban-data, public-administration, 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.
Datastore search on São Paulo (Cidade)
Search data within a resource
Datastore search sql on São Paulo (Cidade)
SQL Query on a resource
Get group on São Paulo (Cidade)
Get group details
Get organization on São Paulo (Cidade)
Get organization details
Get package on São Paulo (Cidade)
Get dataset details
Get resource on São Paulo (Cidade)
Get resource details
List groups on São Paulo (Cidade)
g., Educação, Meio Ambiente). List groups (themes)
List organizations on São Paulo (Cidade)
g., Secretarias) that own datasets. List organizations
List packages on São Paulo (Cidade)
List all datasets (packages) in the portal
List tags on São Paulo (Cidade)
List tags
Search packages on São Paulo (Cidade)
Search datasets
Connect São Paulo (Cidade) to LangChain via MCP
Follow these steps to wire São Paulo (Cidade) into LangChain. The entire setup takes under two minutes — your credentials stay safe behind Vinkius.
Install dependencies
pip install langchain langchain-mcp-adapters langgraph langchain-openaiReplace the token
[YOUR_TOKEN_HERE] with your Vinkius tokenRun the agent
python agent.pyExplore tools
Why Use LangChain with the São Paulo (Cidade) MCP Server
LangChain provides unique advantages when paired with São Paulo (Cidade) through the Model Context Protocol.
The largest ecosystem of integrations, chains, and agents. combine São Paulo (Cidade) MCP tools with 500+ LangChain components
Agent architecture supports ReAct, Plan-and-Execute, and custom strategies with full MCP tool access at every step
LangSmith tracing gives you complete visibility into tool calls, latencies, and token usage for production debugging
Memory and conversation persistence let agents maintain context across São Paulo (Cidade) queries for multi-turn workflows
São Paulo (Cidade) + LangChain Use Cases
Practical scenarios where LangChain combined with the São Paulo (Cidade) MCP Server delivers measurable value.
RAG with live data: combine São Paulo (Cidade) tool results with vector store retrievals for answers grounded in both real-time and historical data
Autonomous research agents: LangChain agents query São Paulo (Cidade), synthesize findings, and generate comprehensive research reports
Multi-tool orchestration: chain São Paulo (Cidade) tools with web scrapers, databases, and calculators in a single agent run
Production monitoring: use LangSmith to trace every São Paulo (Cidade) tool call, measure latency, and optimize your agent's performance
Example Prompts for São Paulo (Cidade) in LangChain
Ready-to-use prompts you can give your LangChain agent to start working with São Paulo (Cidade) immediately.
"Search for datasets about public transport in São Paulo."
"List all organizations that provide open data in the portal."
"Get the details for the dataset 'folha-de-pagamento'."
Troubleshooting São Paulo (Cidade) MCP Server with LangChain
Common issues when connecting São Paulo (Cidade) to LangChain through Vinkius, and how to resolve them.
MultiServerMCPClient not found
pip install langchain-mcp-adaptersSão Paulo (Cidade) + LangChain FAQ
Common questions about integrating São Paulo (Cidade) MCP Server with LangChain.
How does LangChain connect to MCP servers?
langchain-mcp-adapters to create an MCP client. LangChain discovers all tools and wraps them as native LangChain tools compatible with any agent type.Which LangChain agent types work with MCP?
Can I trace MCP tool calls in LangSmith?
Explore More MCP Servers
View all →
LeadSquared
10 toolsManage leads, sales activities, and opportunities via the LeadSquared CRM API.

Wiagro
12 toolsAccess smart silobag monitoring via Wiagro — track temperature, humidity, CO2, rupture detection, and grain quality from any AI agent.

CoinPaprika API
10 toolsAccess cryptocurrency data — audit coins, markets, and exchanges via AI.

World Bank Population
5 toolsAccess demographic data, total populations, poverty headcount, and inequality (Gini) statistics instantly from the World Bank.
