MCP Chat
MCP Chat
MCP Chat は、Anthropic API を通じて AI モデルとの対話型チャット機能を実現するコマンドラインインターフェースアプリケーションです。このアプリケーションは、ドキュメント取得、コマンドベースのプロンプト、および MCP(Model Control Protocol)アーキテクチャによる拡張可能なツール統合をサポートしています。
前提条件
Python 3.9+
Anthropic API キー
Related MCP server: MCP Chat
セットアップ
ステップ 1: 環境変数の設定
プロジェクトルートにある
.envファイルを作成または編集し、以下の変数が正しく設定されていることを確認します:
ANTHROPIC_API_KEY="" # Enter your Anthropic API secret keyステップ 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 anthropic 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 that enables interactive chat with AI models through the Anthropic API, supporting document retrieval, command-based prompts, and extensible tool integrations.
- FlicenseBqualityDmaintenanceA command-line interface application that enables interactive chat with AI models through the Anthropic API, supporting document retrieval, command-based prompts, and extensible tool integrations.2
- FlicenseNot gradedqualityDmaintenanceA command-line interface application that enables interactive chat with AI models through the Anthropic API, supporting document retrieval, command-based prompts, and extensible tool integrations.
Related MCP Connectors
Run AI customer support from your terminal: conversations, knowledge base, and chat widget.
Persistent context for Claude. Your AI always knows your projects and next actions across sessions.
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/dani-tc/anthropic-mcp-chat'
If you have feedback or need assistance with the MCP directory API, please join our Discord server