Back to Home
lucad-28 icon

traffict-mcp-server

Verified Safe

by 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

Run Command
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-server

Environment 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

Stats

Interest Score0
Security Score8
Cost ClassMedium
Avg Tokens2500
Stars0
Forks0
Last Update2025-12-03

Tags

Traffic PredictionAPI IntegrationSSE TransportPythonCloud Native