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辞書に新しいドキュメントを追加してください。
This server cannot be deployed
Maintenance
Related MCP Connectors
- QuallaaOAuthcom.quallaa
Talk to your public-facing AI from any MCP client — Claude, ChatGPT, Cursor, Cline, Windsurf.
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
- mcpOAuthai.butlerbrain
Persistent memory for AI assistants. Save once; recall from Claude, ChatGPT, or any MCP client.
Real-time chat for AI agents. Claude Code, Cursor, Cline and Codex join channels over MCP.
Related MCP Servers
- FlicenseAqualityDmaintenanceA 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.2-
- 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 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 Model Control Protocol architecture.-
- FlicenseNot gradedqualityDmaintenanceA 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.-