From Dev.to
Build an MCP server that answers questions about your codebase in about 100 lines of Python
TL;DR A custom MCP server in Python is one file: create an MCPServer from the official mcp SDK, put @mcp.tool() on plain functions, call mcp.run(). On mcp 1.x the same class is FastMCP. The server bel...
