
simple mcp client
MCP Client that works with OpenAI and Anthropic
Repository Info
About This Server
MCP Client that works with OpenAI and Anthropic
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
MCP Client
Overview
This MCP (Model Context Protocol) Client is a command-line tool that allows MCP Servers to interact with both OpenAI's GPT and Anthropic's Claude models. It provides a simple interface for users to send queries and receive responses from either AI model.
Features
- Supports both GPT and Anthropic models
- Command-line interface for easy interaction
- Configuration via
mcp_config.json - Runs using
uvfor efficient execution
Requirements
- Python 3.8+
uv(for running the script)- OpenAI and Anthropic API keys
Installation
-
Clone the repository:
git clone <your-repo-url> cd mcp-client -
Install dependencies:
pip install -r requirements.txt -
Set up the
mcp_config.jsonfile:{ "mcpServers": { "server1": { "command": "uv", "args": [ "--directory", "<path to server 1>", "run", "main.py" ] }, "sysinfo2": { "command": "uv", "args": [ "--directory", "<path to server 2>", "run", "main.py" ] } } } -
Set up the environment file
(.env)API_KEY=<Enter API key>
Usage
To start the MCP client, run:
uv run main.py
This will initialize the chat client and allow you to interact with the selected AI model.
Configuration
Modify the mcp_config.json to add or remove servers. Modify the .env to add API Keys.
License
This project is licensed under the MIT License.
Contributions
Feel free to open issues or submit pull requests to enhance functionality!
Quick Start
Clone the repository
git clone https://github.com/allenbijo/simple-mcp-clientInstall dependencies
cd simple-mcp-client
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.