traffict-mcp-server
Verified Safeby lucad-28
Overview
An MCP server that integrates with a traffic prediction API, offering tools to retrieve traffic station data, predict traffic Speed Performance Index (SPI), and suggest optimal routes.
Installation
docker run -p 8080:8080 -e MCP_API_KEY="your-secure-api-key-here" -e TRAFFIC_API_URL="https://traffict-predict-api-452792205673.southamerica-west1.run.app" traffic-mcp-serverEnvironment Variables
- TRAFFIC_API_URL
- PORT
- MAPBOX_ACCESS_TOKEN
- MCP_API_KEY
Security Notes
The server uses environment variables for sensitive data (TRAFFIC_API_URL, MCP_API_KEY, MAPBOX_ACCESS_TOKEN), which is a good practice. It explicitly supports API Key authentication for the SSE endpoint. CORS is wide open (`allow_origins=["*"]`) by default, which is noted as a security consideration in the README, suggesting it should be restricted in production. No 'eval' or other highly dangerous patterns were observed in the provided source code. The server acts as a proxy, so its overall security also depends on the upstream traffic API.
Similar Servers
lex
Provides a UK legal research API for AI agents, offering capabilities to search legislation, caselaw, amendments, and explanatory notes using semantic and keyword search, and includes a Micro-Copilot (MCP) server for integration with AI assistants.
mcp-boilerplate
Provides a production-ready boilerplate for an MCP server, enabling seamless connection of AI models to various data sources using Server-Sent Events (SSE) and offering a framework for tool execution.
mcp-server-ns-trains
Integrates Netherlands Railways (NS) train information into AI assistants for route planning, pricing, and real-time departures.
nagoya-bus-mcp
Provides tools to query Nagoya City bus timetables and real-time approach information for LLM agents.