Skip to main content
Glama

MCP Server

by DPoitrast

MCP概念実証

このリポジトリには、 FastAPIで実装されたシンプルな Model Context Protocol (MCP) サーバーが含まれています。AWS Fargate にデプロイ可能な、検出可能でバージョン管理された API を通じて、集団データを公開することが目標です。

ローカルで実行

  1. 依存関係をインストールします:データベースパスはDATABASE_PATH環境変数で設定できます。設定されていない場合は、デフォルトで作業ディレクトリ内のmcp.dbが使用されます。
    pip install -r requirements.txt
  2. SQLite データベースをシードします。
    python -m app.seed
  3. API サーバーを起動します。
    uvicorn app.main:app --reload
  4. API を呼び出すときに、トークンfake-super-secret-tokenを使用して認証します。

MCP 検出ファイルはmodel_context.yamlにあります。

エージェントの使用

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リポジトリが作成されます。

-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

ローカルおよびコンテナ化されたデプロイメント オプションを使用して、検出可能な API を通じて集団データを公開する FastAPI ベースのモデル コンテキスト プロトコル サーバー。

  1. ローカルで実行
    1. エージェントの使用
      1. テストの実行
        1. 容器
          1. テラフォーム

            Related MCP Servers

            • -
              security
              F
              license
              -
              quality
              Provides a scalable, containerized infrastructure for deploying and managing Model Context Protocol servers with monitoring, high availability, and secure configurations.
              Last updated -
            • -
              security
              A
              license
              -
              quality
              A high-performance FastAPI server supporting Model Context Protocol (MCP) for seamless integration with Large Language Models, featuring REST, GraphQL, and WebSocket APIs, along with real-time monitoring and vector search capabilities.
              Last updated -
              5
              Python
              MIT License
            • -
              security
              A
              license
              -
              quality
              A server that enables Large Language Models to discover and interact with REST APIs defined by OpenAPI specifications through the Model Context Protocol.
              Last updated -
              378
              96
              TypeScript
              MIT License
              • Apple
            • -
              security
              F
              license
              -
              quality
              A 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.
              Last updated -
              5
              Python
              MIT License

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/DPoitrast/MCP'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server