FastMCP - モデルコンテキストプロトコルサーバー
MCP サーバーおよびクライアントを構築するための高速な Python フレームワークであるFastMCPを使用して実装された軽量の Model Context Protocol (MCP) サーバー。
特徴
- モデルコンテキストの作成、取得、更新、削除
- 特定のコンテキストに対するクエリ実行
- モデル名とタグによるフィルタリング
- インメモリストレージ(開発用)
- MCPサーバー開発を容易にするFastMCP統合
- メトリクスとモニタリングのためのDatadog統合
要件
- Python 3.7以上
- ファストMCP
- uv(環境管理に推奨)
- Datadog アカウント(オプション、メトリクス用)
インストール
uvの使用(推奨)
インストールする最も簡単な方法は、提供されているスクリプトを使用することです。
Unix/Linux/macOS
ウィンドウズ
手動インストール
Datadog の設定
サーバーはメトリクスと監視のためにDatadogと統合されています。Datadog APIの認証情報は、以下のいくつかの方法で設定できます。
1. 環境変数
サーバーを起動する前に、次の環境変数を設定します。
2. .env ファイル
プロジェクト ディレクトリに.env
ファイルを作成します。
3. FastMCP CLIインストール
Claude デスクトップ ツールとしてインストールする場合は、環境変数を渡すことができます。
4. ランタイム構成
実行時にconfigure_datadog
ツールを使用します。
使用法
サーバーの起動
Claudeデスクトップツールとしてインストールする
ツールの使用
サーバーは次のツールを提供します。
create_context
- 新しいコンテキストを作成するget_context
- 特定のコンテキストを取得するupdate_context
- 既存のコンテキストを更新するdelete_context
- コンテキストを削除するlist_contexts
- すべてのコンテキストを一覧表示します(オプションでフィルタリング可能)query_model
- 特定のコンテキストに対してクエリを実行するhealth_check
- サーバーのヘルスチェックconfigure_datadog
- 実行時に Datadog 統合を構成する
リクエストの例
コンテキストの作成
クエリの実行
Datadogの設定
Datadog メトリクス
サーバーは Datadog に次のメトリクスを報告します。
mcp.contexts.created
- コンテキスト作成イベントmcp.contexts.updated
- コンテキスト更新イベントmcp.contexts.deleted
- コンテキスト削除イベントmcp.contexts.accessed
- コンテキスト アクセス イベントmcp.contexts.total
- コンテキストの合計数mcp.contexts.listed
- コンテキスト操作イベントを一覧表示するmcp.queries.executed
- クエリ実行イベントmcp.server.startup
- サーバー起動イベントmcp.server.shutdown
- サーバーのシャットダウンイベント
発達
クライアントの実装例については、付属のmcp_example.py
参照してください。
ライセンス
マサチューセッツ工科大学
リソース
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.
統合された Datadog メトリクスとモニタリングを使用してモデル コンテキストの作成、管理、クエリを可能にする軽量のモデル コンテキスト プロトコル サーバー。
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol server that enables powerful PostgreSQL database management capabilities including analysis, schema management, data migration, and monitoring through natural language interactions.Last updated -1849894TypeScriptAGPL 3.0
- -securityAlicense-qualityA Model Context Protocol server that enables LLMs to interact with databases (currently MongoDB) through natural language, supporting operations like querying, inserting, deleting documents, and running aggregation pipelines.Last updated -TypeScriptMIT License
- AsecurityAlicenseAqualityA Model Context Protocol server that enables interaction with PostgreSQL databases for analyzing setups, debugging issues, managing schemas, migrating data, and monitoring performance.Last updated -10TypeScriptMIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that enables AI assistants to interact with Datadog's observability platform through natural language.Last updated -72Python