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 Splunkbase
MCP server for Delve debugger integration
A Model Context Protocol server for retrieving and analyzing issues from Sentry.io
Monad MCP Server
Claude Server is an MCP implementation that enhances Claude's capabilities by providing sophisticated context management across sessions, enabling...
Defang CLI and sample projects. Develop Anything, Deploy Anywhere. Take your app from Docker Compose to a secure...
A server that implements the Anthropic Model Control Protocol (MCP) server for accessing Frappe.
🔥 Model Context Protocol (MCP) server for Firebase.





