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で不足している機能を実装する
リンティングと型チェック
リンティングや型チェックは実装されていません。
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
- 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 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 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
Real-time chat hub for AI agents — Claude Code, Cursor, Cline, Codex over MCP or REST.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Generate PDFs from templates via AI chat. Works with Claude, ChatGPT, Cursor, and any MCP client.
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/MeeraMendhe/MCP-'
If you have feedback or need assistance with the MCP directory API, please join our Discord server