MCP Chat
MCP Chat
MCP Chat ist eine Befehlszeilenanwendung, die interaktive Chat-Funktionen mit KI-Modellen über die Anthropic API ermöglicht. Die Anwendung unterstützt Dokumentabruf, befehlsbasierte Eingabeaufforderungen und erweiterbare Tool-Integrationen über die MCP-Architektur (Model Control Protocol).
Voraussetzungen
Python 3.9+
Anthropic API-Schlüssel
Related MCP server: MCP Chat Server
Einrichtung
Schritt 1: Umgebungsvariablen konfigurieren
Erstellen oder bearbeiten Sie die
.env-Datei im Projektstamm und stellen Sie sicher, dass die folgenden Variablen korrekt gesetzt sind:
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=1Schritt 2: Abhängigkeiten installieren
Option 1: Einrichtung mit uv (Empfohlen)
uv ist ein schneller Python-Paketinstallierer und -Resolver.
Installieren Sie uv, falls noch nicht installiert:
pip install uvErstellen und aktivieren Sie eine virtuelle Umgebung:
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activateInstallieren Sie die Abhängigkeiten:
uv pip install -e .Führen Sie das Projekt aus
uv run main.pyOption 2: Einrichtung ohne uv
Erstellen und aktivieren Sie eine virtuelle Umgebung:
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activateInstallieren Sie die Abhängigkeiten:
pip install anthropic python-dotenv prompt-toolkit "mcp[cli]==1.8.0"Führen Sie das Projekt aus
python main.pyVerwendung
Grundlegende Interaktion
Geben Sie einfach Ihre Nachricht ein und drücken Sie die Eingabetaste, um mit dem Modell zu chatten.
Dokumentabruf
Verwenden Sie das @-Symbol gefolgt von einer Dokument-ID, um Dokumentinhalte in Ihre Abfrage aufzunehmen:
> Tell me about @deposition.mdBefehle
Verwenden Sie das /-Präfix, um Befehle auszuführen, die im MCP-Server definiert sind:
> /summarize deposition.mdBefehle werden automatisch vervollständigt, wenn Sie die Tabulatortaste drücken.
Entwicklung
Hinzufügen neuer Dokumente
Bearbeiten Sie die Datei mcp_server.py, um neue Dokumente zum docs-Wörterbuch hinzuzufügen.
Implementieren von MCP-Funktionen
Um die MCP-Funktionen vollständig zu implementieren:
Vervollständigen Sie die TODOs in
mcp_server.pyImplementieren Sie die fehlende Funktionalität in
mcp_client.py
Linting- und Typprüfung
Es sind keine Lint- oder Typprüfungen implementiert.
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