MCP Server
MCP Доказательство концепции
Этот репозиторий содержит простой сервер Model Context Protocol (MCP), реализованный с помощью FastAPI . Цель состоит в том, чтобы предоставить данные о стаде через обнаруживаемый, версионный API, который может быть развернут в AWS Fargate.
Работает локально
Установить зависимости:
Путь к базе данных можно настроить через переменную среды
DATABASE_PATH. Если не задано, по умолчанию используетсяmcp.dbвнутри рабочего каталога.pip 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