MCP Chat
MCP Chat
MCP Chatは、Anthropic APIを通じてAIモデルとの対話型チャット機能を可能にするコマンドラインインターフェースアプリケーションです。このアプリケーションは、ドキュメント取得、コマンドベースのプロンプト、およびMCP(Model Control Protocol)アーキテクチャを介した拡張可能なツール統合をサポートしています。
前提条件
Python 3.9+
Anthropic APIキー
Related MCP server: MCP Chat Server
セットアップ
ステップ1: 環境変数の設定
プロジェクトルートの
.envファイルを作成または編集し、以下の変数が正しく設定されていることを確認してください。
CLAUDE_MODEL="claude-sonnet-4-5"
ANTHROPIC_API_KEY="" # Enter your Anthropic API secret key
# Set to 1 if you're using uv to run the project
# Set to 0 if you're *not* using uv
USE_UV=1ステップ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に不足している機能を実装します。
リンターと型チェック
リンターや型チェックは実装されていません。
This server cannot be installed
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
- FlicenseBqualityDmaintenanceEnables interactive chat with AI models and document retrieval via the Anthropic API, supporting command-based prompts and MCP tool integrations.2
- FlicenseBqualityCmaintenanceEnables interactive chat with AI models via Anthropic API, supporting document retrieval and extensible command-based tool integrations.2
- FlicenseNot gradedqualityCmaintenanceCommand-line interface for interactive chat with AI models via Anthropic API, supporting document retrieval and command-based prompts through MCP.
- FlicenseAqualityCmaintenanceEnables interactive CLI chat with AI using Anthropic API, supporting document retrieval and command-based prompts via MCP tools.2
Related MCP Connectors
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
OCR, transcription, file extraction, and image generation for AI agents via MCP.
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/IDHaunter/cli_project'
If you have feedback or need assistance with the MCP directory API, please join our Discord server