fastapi-multi-server-mcp
A comprehensive FastAPI application that hosts multiple MCP servers, each providing access to different public APIs and services.(Multi server MCP)
Install / Use
claude mcp add AlwaysSany -- npx -y github:AlwaysSany/fastapi-multi-server-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of fastapi-multi-server-mcp
fastapi-multi-server-mcp scores 81/100 on our quality scale, 2185th of 3,845 Development & Engineering skills we index.
Its MCP Server is 6.2 KB long, well organised into 33 sections with 9 code examples: a thorough specification that gives an agent plenty to work with.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so fastapi-multi-server-mcp is actively maintained.
- Our last check on 2026-09-26 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-26. Automated pattern scan on 2026-09-26. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
fastapi-multi-server-mcp compared with similar skills
All 4 of these similar skills score higher than fastapi-multi-server-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| fastapi-multi-server-mcp (this skill)by AlwaysSany | 81 | 3 | 47d ago | MCP Server |
| Agent-Reachby Panniantong | 100 | 86.3k | 14d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 74.1k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 73.6k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.2k | today | CLAUDE.md |
Frequently asked questions
- How do I install fastapi-multi-server-mcp?
- Run
claude mcp add AlwaysSany -- npx -y github:AlwaysSany/fastapi-multi-server-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does fastapi-multi-server-mcp work with?
- It is written for Claude Code, Claude Desktop, Cursor and Windsurf, as a MCP Server file. Other agents that read the same format can often use it too.
- Is fastapi-multi-server-mcp safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is fastapi-multi-server-mcp still maintained?
- The repository was last updated about 2 months ago, so fastapi-multi-server-mcp is actively maintained.
Skill content
View source on GitHubMulti-Server MCP FastAPI Project
A comprehensive FastAPI application that hosts multiple Model Context Protocol (MCP) servers, each providing access to different public APIs and services.
Work Demo
🚀 Features
This project includes 5 different MCP servers:
- Weather Server – OpenWeatherMap API integration for weather data
- News Server – NewsAPI integration for latest news articles
- Currency Server – Exchange rates and currency conversion
- Quote Server – Inspirational quotes and random facts
📋 Prerequisites
- Python 3.13+
- UV package manager
- API keys for external services (see Configuration section)
📁 Project Structure
fastapi-multi-server-mcp/
├── main.py # FastAPI application entry point
├── requirements.txt # Python dependencies
├── pyproject.toml # UV project configuration
├── .env.example # Environment variables template
├── README.md # This file
├── servers/ # MCP servers directory
│ ├── __init__.py
│ ├── weather_server.py # Weather API MCP server
│ ├── news_server.py # News API MCP server
│ ├── currency_server.py # Currency API MCP server
│ └── quote_server.py # Quotes API MCP server
├── utils/ # Utility modules
│ ├── __init__.py
│ ├── api_clients.py # HTTP client utilities
│ └── config.py # Configuration management
├── tests/ # Test suite
│ ├── __init__.py
│ ├── test_weather.py
│ ├── test_news.py
│ ├── test_currency.py
│ └── test_quote.py
└── docs/ # Documentation
├── api_reference.md
└── deployment.md
🛠️ Installation
Using UV (Recommended)
# Clone the repository
git clone <your-repo-url>
cd fastapi-multi-server-mcp
# Create virtual environment and install dependencies
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
uv pip install -r requirements.txt
Using pip
pip install -r requirements.txt
🔧 Configuration
Create a .env file in the root directory with your API keys:
# Weather API (OpenWeatherMap)
OPENWEATHER_API_KEY=your_openweather_api_key
# News API
NEWS_API_KEY=your_news_api_key
# Exchange Rates API
EXCHANGE_RATES_API_KEY=your_exchange_rates_api_key
# Server Configuration
PORT=10000
HOST=0.0.0.0
Getting API Keys
- OpenWeatherMap: Register at openweathermap.org
- NewsAPI: Get free API key at newsapi.org
- Exchange Rates: Register at exchangerate-api.com
- Quote API: Get free API key at quotesapi.com
🏃♂️ Running the Application
Development
# Using UV
uv run uvicorn main:app --reload --host 0.0.0.0 --port 10000 --reload
# Using `npx` to debug the running application,
npx @modelcontextprotocol/inspector uv run uvicorn main:app
To connect specific server to inspector,
Set,
-
Transport Type:
StreamableHTTP -
URLs:
- for news: http://localhost:10000/news/mcp/
- for weather: http://localhost:10000/weather/mcp/
- for currency: http://localhost:10000/currency/mcp/
- for quotes: http://localhost:10000/quotes/mcp/
- Click connect, it will open inspector window like this:
Quotes server:

News server:

Weather server:

Currency server:

As of June 2025, Windsurf and Cursor supports two transport types for MCP servers: stdio and /sse, but not StreamableHTTP. So using stdio or /sse as transport type is recommended. But with inspector, you can connect to the MCP server running on FastAPI with any transport type.
Production
# Using Gunicorn
gunicorn main:app -w 4 -k uvicorn.workers.UvicornWorker --bind 0.0.0.0:10000
📚 API Endpoints
Once running everything successfully,
Your FastAPI server will be available at: http://localhost:10000, docs at http://localhost:10000/docs and your MCP servers will be available at:
- Weather Server: http://localhost:10000/weather
- News Server: http://localhost:10000/news
- Currency Server: http://localhost:10000/currency
- Quote Server: http://localhost:10000/quotes
🧪 Testing
# Run all tests
pytest
# Run with coverage
pytest --cov=.
# Run specific server tests
pytest tests/test_weather.py
🛠️ Available Tools by Server
<details> <summary>🖼️ Click to see the tool details</summary>Weather Server (/weather)
get_current_weather - Get current weather for a city
get_weather_forecast - Get 5-day weather forecast
get_weather_by_coordinates - Get weather by latitude/longitude
News Server (/news)
get_top_headlines - Get top news headlines
search_news - Search news articles by keyword
get_news_by_category - Get news by category (business, tech, sports, etc.)
Currency Server (/currency)
get_exchange_rates - Get current exchange rates
convert_currency - Convert between currencies
get_supported_currencies - List all supported currencies
Quote Server (/quotes)
get_random_quote - Get a random inspirational quote
get_quote_by_category - Get quotes by category
get_random_fact - Get a random interesting fact
</details>
🚀 Deployment
Docker
You can deploy this project using Docker. Example Dockerfile is included:
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
EXPOSE 10000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "10000"]
Environment Variables for Production
PORT=10000
HOST=0.0.0.0
LOG_LEVEL=info
WORKERS=4
📝 License
This project is licensed under the MIT License - see the LICENSE.md file for details.
📚 Support & Documentation
- Check the documentation in the
docs/directory - Review the test files for usage examples
🔄 Updates and Roadmap
- Add WebSocket support for real-time data
- Implement caching for API responses
- Add rate limiting and authentication
- Create web dashboard for monitoring
- Add more API integrations (Spotify, Twitter, etc.)
Related Skills
Agent-Reach
86.3kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
74.1kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ruflo
73.6k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
CowAgent
47.2kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
