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 den Abruf von Dokumenten, befehlsbasierte Prompts und erweiterbare Tool-Integrationen über die MCP-Architektur (Model Control Protocol).
Voraussetzungen
Python 3.9+
Anthropic API-Schlüssel
Related MCP server: MCP Chat
Einrichtung
Schritt 1: Konfigurieren der Umgebungsvariablen
Erstellen oder bearbeiten Sie die
.env-Datei im Projektstammverzeichnis und stellen Sie sicher, dass die folgenden Variablen korrekt gesetzt sind:
ANTHROPIC_API_KEY="" # Enter your Anthropic API secret keySchritt 2: Abhängigkeiten installieren
Option 1: Einrichtung mit uv (Empfohlen)
uv ist ein schneller Python-Paket-Installer und -Resolver.
Installieren Sie uv, falls noch nicht geschehen:
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.
Dokumentenabruf
Verwenden Sie das @-Symbol gefolgt von einer Dokumenten-ID, um Dokumentinhalte in Ihre Anfrage einzubeziehen:
> Tell me about @deposition.mdBefehle
Verwenden Sie das Präfix /, um im MCP-Server definierte Befehle auszuführen:
> /summarize deposition.mdBefehle werden automatisch vervollständigt, wenn Sie die Tab-Taste drücken.
Entwicklung
Hinzufügen neuer Dokumente
Bearbeiten Sie die Datei mcp_server.py, um neue Dokumente zum docs-Dictionary hinzuzufügen.
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.-