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
- -securityFlicense-qualityA Model Context Protocol server built with mcp-framework that allows users to create and manage custom tools for processing data, integrating with the Claude Desktop via CLI.Last updated 5 months ago484TypeScript
- -securityAlicense-qualityA Model Context Protocol server that provides file system operations, analysis, and manipulation capabilities through a standardized tool interface.Last updated 7 months ago1TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that provides a comprehensive interface for interacting with the ConnectWise Manage API, simplifying API discovery, execution, and management for both developers and AI assistants.Last updated 4 months ago462Python
- -securityAlicense-qualityA Model Context Protocol server for data wrangling that provides standardized interfaces for data preprocessing, transformation, and analysis tasks including data aggregation and descriptive statistics.Last updated 4 months ago1PythonMIT License