MCP ExplorerExplorer

Claude Cli Mcp Client

@swairshahon a year ago
1 MIT
FreeCommunity
AI Systems
Basic CLI mcp client which can use server.config

Overview

What is Claude Cli Mcp Client

claude-cli-mcp-client is a basic command-line interface (CLI) implementation of a Model Context Protocol (MCP) client that can communicate with MCP-compatible servers.

Use cases

Use cases include integrating with version control systems, automating web scraping tasks, and developing applications that require interaction with different MCP servers.

How to use

To use claude-cli-mcp-client, install the required Python dependencies using ‘pip install -r requirements.txt’, configure the servers in ‘servers_config.json’, and run the client with ‘python client.py’.

Key features

Key features include the ability to configure multiple MCP servers, support for various server commands, and a simple setup process for users.

Where to use

claude-cli-mcp-client can be used in software development environments where communication with MCP-compatible servers is required, such as in data processing, automation, and integration tasks.

Content

MCP Client

A basic Model Context Protocol (MCP) client implementation with example servers - one in Node.js and one in Python.

Overview

This repository contains a simple implementation of an MCP client that can communicate with MCP-compatible servers.

Setup

  1. Install Python dependencies:

    pip install -r requirements.txt
    
  2. Configure servers in servers_config.json
    e.g.

{
  "mcpServers": {
    "git": {
      "command": "uvx",
      "args": ["mcp-server-git", "--repository", "."]
    },
    "puppeteer": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-puppeteer"]
    }
  }
}

You can get the list of available servers [!here][https://github.com/modelcontextprotocol/servers].

Or write your own. For that add config something like:

"zotero-mcp-server": {
        "command": "bash",
        "args": [
          "-c",
          "cd /Users/swair/zotero-mcp-server && source .venv/bin/activate && python -m zotero_mcp.server"
        ]
      },

Running the Client

python client.py

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers