Get the FREE Ultimate OpenClaw Setup Guide →

fastchat

fastchat-mcp is a very simple way to interact with MCP servers using custom chats through natural language.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio rb58853-fastchat-mcp python -m fastchat_mcp \
  --env OPENAI_API_KEY="OpenAI API key" \
  --env CRIPTOGRAFY_KEY="Cryptographic key for token data storage"

How to use

Fastchat MCP provides a Python-based client that connects to MCP servers using multiple transfer protocols (primarily stdio and HTTPStream). It is designed to work with integrated language models (notably OpenAI-compatible models) and offers a modular interface to configure and communicate with MCP servers. The project exposes a command-line client via the mcp[cli] integration, enabling you to interact with configured MCP servers, send prompts, and stream responses through standard protocols. You can leverage its configuration to route conversations through a chosen server, manage model selection, and handle streaming or standard I/O interactions as supported by the backend server.

How to install

Prerequisites:

  • Python 3.11 or newer
  • Access to install Python packages (pip)
  • OpenAI API key (if using OpenAI models)

Installation steps:

  1. Create and activate a Python environment (optional but recommended):
python -m venv venv
source venv/bin/activate  # on Unix/macOS
venv\Scripts\activate     # on Windows
  1. Install the MCP client package:
pip install fastchat-mcp
  1. Prepare required environment variables (example):
export OPENAI_API_KEY=your-openai-key
export CRIPTOGRAFY_KEY=your-cryptography-key
  1. Run the MCP server client (as configured in mcp_config):
python -m fastchat_mcp

(Adjust as needed if you use a different entry point or environment setup.)

Additional notes

Tips and notes:

  • Ensure Python 3.11+ is used to meet the dependencies of fastchat-mcp.
  • Set OPENAI_API_KEY in your environment if you plan to access OpenAI models; the project notes indicate OpenAI provider support (default provider).
  • The CRIPTOGRAFY_KEY is used for token data storage and related cryptographic operations; keep it secure and do not expose in logs.
  • The MCP configuration file fastchat.config.json should be placed at the repository root and define your available MCP servers (protocols: httpstream or stdio).
  • The project currently emphasizes stdio and HTTPStream protocols; SSE is not supported.
  • If you encounter issues, verify that the environment variables are loaded in the same process that runs the MCP client and that network access to OpenAI endpoints is allowed.
  • For debugging, run with verbose logging if available in the CLI to inspect MCP server connection details and protocol handshakes.

Related MCP Servers

Sponsor this space

Reach thousands of developers