MCP ExplorerExplorer

Simple Mcp Client

@allenbijoon 10 months ago
1 MIT
FreeCommunity
AI Systems
MCP Client that works with OpenAI and Anthropic

Overview

What is Simple Mcp Client

simple-mcp-client is a command-line tool that enables interaction with OpenAI’s GPT and Anthropic’s Claude models through the Model Context Protocol (MCP).

Use cases

Use cases include building chatbots, automating customer support, generating content, and conducting research that requires AI-driven insights.

How to use

To use simple-mcp-client, clone the repository, install dependencies, set up the configuration file ‘mcp_config.json’ and the environment file ‘.env’ with your API keys, and run the command ‘uv run main.py’ to start the client.

Key features

Key features include support for both GPT and Anthropic models, a command-line interface for easy interaction, configuration via ‘mcp_config.json’, and efficient execution using ‘uv’.

Where to use

simple-mcp-client can be used in various fields such as AI development, natural language processing, and any application requiring interaction with AI models.

Content

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 uv for efficient execution

Requirements

  • Python 3.8+
  • uv (for running the script)
  • OpenAI and Anthropic API keys

Installation

  1. Clone the repository:

    git clone <your-repo-url>
    cd mcp-client
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Set up the mcp_config.json file:

    {
      "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"
          ]
        }
      }
    }
  4. 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!

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers