Skip to main content
Glama

FreeLLM-MCP

An open Model Context Protocol (MCP) server for real-time free LLM performance and availability.

What it does

freellm-mcp exposes live measured metrics from Free LLM Watch (throughput in tokens/sec, availability, 7-day uptime, tool-calling success, and verbatim failure text) to AI coding assistants and agent workflows via the Model Context Protocol.

Agents can use tools like:

  • list_free_models — list all tracked free models with status and throughput.

  • get_fastest_free_model — find the currently fastest healthy free model.

  • check_model_status — get detailed diagnostics for a specific model ID.

  • get_most_reliable_free_model — find the healthy free model with the best 7-day uptime.

Related MCP server: AgentLayer MCP Server

Install

From a checkout, install the console entry point:

python3 -m pip install .

The installed command is freellm-mcp. It has no third-party runtime dependencies; the optional MCP SDK is only needed for the conformance check.

Usage in Claude Desktop / Cursor

Add to your MCP configuration (claude_desktop_config.json). Use the installed command after installation, or point directly at server.py in a checkout:

{
  "mcpServers": {
    "freellm": {
      "command": "freellm-mcp",
      "args": []
    }
  }
}

By default the server fetches the public board at https://freellmwatch.xyz/api/status.json and caches it for five minutes. Override the source with FREEMCP_REMOTE_URL, point it at a local status JSON file with FREEMCP_STATUS_PATH, or move the cache with FREEMCP_CACHE_PATH.

Set FREEMCP_TRANSPORT=http to serve Streamable HTTP on http://127.0.0.1:8901/mcp instead of stdio (port via FREEMCP_HTTP_PORT).

Local Testing

You can quickly test the server locally with Python:

python3 server.py

And feed JSON-RPC initialization requests to stdin.

Run the unit tests and the independent official-SDK conformance check with:

python3 -m pytest -q test_server.py
python3 -m pip install mcp   # optional, for the conformance check
python3 conformance_check.py

Verification

  • test_server.py: 11/11 unit tests pass, including end-to-end HTTP transport checks.

  • conformance_check.py: 14/14 checks pass when run with the optional official MCP SDK.

  • A clean isolated installation resolves as freellm-watch-mcp 1.1.0; the installed freellm-mcp entry point completes a negotiated JSON-RPC initialization handshake.

  • Runtime dependencies: none.

Repository Structure

freellm-mcp/
├── server.py                  # MCP server implementation
├── test_server.py             # unit tests
├── conformance_check.py       # official SDK conformance check
├── README.md                  # this documentation
├── pyproject.toml             # package metadata and entry point
├── registry.json              # example agent configuration
├── .gitignore                 # generated paths
└── LICENSE                    # MIT license

Available Tools

4 tools
check_model_statusA

Get detailed live metrics and error history for a specific free model ID.

Inputs: model_id (required).

get_fastest_free_modelA

Get the currently fastest healthy free LLM API by measured tokens/second.

Inputs: no named parameters.

get_most_reliable_free_modelA

Get the free LLM API with the highest measured 7-day uptime among those currently answering.

Inputs: no named parameters.

list_free_modelsA

List all tracked free LLM APIs with live measured status, throughput (tokens/sec), uptime, and tool-calling support.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose: listing all models, fetching the fastest, fetching the most reliable, and checking status of a specific model. No overlap in function, so an agent can easily select the right tool.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case: list_free_models, get_fastest_free_model, get_most_reliable_free_model, check_model_status. The pattern is predictable and uniform.

    Tool Count5/5

    With exactly 4 tools, the server is well-scoped for a read-only model directory. Each tool serves a distinct query need without redundancy or bloat.

    Completeness4/5

    The surface covers listing, filtered retrieval (fastest/reliable), and per-model status. Missing an explicit search-by-name tool, but check_model_status covers that by ID. No lifecycle operations are needed for a read-only directory, so minor gap is acceptable.

    Related MCP Connectors

    Related MCP Servers