mcp-client-cli logo

MCP Client CLI

by adhikasp

31 forks
199 stars
Free

What is mcp-client-cli

mcp-client-cli is a command-line interface (CLI) tool developed by adhikasp. It offers an efficient way to interact with Language Learning Models (LLMs) and execute prompts using the Model Context Protocol (MCP). This tool allows users to connect with any MCP-compatible server directly from the terminal, making it a versatile alternative to desktop clients like Claude. With mcp-client-cli, you can integrate various LLM providers, such as OpenAI or Groq, and even use local models via platforms like Llama.

How to Use mcp-client-cli

To get started with mcp-client-cli, follow these steps:

  1. Install the Tool: Use pip to install mcp-client-cli:

    pip install mcp-client-cli
    
  2. Configure the Setup: Create a configuration file at ~/.llm/config.json to specify your LLM and MCP server details. This includes setting your system prompt, selecting an LLM provider, and configuring API keys and server details.

  3. Run a Command: Once configured, execute prompts using the llm command. For example:

    llm "What is the capital city of North Sumatra?"
    
  4. Advanced Usage:

    • Pipe Inputs: You can pipe text from files or other commands.
    • Image Analysis: Pipe image files for analysis with multimodal LLMs.
    • Prompt Templates: Utilize predefined templates for tasks like reviewing code or summarizing media.
    • Tool Activation: Trigger specific tools for tasks like web searches.
    • Clipboard Support: Use clipboard content directly in your prompts.
  5. Automation and Scripting: Use additional flags for automation, such as --no-confirmations to skip tool confirmations or --no-intermediates for cleaner script outputs.

Key Features of mcp-client-cli

  • Versatile LLM Integration: Supports various LLM providers, allowing you to choose between cloud-based services or local models.

  • MCP Compatibility: Seamlessly connects with any MCP-compatible server, enhancing the capabilities of your AI assistant through secure data access.

  • Flexible Configuration: Easily configure LLM and MCP settings through a JSON file, with options to specify API keys and toggle features.

  • Command-Line Efficiency: Execute LLM prompts and utilize AI tools directly from your terminal, streamlining workflows for technical and non-technical users alike.

  • Advanced Input Handling: Accepts both text and image inputs, providing comprehensive analysis and response capabilities.

  • Prompt Templates: Offers a library of templates for common tasks, simplifying complex operations into single commands.

  • Robust Tool Management: Manage and execute tools with user confirmation, ensuring precise control over the operational flow.

  • Clipboard Integration: Integrate clipboard content into your workflows, enhancing productivity across different operating systems.

mcp-client-cli is designed for users seeking a streamlined and powerful way to interact with AI models and servers, right from the convenience of their terminal. Whether you're looking to automate tasks, analyze data, or explore new AI capabilities, this tool provides the flexibility and power you need.

How to Use

To use the mcp-client-cli, follow these steps:

  1. Visit https://github.com/adhika...
  2. Follow the setup instructions to create an account (if required)
  3. Connect the MCP server to your Claude Desktop application
  4. Start using mcp-client-cli capabilities within your Claude conversations

Additional Information

Created

November 27, 2024

Company

adhikasp

Start building your own MCP Server

Interested in creating your own MCP Server? Check out the official documentation and resources.

Learn More