MCP Tool Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Tool ServerWhat's the weather in Tokyo?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Tool Server
A production-oriented MCP (Model Context Protocol) server that exposes tools to AI agents, built on FastMCP + FastAPI, with Docker support.
Built as a learning/portfolio project referencing the architecture of PrefectHQ/fastmcp, extended with several original pieces:
Auto-discovery tool registry — drop a file with a
register(mcp)function intoapp/tools/and it's picked up automatically. No manual wiring inmain.py.Per-client rate limiting — in-memory token bucket, keyed by API key.
API key auth on the HTTP surface (
/tools/*endpoints), independent from the raw MCP protocol endpoint.Structured logging with per-request IDs and timing.
/health and /metrics endpoints for basic observability.
Tools included
Tool | Description |
| Current weather for a lat/lon (Open-Meteo API) |
| Live FX conversion between currencies |
| Word/sentence count + estimated reading time for text |
| Server introspection (uptime, platform, python version) |
Related MCP server: mcp_server
Running locally
pip install -r requirements.txt
python -m app.mainServer starts on http://localhost:8000.
MCP protocol clients connect to
http://localhost:8000/mcpHTTP clients can call
POST /tools/{tool_name}/invokewith headerx-api-key: <key>
Running with Docker
docker compose up --buildAdding a new tool
Create app/tools/my_tool.py:
def register(mcp) -> str:
@mcp.tool()
def my_tool(x: int) -> int:
"""Doubles a number."""
return x * 2
return "my_tool"That's it — no changes to main.py needed, it's discovered on startup.
Tests
pytest tests/Environment variables
Variable | Default | Description |
| 8000 | Server port |
| (empty = no auth) | Comma-separated allowed API keys |
| 20 | Max burst requests per client |
| 2 | Token refill rate per second |
| INFO | Logging verbosity |
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server for Xweather weather data: conditions, forecasts, alerts, and more.
An MCP server for weather information by @kulybaba
An MCP server for weather information by @kulybaba
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA production-ready MCP server providing file, system, math, and text utilities through a simple CLI client.-
- FlicenseNot gradedqualityBmaintenanceA minimal MCP server providing currency conversion, geocoding, and weather tools, with a CLI client supporting Spanish special commands.-
- FlicenseNot gradedqualityCmaintenanceA simple MCP server providing weather lookup and number addition tools.-
- FlicenseBqualityCmaintenanceA small MCP server that provides a single tool to get current weather for any city via a proxy endpoint.1-