TransportAI MCP Server
This is the backend server for the TransportAI project, implementing the Model Context Protocol (MCP) and integrating with the AviationStack API.
Project Structure
TransportAI/
├── server/ # FastAPI backend
│ └── main.py # Main server file
├── Dockerfile # Docker configuration
├── requirements.txt # Python dependencies
└── .env # Environment variables
Setup Instructions
Local Development
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venvScriptsactivate
- Install dependencies:
pip install -r requirements.txt
- Create a
.envfile in the root directory and add your AviationStack API key:
AVIATIONSTACK_API_KEY=your_api_key_here
- Start the server:
cd server
uvicorn main:app --reload
Smithery AI Deployment
Ensure you have Docker installed on your system
Build the Docker image:
docker build -t transportai-mcp .
- Test the Docker image locally:
docker run -p 8000:8000 -e AVIATIONSTACK_API_KEY=your_api_key_here transportai-mcp
- Deploy to Smithery AI:
- Create a new project in Smithery AI
- Upload the Dockerfile and related files
- Set the environment variable
AVIATIONSTACK_API_KEY - Deploy the application
API Endpoints
MCP Protocol Endpoints
GET /: Server status and version informationGET /mcp/health: Health check endpointPOST /mcp/query: Main MCP query endpoint- Request body:
{ "context": { "session_id": "optional_session_id" }, "query": "Get information for flight TK123", "parameters": { "flight_iata": "TK123" } }
- Request body:
Testing the MCP Server
You can test the MCP server using curl:
curl -X POST http://localhost:8000/mcp/query
-H "Content-Type: application/json"
-d '{
"context": {"session_id": "test_session"},
"query": "Get information for flight TK123",
"parameters": {"flight_iata": "TK123"}
}'
License
MIT
TransportAI Server
Project Details
- Srhot/TransportAI-MCP
- Last Updated: 5/28/2025
Recomended MCP Servers
An MCP server for conversion of units related to cooking
Model Context Protocol server for Replicate's API
Figma MCP Server with full API functionality
Create an interactive 2D world where players can engage with NPCs through tasks and conversations. Enhance gameplay with...
Model Context Protocol server for GitHub API integration
Markdown To PDF Conversion MCP
Arc Memory MCP Server - Bridge between Arc Memory TKG and MCP clients
This is the most comprehensive wordpress mcp server. Includes functionality to perform CRUD operations on Users, Blogs, Categories...
Implementation of an MCP (Model Context Protocol) Server for SQLite. It provides an AI model with context and...
Let the grumpy senior dev review your code with this MCP server





