MCP Server
MCP概念実証
このリポジトリには、 FastAPIで実装されたシンプルな Model Context Protocol (MCP) サーバーが含まれています。AWS Fargate にデプロイ可能な、検出可能でバージョン管理された API を通じて、集団データを公開することが目標です。
ローカルで実行
依存関係をインストールします:
データベースパスは
DATABASE_PATH環境変数で設定できます。設定されていない場合は、デフォルトで作業ディレクトリ内のmcp.dbが使用されます。pip install -r requirements.txtSQLite データベースをシードします。
python -m app.seedAPI サーバーを起動します。
uvicorn app.main:app --reloadAPI を呼び出すときに、トークン
fake-super-secret-tokenを使用して認証します。
MCP 検出ファイルはmodel_context.yamlにあります。
Related MCP server: MCP REST API Server
エージェントの使用
MCPサーバーとやり取りするためのagentパッケージが提供されています。サーバーが起動したら、以下のようにして群れのデータを一覧表示できます。
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