MCP: モデルコンテキストプロトコル
プロジェクトの説明
MCP (モデル コンテキスト プロトコル) は、言語モデル (LLM) と対話するときにコンテキストを管理するためのシステムです。システムにより、リクエスト間の対話のコンテキストを保存できるため、言語モデルは以前の対話を「記憶」できるようになります。
特徴
- リクエスト間のコンテキストの維持と管理
- Google Gemini APIとの統合
- 複数の独立したセッションを使用する可能性
- 識別子を使用してセッションを切り替える
- ダイアログ履歴のローカル保存
テクノロジー
- Python 3
- ファストAPI
- ジェミニAPI
- ウビコーン
インストール
- リポジトリのクローン:
- 仮想環境を作成してアクティブ化します。
- 依存関係をインストールします:
.env
ファイルを作成し、API キーを追加します。
使用法
サーバーの起動
サーバーは次の場所で利用できます: http://localhost:9999
クライアントの使用
リクエストを送信します(新しいセッションが作成されます):
同じセッションで対話を続けます。
ID で特定のセッションを使用する:
すべてのセッションのリストを表示:
プロジェクト構造
mcp_server.py
- メイン MCP サーバーmcp_client.py
- サーバーとのやり取りのためのクライアントrequirements.txt
- プロジェクトの依存関係
ライセンス
マサチューセッツ工科大学
著者
アレックス・レプリケーター - alex.replicator@gmail.com
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.
言語モデルのインタラクションのコンテキストを管理するシステム。これにより、モデルは Gemini API を使用して複数の独立したセッションにわたる以前のインタラクションを記憶できるようになります。
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that allows Claude to create flashcards for Rember, helping users study and remember information through spaced repetition reviews.Last updated -8816TypeScriptMIT License
- -securityFlicense-qualityA server implementing the Model Context Protocol that enables AI assistants like Claude to interact with Google's Gemini API for text generation, text analysis, and chat conversations.Last updated -Python
- -securityAlicense-qualityA Model Context Protocol server implementation that provides a standardized interface for applications to interact with OpenRouter's language models through a unified conversation management system.Last updated -TypeScriptMIT License
- -securityFlicense-qualityA server that manages conversation context for LLM interactions, storing recent prompts and providing relevant context for each user via REST API endpoints.Last updated -932TypeScript