EMT Madrid (Open Data) MCP Server for LangChainGive LangChain instant access to 4 tools to Get Bus Arrivals, List Bicimad Stations, Login, and more
LangChain is the leading Python framework for composable LLM applications. Connect EMT Madrid (Open Data) 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 EMT Madrid (Open Data) MCP Server for LangChain is a standout in the Government Public Data category — giving your AI agent 4 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({
"emt-madrid-open-data": {
"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 EMT Madrid (Open Data), 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 EMT Madrid (Open Data) MCP Server
Connect to the EMT Madrid Open Data platform to bring Madrid's mobility network into your AI agent. This server provides direct access to official transport data for the city of Madrid.
LangChain's ecosystem of 500+ components combines seamlessly with EMT Madrid (Open Data) through native MCP adapters. Connect 4 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
- Real-time Bus Arrivals — Use
get_bus_arrivalsto see exactly when the next bus is reaching a specific stop using its unique ID. - BiciMAD Integration — Use
list_bicimad_stationsto check bike availability and empty docks across the city's electric bike-sharing system. - Route Planning — Use
plan_bus_routeto find the best way to navigate the city using the EMT bus network from any starting stop. - Official Data — Access the same data used by official apps to ensure accuracy in your mobility workflows.
The EMT Madrid (Open Data) MCP Server exposes 4 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 4 EMT Madrid (Open Data) tools available for LangChain
When LangChain connects to EMT Madrid (Open Data) through Vinkius, your AI agent gets direct access to every tool listed below — spanning public-transport, real-time-data, bus-arrivals, 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 bus arrivals on EMT Madrid (Open Data)
Get real-time bus arrival times for a stop
List bicimad stations on EMT Madrid (Open Data)
Get status of all BiciMAD stations
Login on EMT Madrid (Open Data)
Login to EMT MobilityLabs to get an accessToken
Plan bus route on EMT Madrid (Open Data)
Calculate routes between points using the EMT network
Connect EMT Madrid (Open Data) to LangChain via MCP
Follow these steps to wire EMT Madrid (Open Data) 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 EMT Madrid (Open Data) MCP Server
LangChain provides unique advantages when paired with EMT Madrid (Open Data) through the Model Context Protocol.
The largest ecosystem of integrations, chains, and agents. combine EMT Madrid (Open Data) 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 EMT Madrid (Open Data) queries for multi-turn workflows
EMT Madrid (Open Data) + LangChain Use Cases
Practical scenarios where LangChain combined with the EMT Madrid (Open Data) MCP Server delivers measurable value.
RAG with live data: combine EMT Madrid (Open Data) tool results with vector store retrievals for answers grounded in both real-time and historical data
Autonomous research agents: LangChain agents query EMT Madrid (Open Data), synthesize findings, and generate comprehensive research reports
Multi-tool orchestration: chain EMT Madrid (Open Data) tools with web scrapers, databases, and calculators in a single agent run
Production monitoring: use LangSmith to trace every EMT Madrid (Open Data) tool call, measure latency, and optimize your agent's performance
Example Prompts for EMT Madrid (Open Data) in LangChain
Ready-to-use prompts you can give your LangChain agent to start working with EMT Madrid (Open Data) immediately.
"What are the bus arrival times for stop ID 72?"
"List all BiciMAD stations and their current bike availability."
"Plan a bus route starting from stop 1022."
Troubleshooting EMT Madrid (Open Data) MCP Server with LangChain
Common issues when connecting EMT Madrid (Open Data) to LangChain through Vinkius, and how to resolve them.
MultiServerMCPClient not found
pip install langchain-mcp-adaptersEMT Madrid (Open Data) + LangChain FAQ
Common questions about integrating EMT Madrid (Open Data) 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 →
Brasil.io
3 toolsAccess structured Brazilian public data — query COVID-19 stats, company records, and socio-economic datasets directly from your AI agent.

Tactile CRM
9 toolsConnect your AI to Tactile CRM. Query companies, read contact details, and evaluate your sales opportunities and pipelines natively from the terminal.

Jestor
10 toolsManage data, workflows, and records via Jestor low-code API.

ClubReady
11 toolsManage members, check-ins, classes, billing, prospects, and staff for your ClubReady (ABC Fitness) gym through natural conversation.
