MCP Chat
MCP Chat
MCP Chatは、Anthropic APIを通じてAIモデルとの対話型チャット機能を実現するコマンドラインインターフェースアプリケーションです。このアプリケーションは、ドキュメントの取得、コマンドベースのプロンプト、MCP(Model Control Protocol)アーキテクチャによる拡張可能なツール統合をサポートしています。 https://anthropic.skilljar.com/claude-with-the-anthropic-api/
ツール: モデル制御: これらをいつ呼び出すかはClaudeが決定します。結果はClaudeによって使用されます。用途:
Claudeに追加機能を提供する
リソース: アプリ制御: これらをいつ呼び出すかはアプリが決定します。結果は主にアプリによって使用されます。用途
アプリにデータを取り込む
メッセージにコンテキストを追加する
プロンプト: ユーザー制御: これらをいつ使用するかはユーザーが決定します。用途:
スラッシュコマンド、ボタンクリック、メニューオプションなど、ユーザー入力に基づいて実行する事前定義されたワークフロー
前提条件
Python 3.9以上
Anthropic APIキー
Related MCP server: mcp-doc-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"プロジェクトを実行します
uv run main.pyまたは
python main.pymcp_server.pyの変更をデバッグするためにMCP Webインスペクターを表示するには、次を実行します:
uv run mcp dev mcp_server.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 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.
- 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
- FlicenseBqualityCmaintenanceEnables interactive chat with AI models through the Anthropic API, supporting document retrieval and command-based prompts.2
Related MCP Connectors
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.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
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/hockeydave/claude_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server