Supports containerized deployment of the MCP service with one-click setup via Docker Compose
Serves as the foundation framework for the MCP server, providing a standardized REST API interface for tool aggregation and exposure
Used for data validation and schema definition across all tool modules, ensuring standardized input parameters
Enables creation of custom tool modules in Python, with support for both synchronous and asynchronous execution models
🧠 MCP 聚合工具服务 / MCP Aggregated Tool Service
一个基于 FastAPI + fastapi_mcp 实现的多工具统一接入平台,支持模块化、自动注册与异步扩展。适用于将多个 AI 工具或微服务聚合为一个统一接口服务,支持标准化输入输出格式,便于前端集成或 LLM 系统调用。
A modular, extensible and FastAPI-based MCP (Multi-Component Platform) tool aggregation service. Easily connect and expose independent tools through standardized APIs. Perfect for frontend integration or large language model (LLM) orchestration.
🌟 功能特点 / Features
- ✅ 支持多工具自动注册(基于目录扫描)
- ✅ 所有接口统一 POST 方式 + BaseModel 校验
- ✅ 支持异步 httpx 接口调用
- ✅ 标准化 JSON 响应格式(success/error)
- ✅ Docker 一键部署支持
- ✅ 配套开发说明文档,便于扩展工具模块
📁 项目结构 / Project Structure
🚀 快速开始 / Quick Start
🧰 依赖要求 / Requirements
- Python 3.8+
- pip
- Docker / Docker Compose(可选)
📦 本地运行 / Local Dev
默认服务地址:http://localhost:8000/mcp
🐳 使用 Docker 部署 / Docker Deployment
🧱 工具模块开发规范 / Tool Module Guidelines
每个工具应放置于 tools/
目录下(可多层嵌套),并包含:
- 使用
pydantic.BaseModel
定义参数; - 使用
@__mcp_server__.tool()
注册工具函数; - 返回
success_response()
或error_response()
; - (可选)异步调用外部接口 + 缓存结果。
示例参考:
🔗 接口说明 / API Usage
所有工具接口统一通过 /mcp
路径访问,自动根据模块注册。
请求方式:POST
请求格式:application/json
响应格式:
📚 文档参考 / Docs
- 📘 开发说明文档 (中文)
- 示例模块路径:
tools/xxx/tool_name.py
📄 License
MIT License © 2025 [your-name]
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A modular, extensible FastAPI-based platform that aggregates multiple AI tools and microservices into a unified interface with standardized I/O formats, perfect for frontend integration or LLM system orchestration.
Related MCP Servers
- AsecurityAlicenseAqualityA lightweight, modular API service that provides useful tools like weather, date/time, calculator, search, email, and task management through a RESTful interface, designed for integration with AI agents and automated workflows.Last updated -5PythonMIT License
- -securityAlicense-qualityA server implementation that provides a unified interface for OpenAI services, Git repository analysis, and local filesystem operations through REST API endpoints.Last updated -PythonGPL 3.0
- -securityFlicense-qualityA unified API server that enables interaction with multiple AI model providers like Anthropic and OpenAI through a consistent interface, supporting chat completions, tool calling, and context handling.Last updated -JavaScript
- -securityFlicense-qualityA modular system for building and orchestrating AI applications through microservices, featuring LLM interactions, Jupyter notebook execution, and visual workflow capabilities.Last updated -Python