ChatWithMCP
ChatWithMCP
Ein Kommandozeilen-Chat-Client für Claude (Anthropic) mit Anbindung an eigene und externe MCP-Server. Der Chat läuft direkt im Terminal, ruft Tools automatisch (oder nach Rückfrage) auf und bringt ein eingebautes System zum Generieren und Bewerten von Prompt-Varianten mit.
Features
Interaktiver Chat im Terminal (OpenAI-kompatible API,
openai-SDK gegen Anthropic-Endpoint)Anbindung eines lokalen MCP-Servers (
mcp-server/) mit eigenen ToolsOptionale Anbindung des offiziellen GitHub MCP Servers über Docker
Drei Ausführungs-Modi für Tool-Aufrufe:
auto,approve(Rückfrage) undplan(nur Plan, keine Ausführung)Streaming-Antworten und Extended Thinking (optional zuschaltbar)
Tools einzeln oder komplett de-/aktivierbar
Dateien per
/attachin den Chat-Kontext ladenPrompt-Generierung und -Evaluierung über eigene MCP-Tools (siehe PROMPT_EVALUATION.md)
Related MCP server: MCP Chat
Voraussetzungen
Node.js (ESM/
type: module, siehepackage.json)Ein Anthropic API-Key
Optional: Docker (nur für den GitHub-MCP-Server) und ein GitHub Personal Access Token
Optional: ein Tavily API-Key (für die
web_search-Tool)
Installation
npm installKonfiguration
Lege eine .env-Datei im Projektwurzelverzeichnis an (wird von .gitignore ausgeschlossen):
ANTHROPIC_API_KEY=dein-anthropic-api-key
BASE_URL=https://api.anthropic.com/v1
TAVILY_API_KEY=dein-tavily-api-key
GITHUB_PERSONAL_ACCESS_TOKEN=dein-github-tokenANTHROPIC_API_KEY/BASE_URL— werden für den Chat-Client und dasgenerate_prompts-Tool benötigtTAVILY_API_KEY— nur nötig für dasweb_search-ToolGITHUB_PERSONAL_ACCESS_TOKEN— nur nötig, wenn der GitHub-MCP-Server (via Docker) genutzt werden soll
Allgemeine Einstellungen (Modell, Token-Limits, Basisverzeichnis für /attach, GitHub-Toolsets) stehen in config.mjs.
Nutzung
Chat starten:
npm startDer lokale MCP-Server (mcp-server/server.mjs) wird dabei automatisch als Subprozess gestartet. Der GitHub-MCP-Server wird optional über Docker verbunden — schlägt das fehl, läuft der Chat ohne GitHub-Tools weiter.
Den MCP-Server lässt sich auch unabhängig starten (z. B. zum Testen mit einem MCP-Inspector):
npm run mcp-serverBefehle im Chat
Allgemein
/system TEXT— System-Prompt setzen/nosystem— System-Prompt entfernen/clear— Chat-Verlauf löschenexit— Chat beenden
Tool-Verwaltung
/tools— verfügbare Tools mit Status anzeigen/disable-tool <name>//enable-tool <name>— einzelnes Tool de-/aktivieren/disable-all-tools//enable-all-tools— alle Tools de-/aktivieren
Chat-Optionen
/options— aktuelle Einstellungen anzeigen/enable-streaming//disable-streaming— Streaming umschalten (deaktiviert währenddessen alle Tools)/enable-thinking//disable-thinking— Extended Thinking umschalten
Ausführungs-Modus
/plan-mode— Modell liefert nur einen Plan, führt keine Tools aus/auto-mode— Tools werden ohne Rückfrage ausgeführt (Standard)/auto-approve— vor jedem Tool-Aufruf muss bestätigt werden/mode— aktuellen Modus anzeigen
Dateien
/attach <pfad>— Datei einlesen und dem Chat-Verlauf hinzufügen (relative Pfade werden gegenconfig.attachBaseDiraufgelöst)
Prompt Evaluation
/generate-prompts <count> <prompt> [--style=formal|casual|technical|creative|concise]/evaluate-prompts/prompts/clear-prompts
Details dazu in PROMPT_EVALUATION.md.
Verfügbare MCP-Tools
Der lokale MCP-Server (mcp-server/tools/) stellt u. a. folgende Tools bereit:
Tool | Beschreibung |
| Liefert aktuelles Datum bzw. aktuelle Uhrzeit |
| Wetterabfrage |
| Websuche (benötigt |
| Lädt eine Webseite und wandelt sie in Text um |
| Dateien lesen bzw. schreiben |
| Verzeichnisinhalt auflisten |
| Befehle auf einem entfernten Host per SSH ausführen |
| Netzwerkschnittstellen, Subnetze und DNS-Server des Rechners anzeigen |
| Aktive Hosts im lokalen IP-Netzwerk per TCP-Connect-Scan finden |
| Prompt-Varianten erzeugen und bewerten |
Über den optionalen GitHub-MCP-Server stehen zusätzlich Tools für Repos, Issues, Pull Requests und Actions zur Verfügung (siehe config.mjs → github.toolsets).
Projektstruktur
chat.mjs CLI-Chat-Client
config.mjs Konfiguration (Modell, Token-Limits, GitHub-Optionen)
mcp-server/
server.mjs MCP-Server (stdio)
tools/ Einzelne Tool-Implementierungen
output/ Ablage für generierte Dateien (z. B. über save_to_file)
PROMPT_EVALUATION.md Dokumentation des Prompt-Evaluation-SystemsThis 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 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.
- 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.
- FlicenseNot gradedqualityCmaintenanceMCP server enabling Claude chat, image analysis, live web search, and model listing through Anthropic's Messages API. Allows any MCP client to consult Claude as a tool via stdio JSON-RPC.
Related MCP Connectors
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
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
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/michaelgerkeadesso/ChatWithMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server