Generic MCP Client to use any MCP tool in a chat
A simple chat client that connects to an MCP (Model Control Protocol) server, allowing you to interact with LLMs and use MCP tools.
Vibe coded using cursor.
I believe we should have completely generic agents and completely generic UIs.
People should not need to write new code to write new agents. This UI is an experiment in building this generic MCP client.

git clone https://github.com/rom1504/generic-mcp-client-chat.git
cd generic-mcp-client-chat
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r requirements.txt
.env file in the project root:ANTHROPIC_API_KEY=your_api_key_here
python mcp_server.py
python second_mcp_server.py
python server.py
http://localhost:8001
http://localhost:8002/mcpThe system supports multiple MCP servers with different tools:
echo: Echoes back the input messagerepeat: Repeats the input message a specified number of times (default: 10)count_letters: Count the number of letters in a wordfibonacci: Calculate the fibonacci number for a given inputls: List contents of a directory with file/folder iconscd: Change current working directoryTo use the tools, simply ask Claude to use them. For example:
mcp_server.py: WebSocket server that provides MCP toolsserver.py: Main server that connects to MCP servers and handles chatstatic/: Frontend files
index.html: Main chat interfacejs/mcp-client.js: Frontend JavaScriptcss/styles.css: Styling.env: Configuration file (create this)The system handles various error cases:
All errors are displayed to the user in the chat interface with appropriate styling.
[Your contribution guidelines]
This project is licensed under the MIT License - see the LICENSE file for details.
This repository includes several example MCP servers to demonstrate different capabilities. To use any of these example servers:
python example_mcp_servers/file_mcp_server.py)http://localhost:8003/mcp)Beyond the example servers in this repository, you can connect to public MCP servers. Visit mcpservers.org/remote-mcp-servers for a list of available servers, or check out the awesome-mcp-servers repository for a curated collection of MCP server implementations.
A particularly useful one is the Fetch MCP Server which allows retrieving and processing web content.
To use any of these servers, add them through the web interface by clicking "Add Server" and entering their MCP endpoint URL.
No configuration available
Related projects feature coming soon
Will recommend related projects based on sub-categories