Skip to main content

llmcp

A minimal CLI for interacting with LLMs via LiteLLM and MCP.

Installation

# Install with pip
pip install llmcp

# Or with uv (recommended)
uv pip install llmcp

Quickstart

# Install and test locally (recommended)
uv pip install llmcp

# Search for available models
llmcp search 'gemini-2*'

# Serve mcp server
# llmcp serve gemini-2.5-pro-exp-03-25

# Test start a mcp server and call it
llmcp test gpt-4o-mini "What is the capital of France?"
# Example output:
# Response:
# The capital of France is Paris.

# Add a gemini:ask tool to Claude Code
claude mcp add gemini uvx llmcp serve gemini-2.5-pro-exp-03-25

MCP details:

  • MCP server implements a minimalist ask tool. The ask tool schema is as follows:
    {
      "name": "ask",
      "description": "Send a prompt to the {model_name} model and get a response.",
      "input_schema": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string",
            "description": "The prompt to send to the {model_name} model."
          }
        },
        "required": ["prompt"]
      }
    }
    
  • Maximum token usage by default (automatically uses the maximum available tokens for the model)

Configuration

Set up your API keys as environment variables:

Provider Environment Variable
OpenAI OPENAI_API_KEY
Anthropic ANTHROPIC_API_KEY
Gemini GEMINI_API_KEY
Mistral MISTRAL_API_KEY
Cohere COHERE_API_KEY
Groq GROQ_API_KEY

Example:

export OPENAI_API_KEY="sk-..."
export ANTHROPIC_API_KEY="sk-..."
export GEMINI_API_KEY="..."
export MISTRAL_API_KEY="..."
export COHERE_API_KEY="..."
export GROQ_API_KEY="..."

Acknowledgements

This tool relies on the following libraries:

  • LiteLLM for interacting with various LLM APIs.
  • MCP Python SDK for implementing the Model Context Protocol.

License

MIT

Metadata

Release files for llmcp 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llmcp 0.1.2
File Size Uploaded Provenance
llmcp-0.1.2.tar.gz 206.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llmcp 0.1.2
File Interpreter ABI Platform
llmcp-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 214.9 kB

Release files / llmcp-0.1.2.tar.gz

Download URL llmcp-0.1.2.tar.gz
Size 206.8 kB
Tags Source
SHA-256 checksum
How to use checksums
aa16911b8262d65098c1ed186858e1c32c30af5fc1149ec55d8c09e4c4d9d172
BLAKE2b-256 checksum
How to use checksums
5344abdd5ea60426312ad8879f79fe1bb96145aa314ba0d614b69e030ba937b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.17

Release files / llmcp-0.1.2-py3-none-any.whl

Download URL llmcp-0.1.2-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d4d56eda444509978e9d0deb3e11c831f6e6cbb9096c1b5738381d9524f73133
BLAKE2b-256 checksum
How to use checksums
f2a5f662482873c2d5facadcec5e7616ffba772a5d708b02072e1418f504a33c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.17

Security for llmcp 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page