The server module provides both MCP (Model Context Protocol) and web interfaces built on FastAPI with FastMCP.
Architecture:
- Built on FastMCP which provides MCP server capabilities on top of FastAPI
- MCP tools defined in
mcp.py- see MCP Tools Reference - Web routes organized in
web/routes/directory - Admin API for managing MCP API keys in
admin.py - API routes in
api.pyfor programmatic access
See MCP documentation and Web Interface documentation for setup and usage details.
::: kb_mcp.server.main