MCP FastAPI Server
A production-ready Model Context Protocol (MCP) server built with FastAPI.
Directory Structure
Installation
Usage
Server runs on http://localhost:8000
Endpoints
GET /
- Server informationGET /health
- Health checkGET /tools
- List available toolsWS /mcp
- MCP WebSocket endpointPOST /mcp/http
- MCP HTTP endpoint
Built-in Tools
calculate - Mathematical calculations
get_time - Current time in timezone
echo - Echo messages
API Documentation
Visit http://localhost:8000/docs
for interactive API documentation.
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
A production-ready Model Context Protocol server that provides mathematical calculations, time zone information, and message echoing capabilities through both WebSocket and HTTP endpoints. Built with FastAPI for robust API functionality and interactive documentation.