MCP Chat
MCP Chat
MCP Chat は、Google Gemini API を通じて AI モデルと対話的なチャットを実現するコマンドラインインターフェースアプリケーションです。このアプリケーションは、ドキュメント検索、コマンドベースのプロンプト、および MCP (Model Control Protocol) アーキテクチャによる拡張可能なツール統合をサポートしています。
前提条件
Python 3.9+
Google Gemini API Key
Related MCP server: MCP Chat
セットアップ
ステップ 1: 環境変数の設定
プロジェクトルートにある
.envファイルを作成または編集し、以下の変数が正しく設定されていることを確認します:
GEMINI_API_KEY="" # Enter your Google Gemini API key
GEMINI_MODEL="gemini-3.6-flash" # The Gemini model to useAPI キーは Google AI Studio から生成できます。
ステップ 2: 依存関係のインストール
オプション 1: uv を使用したセットアップ (推奨)
uv は高速な Python パッケージインストーラー兼リゾルバーです。
uv がまだインストールされていない場合は、インストールします:
pip install uv仮想環境を作成して有効化します:
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate依存関係をインストールします:
uv pip install -e .プロジェクトを実行します
uv run main.pyオプション 2: uv を使用しないセットアップ
仮想環境を作成して有効化します:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate依存関係をインストールします:
pip install google-genai python-dotenv prompt-toolkit "mcp[cli]==1.8.0"プロジェクトを実行します
python main.py使用方法
基本的な対話
メッセージを入力して Enter キーを押すだけで、モデルとチャットできます。
ドキュメント検索
クエリにドキュメントの内容を含めるには、@ 記号の後にドキュメント ID を続けて入力します:
> Tell me about @deposition.mdコマンド
MCP サーバーで定義されたコマンドを実行するには、/ プレフィックスを使用します:
> /summarize deposition.mdTab キーを押すとコマンドが自動補完されます。
開発
新しいドキュメントの追加
mcp_server.py ファイルを編集して、docs ディクショナリに新しいドキュメントを追加します。
MCP 機能の実装
MCP 機能を完全に実装するには:
mcp_server.pyの TODO を完了しますmcp_client.pyに不足している機能を実装します
リンティングと型チェック
リントや型チェックは実装されていません。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA command-line interface application for interactive chat with AI models via the Anthropic API. It supports document retrieval, command-based prompts, and extensible tool integrations through the MCP architecture.
- FlicenseNot gradedqualityDmaintenanceA command-line interface application enabling interactive chat with AI models via the Anthropic API. It supports document retrieval, command-based prompts, and extensible tool integrations through the MCP architecture.
- FlicenseNot gradedqualityDmaintenanceA command-line interface application that enables interactive chat with AI models via the Anthropic API, supporting document retrieval and command-based prompts through the MCP architecture.
- FlicenseNot gradedqualityCmaintenanceA CLI chat application enabling interactive conversations with AI models via the Anthropic API, with document retrieval and command-based prompt support through the MCP architecture.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/SDias14/mcp-server-training-linkedin-learning'
If you have feedback or need assistance with the MCP directory API, please join our Discord server