
A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A modular demonstration app that runs a FastMCP-based MCP server exposing tools and resources, alongside a FastAPI API layer and an OpenAI-backed agent that can select and call MCP tools.
Modular FastMCP server demo with FastAPI and an LLM agent layer is cataloged as an MCP server attributed to zhouhaojiang. A modular demonstration app that runs a FastMCP-based MCP server exposing tools and resources, alongside a FastAPI API layer and an OpenAI-backed agent that can select and call MCP tools. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Modular FastMCP server demo with FastAPI and an LLM agent layer are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes. The MCP server can be run directly for connection by other FastMCP clients, using SSE or stdio transport.
The OPENAI_API_KEY environment variable must be set to use LLM features.
README.md · f6d4b179bf24 · 采集于 2026-11-13 10:12:42 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
This project demonstrates a modular application built with FastMCP, integrating an MCP server, a FastAPI interface, and LLM Agent capabilities.
The project utilizes a modular design, separating different functionalities into distinct packages:
app/
├── __init__.py
├── api/ # FastAPI Application Layer
│ ├── __init__.py
│ ├── main.py # FastAPI main application entry point
│ └── routers/ # API route definitions
│ ├── __init__.py
│ ├── agent.py # Agent mode routes
│ ├── mcp_resources.py # MCP resource routes
│ └── mcp_tools.py # MCP tool routes
├── llm/ # LLM (Large Language Model) Processing Layer
│ ├── __init__.py
│ ├── base.py # Base LLM class
│ └── openai.py # OpenAI implementation
└── mcp_server/ # MCP Server Definition Layer
├── __init__.py
├── base.py # Base MCP Server class
├── run.py # Script for internal Client connection or direct execution
└── simple.py # Simple MCP Server implementation (with tools & resources)
main.py # Main entry point (runs API or MCP server)
Core Workflow (API Mode):
python main.py --mode mcp, listening on a specified port (default: 8001) with SSE transport.python main.py --mode api (listens on 8080).mcp_client within the FastAPI server connects to the independently running MCP server via SSE.mcp_client (communicating with the MCP server) or the llm module (communicating with the LLM API).api mode: Runs the FastAPI server, requires a separately running MCP server.mcp mode: Runs the MCP server directly for testing or connection by other clients./api/agent/process endpoint for the LLM to autonomously select and call MCP tools.Clone the repository (if needed).
Install dependencies (using uv or pip):
# Recommended: use uv
uv pip install -e .
# Alternatively, use pip
# pip install -e .
Set Environment Variables:
OPENAI_API_KEY environment variable is required to use LLM features..env file in the project root and define it there:
OPENAI_API_KEY=sk-...
This mode requires first starting the standalone MCP server.
Start the MCP Server (in one terminal):
# Uses SSE transport, listening on 127.0.0.1:8001 (default)
python main.py --mode mcp
# Or specify a different host and port
# python main.py --mode mcp --mcp-host 0.0.0.0 --mcp-port 8002
Start the API Server (in another terminal):
# Listens on 0.0.0.0:8080 (default)
python main.py --mode api
# Use a different port or enable hot-reloading (for development)
# python main.py --mode api --port 9000 --reload
The API server is now accessible at http://localhost:8080 (or your specified port). It will automatically connect to the MCP server started in step 1 (default connection: http://localhost:8001/sse).
If you only need to run the MCP server (e.g., for direct connection by other FastMCP clients):
# Default: Use SSE transport, listening on 127.0.0.1:8001
python main.py --mode mcp
# Use Standard I/O (stdio) transport
# python main.py --mode mcp --mcp-transport stdio
The API server runs on http://localhost:8080 (default).
/api/tools):
GET /: List all available tools and their parameters.POST /{tool_name}: Call a specific tool. Example request body: {"params": {"a": 5, "b": 3}, "use_llm": true, "system_message": "Explain the result"}/api/resources):
GET /: List all available resource URIs and their types.GET /{resource_path:path}: Get the content of a specific resource (e.g., GET /api/resources/example/greeting)./api/agent):
POST /process: Let the LLM autonomously handle a user request, potentially calling tools. Example request body: {"prompt": "What is 5 plus 3?"}GET /health: Check if the API server is running.GET /api/tools/health: Check the connection status between the API server and the MCP server.BaseMCPServer in app/mcp_server/simple.py (or create a new server file).@self.mcp.tool() decorator within the _register_tools method.app/mcp_server/run.py.app/llm/ directory (e.g., anthropic.py).app.llm.base.BaseLLM.generate and generate_with_tools methods.agent.py).Enable hot-reloading when running the API server for development:
# Ensure the standalone MCP server is still running
python main.py --mode api --reload
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Modular FastMCP server demo with FastAPI and an LLM agent layer from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/fastapi-with-fatmcp-agent)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.