transport12 MCP Server
Enables CrewAI agents to utilize transport12 API for transport data.
Enables GitHub Copilot to query transport12 API for transport data via MCP.
Allows LangChain agents to interact with transport12 API for transport data.
Allows LangGraph agents to interact with transport12 API for transport data.
Provides tools for integrating transport12 API into n8n workflows.
Enables OpenAI Codex CLI to interact with transport12 API for public transport information.
Provides tools for accessing transport12 API from Yandex Cloud AI Studio.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@transport12 MCP Server What are the next arrivals at Main Station?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
transport12-mcp

MCP-сервер для HTTP API transport12.
Сервер не обращается напрямую к внешним транспортным источникам. Все данные берутся через API основного сервиса transport12.
Меню
Related MCP server: mcp-stm-montevideo
Быстрый старт
Локальный запуск через npm:
TRANSPORT12_API_BASE_URL=https://your-transport12-api.example npx -y transport12-mcpГотовый удаленный MCP endpoint:
https://transport12.yasg.ru/mcpЕсли AI-клиент поддерживает удаленный MCP, достаточно указать этот URL как Streamable HTTP MCP server.
Варианты подключения
1. Локальный MCP
AI-клиент запускает пакет у пользователя на компьютере или на его сервере.
npx -y transport12-mcpМинимальная переменная окружения:
TRANSPORT12_API_BASE_URL=https://your-transport12-api.example2. Удаленный MCP
Можно использовать готовый endpoint:
https://transport12.yasg.ru/mcpИли поднять свой HTTP-сервис:
MCP_TRANSPORT=http MCP_PORT=3001 MCP_PATH=/mcp MCP_ALLOWED_HOSTS=your-mcp-host.example TRANSPORT12_API_BASE_URL=http://127.0.0.1:3000 transport12-mcpЕсли задан MCP_AUTH_TOKEN, клиент должен передавать:
Authorization: Bearer <token>Переменные окружения
Переменная | Обязательна | По умолчанию | Назначение |
| да | нет | Базовый URL API |
| нет |
|
|
| нет |
| Host для HTTP MCP |
| нет |
| Port для HTTP MCP |
| нет |
| Path для Streamable HTTP MCP |
| нет | нет | Разрешенные внешние host-ы за reverse proxy |
| нет | нет | Bearer token для защищенного HTTP MCP |
Подключение к AI-клиентам и агентам
Claude Desktop
Стабильный вариант для Claude Desktop - локальный stdio MCP:
{
"mcpServers": {
"transport12": {
"command": "npx",
"args": ["-y", "transport12-mcp"],
"env": {
"TRANSPORT12_API_BASE_URL": "https://your-transport12-api.example"
}
}
}
}Если ваша версия Claude Desktop или рабочее пространство поддерживает удаленные MCP/connectors через интерфейс приложения, используйте URL:
https://transport12.yasg.ru/mcpЕсли прямое подключение HTTP MCP в Claude Desktop недоступно, используйте локальный npx-вариант выше или Claude Code CLI.
Claude Code CLI
Удаленный MCP:
claude mcp add --transport http transport12 https://transport12.yasg.ru/mcpЛокальный MCP:
claude mcp add transport12 -- npx -y transport12-mcpДля локального варианта добавьте TRANSPORT12_API_BASE_URL в окружение терминала или в JSON-конфигурацию Claude Code.
OpenAI Codex CLI
Локальный MCP в ~/.codex/config.toml:
[mcp_servers.transport12]
command = "npx"
args = ["-y", "transport12-mcp"]
env = { TRANSPORT12_API_BASE_URL = "https://your-transport12-api.example" }Локальный MCP через CLI:
codex mcp add transport12 --env TRANSPORT12_API_BASE_URL=https://your-transport12-api.example -- npx -y transport12-mcpУдаленный MCP в ~/.codex/config.toml:
[mcp_servers.transport12]
url = "https://transport12.yasg.ru/mcp"Gemini CLI
Gemini CLI использует mcpServers в ~/.gemini/settings.json или .gemini/settings.json.
{
"mcpServers": {
"transport12": {
"command": "npx",
"args": ["-y", "transport12-mcp"],
"env": {
"TRANSPORT12_API_BASE_URL": "https://your-transport12-api.example"
}
}
}
}Qwen Code
Qwen Code поддерживает MCP и может настраиваться через qwen mcp или settings.json.
Удаленный MCP:
qwen mcp add --transport http transport12 https://transport12.yasg.ru/mcpЛокальный MCP:
qwen mcp add transport12 -- npx -y transport12-mcpJSON-вариант:
{
"mcpServers": {
"transport12": {
"command": "npx",
"args": ["-y", "transport12-mcp"],
"env": {
"TRANSPORT12_API_BASE_URL": "https://your-transport12-api.example"
}
}
}
}Cursor, Windsurf, Cline, Roo Code, Kilo Code, Continue
Большинство IDE-агентов и расширений используют формат mcpServers.
{
"mcpServers": {
"transport12": {
"command": "npx",
"args": ["-y", "transport12-mcp"],
"env": {
"TRANSPORT12_API_BASE_URL": "https://your-transport12-api.example"
}
}
}
}Если клиент поддерживает remote MCP:
{
"mcpServers": {
"transport12": {
"url": "https://transport12.yasg.ru/mcp"
}
}
}VS Code, GitHub Copilot, Gemini Code Assist
Для клиентов VS Code, которые используют ключ servers, конфигурация обычно выглядит так:
{
"servers": {
"transport12": {
"url": "https://transport12.yasg.ru/mcp"
}
}
}Для расширений, которые используют mcpServers, применяйте общий JSON из раздела выше.
Zed
Для Zed используйте локальный stdio-вариант через npx или remote URL, если ваша версия клиента поддерживает HTTP MCP:
{
"context_servers": {
"transport12": {
"command": {
"path": "npx",
"args": ["-y", "transport12-mcp"],
"env": {
"TRANSPORT12_API_BASE_URL": "https://your-transport12-api.example"
}
}
}
}
}Cherry Studio, ChatWise, Trae AI, Tongyi Lingma
Для клиентов с китайской экосистемой используйте один из двух вариантов:
Локальный stdio:
{
"mcpServers": {
"transport12": {
"command": "npx",
"args": ["-y", "transport12-mcp"],
"env": {
"TRANSPORT12_API_BASE_URL": "https://your-transport12-api.example"
}
}
}
}Удаленный Streamable HTTP:
{
"mcpServers": {
"transport12": {
"url": "https://transport12.yasg.ru/mcp"
}
}
}Названия полей в конкретном клиенте могут отличаться: url, serverUrl, type, transport, headers. Если есть выбор транспорта, указывайте streamable-http или http.
Универсальный Streamable HTTP MCP
Для любого клиента с поддержкой remote MCP:
https://transport12.yasg.ru/mcpДля защищенного endpoint добавьте Bearer token в настройках клиента:
Authorization: Bearer <token>Подключение через платформы и LLM-провайдеры
YandexGPT / Yandex Cloud AI Studio
В Yandex Cloud AI Studio используйте MCP Hub и подключайте transport12 как внешний MCP-сервер. В настройках транспорта выбирайте HTTP/Streamable HTTP, если такой выбор доступен:
https://transport12.yasg.ru/mcpЕсли нужен изолированный контур, разверните transport12-mcp в своей инфраструктуре и укажите внутренний URL.
GigaChat
Для GigaChat подключение обычно делается не в самом пользовательском чате, а через MCP-совместимый агентный слой: LangChain/LangGraph, LlamaIndex, Dify, Flowise, CrewAI, AutoGen, VoltAgent или собственный backend.
Рекомендуемый вариант:
GigaChat -> агент/оркестратор с MCP client -> https://transport12.yasg.ru/mcpLangChain, LlamaIndex, Dify, Flowise, n8n, CrewAI, AutoGen, VoltAgent, Pipecat
Используйте transport12 как внешний MCP server. Для платформ с поддержкой HTTP MCP указывайте:
https://transport12.yasg.ru/mcpДля платформ, которые умеют только stdio, запускайте пакет локально:
TRANSPORT12_API_BASE_URL=https://your-transport12-api.example npx -y transport12-mcpРазработка
pnpm install
pnpm run check
pnpm run buildПроверить API:
TRANSPORT12_API_BASE_URL=https://your-transport12-api.example pnpm run smokeПроверить HTTP MCP:
MCP_HTTP_URL=https://transport12.yasg.ru/mcp pnpm run smoke:httpTools
health- проверить доступность API;get_api_summary- получить границы и возможности MCP-интеграции;get_service_status- проверить ключевые endpoint-ы API;search_stops- найти остановки по названию;find_nearby_stops- найти ближайшие остановки по координатам;get_stop_routes- получить маршруты остановки;get_stop_arrivals- получить фактическое прибытие транспорта на остановку;search_routes- найти маршруты;get_route- получить маршрут;get_route_stops- получить остановки маршрута;get_route_vehicles- получить транспорт на линии;get_vehicle_forecast- получить прогноз движения конкретной машины;search_bus_station_destinations- найти направления автовокзала;get_bus_station_races- получить рейсы автовокзала на дату;get_bus_station_calendar- получить наличие рейсов по датам для направления;get_ticket_url- получить ссылку покупки билета или страницу рейса;search_everything- единый поиск по остановкам, маршрутам и направлениям автовокзала.
Available Tools
17 toolsfind_nearby_stopsFind nearby stopsB
Find nearest stops by latitude and longitude.
Inputs: lat (required), lng (required).
get_api_summaryGet API summaryA
Return the MCP-facing transport12 API capabilities and endpoint map.
Inputs: no named parameters.
get_bus_station_calendarGet bus station calendarB
Get bus station race availability by date for a destination. The transport12 API limits the range to the source-supported future window.
Inputs: destinationId (required), to, days, from.
get_bus_station_racesGet bus station racesC
Get bus station races for a destination and date.
Inputs: date (required), destinationId (required).
get_routeGet routeC
Get route details by id.
Inputs: routeId (required).
get_route_stopsGet route stopsC
Get route directions and stops.
Inputs: routeId (required).
get_route_vehiclesGet route vehiclesC
Get online vehicles for a route.
Inputs: routeId (required).
get_service_statusGet service statusB
Run lightweight checks against key transport12 API endpoints.
Inputs: no named parameters.
get_stop_arrivalsGet stop arrivalsC
Get factual arrival data for a stop.
Inputs: stationId (required).
get_stop_routesGet stop routesC
Get routes serving a stop.
Inputs: stationId (required).
get_ticket_urlGet ticket URLA
Return a compact ticket purchase URL for a bus station race when available.
Inputs: date (required), destinationId (required), raceId.
get_vehicle_forecastGet vehicle forecastA
Get upcoming stops for a vehicle device code.
Inputs: deviceCode (required).
healthHealthB
Check transport12 API availability. Returns a sanitized health payload.
Inputs: no named parameters.
search_bus_station_destinationsSearch bus station destinationsC
Search bus station destinations by settlement name.
Inputs: query (required).
search_everythingSearch everythingA
Search stops, routes, and bus station destinations with one query.
Inputs: query (required), limit.
search_routesSearch routesA
Search routes by number or name. If query is omitted, returns all routes.
Inputs: kind, query.
search_stopsSearch stopsB
Search transport stops by name.
Inputs: query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most tools have clear resource-specific boundaries, but health and get_service_status overlap in purpose, and get_bus_station_races versus get_bus_station_calendar may confuse agents about which returns actual races versus availability. search_everything also partially duplicates the individual search tools, though its aggregate intent is clear.
The tool set follows a consistent snake_case verb_noun pattern with get_, search_, and find_ prefixes, making the API largely predictable. The lone 'health' tool breaks the pattern slightly, but it is still easily understood as a status check.
With 17 tools, the server is at the upper edge of a reasonable size, but the breadth of the domain—stops, routes, vehicles, bus stations, and tickets—justifies the count. No tool feels redundant enough to remove outright, though the three health/summary tools could arguably be consolidated.
The server covers the core read-only workflows for a transit API: searching stops/routes, retrieving arrivals and vehicle forecasts, and exploring bus station races and ticket URLs. Minor gaps exist such as lack of a stop detail endpoint, route schedule/timetable data, or direct bus station lookup by ID, but agents can work around these with the provided surface.
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Hosted MCP server for live public-data APIs and Skills for AI agents.
Geocoding, routing, isochrones, traffic, weather, and place search for AI agents. 19 MCP tools.
MCP server exposing the Backtest360 engine API as tools for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server for interacting with the Berlin Public Transport (BVG) API to search for locations and plan journeys. It provides real-time access to departures, arrivals, trip details, and vehicle tracking within Berlin's transit network.MIT
- AlicenseNot gradedqualityCmaintenanceMCP server exposing Montevideo public transportation data (STM) as tools for AI assistants, enabling natural language queries about routes, stops, arrivals, and trip planning.17 npm1MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that provides tools for querying live transit data (stops, departures, routes, vehicles, alerts) from any WP GTFS Pro site, enabling AI assistants to answer rider questions.16 npmGPL 2.0
- AlicenseAqualityCmaintenanceMCP server for Atlanta MARTA real-time transit data, enabling queries about train arrivals and bus positions via natural language.4MIT