fastapi-with-fatmcp-agent
If you are the rightful owner of fastapi-with-fatmcp-agent and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
FastMCP Integration Application Demo is a modular application that integrates an MCP server, a FastAPI interface, and LLM Agent capabilities.
The FastMCP Integration Application Demo is designed to showcase a modular architecture that integrates an MCP server, a FastAPI interface, and LLM Agent capabilities. The project is structured into distinct packages, each handling specific functionalities such as API routing, LLM processing, and MCP server operations. The application supports dual run modes: 'api' mode for running the FastAPI server and 'mcp' mode for running the MCP server independently. This separation allows for flexible deployment and testing scenarios. The application also integrates with OpenAI or other LLMs to process tool outputs or execute in Agent mode, providing a comprehensive API for tool and resource management. The persistent connection between the API server and the MCP server ensures efficient communication and request handling.
Features
- Modular Design: Clear separation of concerns (API, LLM, MCP) for easy extension and maintenance.
- Dual Run Modes: Supports 'api' mode for FastAPI server and 'mcp' mode for MCP server.
- LLM Integration: Supports using OpenAI or other extensible LLMs for processing.
- Agent Mode: Provides an endpoint for the LLM to autonomously select and call MCP tools.
- Complete API: Offers RESTful endpoints for MCP tools, resources, and Agent functionality.
Tools
MCP Tools
Endpoints for listing and calling specific tools.