Provides a robust, example implementation of a Model Context Protocol (MCP) server using the FastAPI framework.
This repository offers a foundational example for constructing a production-ready Model Context Protocol (MCP) server, expertly built with FastAPI. It features a clear, modular directory structure for easy understanding and extension, encompassing the core FastAPI application, Pydantic models, MCP server logic, and a dedicated tool registry. The server provides essential endpoints for health checks, tool listing, and both WebSocket and HTTP interactions for the MCP, alongside interactive API documentation. It also includes several built-in tools like `calculate`, `get_time`, and `echo` to showcase functionality.