MCP Server
MCP 概念验证
此存储库包含一个使用FastAPI实现的简单模型上下文协议 (MCP) 服务器。目标是通过可发现的、版本化的 API 公开群体数据,该 API 可部署到 AWS Fargate。
本地运行
安装依赖项:
数据库路径可以通过
DATABASE_PATH环境变量配置。如果未设置,则默认为工作目录中的mcp.dbpip install -r requirements.txt为 SQLite 数据库添加种子:
python -m app.seed启动 API 服务器:
uvicorn app.main:app --reload调用 API 时使用令牌
fake-super-secret-token进行身份验证。
MCP 发现文件可在model_context.yaml中找到。
Related MCP server: MCP REST API Server
使用代理
我们提供了一个agent包来与 MCP 服务器交互。服务器运行后,您可以像这样列出畜群数据:
python -m agent http://localhost:8000 --token fake-super-secret-token代理读取model_context.yaml以发现 API 路径,并返回服务器的 JSON 响应。要获得完整的 YAML 支持,请安装可选的PyYAML依赖项;否则,将使用功能有限的内置解析器。
运行测试
pytest -q容器
提供了一个Dockerfile来在容器中运行服务器。使用以下方式构建:
docker build -t mcp .地形
terraform目录包含一个最小配置,展示了如何将容器部署到 AWS(例如 Fargate)。它为镜像创建了一个 ECR 存储库。
This server cannot be deployed
Maintenance
Related MCP Connectors
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
Model Context Protocol server for Studex tools, notifications, and profile integrations
Public, read-only MCP server for FarmNeural company facts, packages, and capabilities.
Guarded MCP server for agent-readable business truth, provenance, readiness, and discovery.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA FastAPI-based implementation of the Model Context Protocol that enables standardized interaction between AI models and development environments, making it easier for developers to integrate and manage AI tasks.10MIT
- FlicenseNot gradedqualityDmaintenanceA server implementation of the Model Context Protocol (MCP) that provides REST API endpoints for managing and interacting with MCP resources.-
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables real-time communication using Server-Sent Events (SSE), providing standardized model management and resource templating capabilities.-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server implementation built with Python and FastAPI for educational purposes. Demonstrates MCP server functionality through a books API interface.MIT