mcp-chat is a general-purpose MCP client open-sourced by Flux159 on GitHub, positioned as a tool for testing and evaluating MCP servers and agents. Project address:https://github.com/flux159/mcp-chat。
Purpose and applicable scenarios It is aimed at developers who need to jointly debug, test, and evaluate MCP servers or agents. It can connect to JS, Python, Docker, and other types of MCP servers during the development phase or in production environments, and inspect server behavior through conversation. It is also suitable for dynamically configuring multiple MCP servers through the Web interface and starting new conversations, or running through the CLI in interactive mode and one-shot prompt mode.
Main capabilities
- Provides CLI interactive chat, and can also pass prompts directly with -p; when using -p, it connects to the specified MCP server to run and exits after receiving a response on standard output.
- Provides --web web mode, where new chats can be created in the UI, messages can be sent to the model, and MCP servers can be configured dynamically without specifying them in advance on the command line; chats created in the Web UI are also saved.
- Can connect to any MCP server (JS, Python, Docker), covering production or development environments.
- A model can be selected with -m; the materials state that currently only Anthropic models are supported, and the example uses claude-3.5.
- The system prompt can be customized with --system.
- Tool call outputs and parameters can be viewed directly in the chat to assist with debugging MCP servers.
- Saves chat history and settings to ~/.mcpchat/chats, including Web chats; saves and restores commands to ~/.mcpchat/history. The Web mode description states the chat save path as ~/.mcpchats/chats, which is not fully consistent with ~/.mcpchat/chats in the feature list.
- Supports passing environment variables to MCP servers; the materials note that this practice is not standardized in the MCP specification, and other clients may not execute with dynamic environment variable values.
Usage Before use, ANTHROPIC_API_KEY must be configured in environment variables or in a .env file in the project root directory; the materials indicate that the API Key can be obtained from the keys page of the Anthropic Console. The CLI can start an interactive chat prompt, or specify claude_desktop_config.json (Mac). Web mode is started with --web. For remote MCP servers, a Streamable HTTP endpoint URL can be passed to --server; any http:// or https:// server strings will all be treated as Streamable HTTP endpoints, both in the CLI and in the Web chat settings.
For developers MCP server developers can pass in locally built Python or Node MCP servers for testing; the materials mention installing dependencies and running the CLI, as well as building and running the CLI for mcp-chat development when connecting to an MCP server. The materials also mention Docker publishing and the project structure, but do not give specific commands or structure details.
Limitations and information not provided Currently only Anthropic models are supported; legacy SSE endpoints and servers requiring authentication are not yet supported. ANTHROPIC_API_KEY must be configured before use. Environment variable passthrough is not an MCP specification standard. Specific installation commands, Docker publishing commands, pricing and cost information, and the full range of platform compatibility are not yet provided.
Maintenance and releases When releasing a new version, you can create a tag in the format v{major}.{minor}.{patch} on the releases page and publish it; the cd.yml workflow will trigger a build of the new version and publish it to npm; the package.json version is automatically updated by the workflow and committed to main, with no need to modify it manually.