MCPInstall
Smart Traffic Navigator logo

Smart Traffic Navigator

by gokborayilmaz 2 stars gokborayilmaz/smart-traffic-navigator-agent

This proxy analyzes traffic density, suggests alternative routes, and estimates travel time using Google Maps MCP. 🚗🛣️

READMEmain

21-Day Agent Series: Day 10 AGENT : Smart Traffic Navigator Agent

Smart Traffic Navigator Agent This agent is part of the "A New AI Agent Every Day!" Series - Day 10/21 - Smart Traffic Navigator Agent 🚦🚗✨ This AI agent analyzes real-time traffic density, suggests alternative routes, and estimates travel times using GoogleMaps MCP! 🗺️

Installation

Prerequisites

  • Python 3.9 or higher
  • Git
  • Virtual environment (recommended)

Steps

Don't forget to download nodejs for MCP

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-folder>
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Create a .env file in the root directory and configure it as follows:

    AZURE_OPENAI_ENDPOINT="your_azure_openai_endpoint"
    AZURE_OPENAI_API_VERSION="your_azure_openai_api_version"
    AZURE_OPENAI_API_KEY="your_azure_openai_api_key"
    GOOGLE_MAPS_API_KEY="YOUR_GOOGLE_MAPS_API_KEY"
    

Running the Application

Start the FastAPI server:

uvicorn upsonicai:app --reload

Open the UI in your browser:

http://127.0.0.1:8000/

Use the form to input:

  • Origin City
  • Destination City

Click "Find Route" to analyze the best route, traffic conditions, and alternative paths. Results will be displayed dynamically.

API Documentation

Interactive API docs are available at:

More Location Services MCP servers

Similar servers from the same category.

Baidu Map

baidu-maps

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。关于MCP协议,详见MCP官方文档。 目前提供的MCP工具列表包含8个核心API接口和MCP协议的对接, 涵盖逆地理编码、地点检索、路线规划等。 依赖MCP Python SDK和MCP Typescript SDK开发,任意支持MCP协议的智能体助手(如Claude、Cursor以及千帆AppBuilder等)都可以快速接入。

maplocation

Google Maps

modelcontextprotocol

Location services, directions, and place details

location

mta-mcp

nkasmanoff

MCP server for querying NY transit data

DataQuery

Gaode Map MCP Server Based on Streamable HTTP

Map