Home / MCP

MCP server — attach the directory to your AI client

Every record in the directory is machine-readable: the same SQLite source, exposed to AI clients (Claude Desktop / Cursor / your own agent) as MCP tools.

1. How to connect

The MCP server is a local stdio process reading the same SQLite source (read-only); there is no separate copy.

{
  "mcpServers": {
    "kunlab-directory": {
      "command": "/srv/kunlab-directory/.venv/bin/python",
      "args": ["/srv/kunlab-directory/scripts/mcp_server.py"]
    }
  }
}

Protocol version 2024-11-05 · Server kunlab-directory

2. Tools

ToolDescription
search_modelsSearch models by name, vendor or category; returns specs and official prices (empty when not collected).
get_modelModel details by slug: context, output cap, per-supplier quotes, source and verification date.
get_priceOfficial price and lowest per-supplier quote for a model (per 1M tokens).
list_vendorsList the listed model vendors and how many models each has.
list_offersList token suppliers (official / aggregator / gateway) and their quote counts.
price_indexPrice index: official price against the lowest quote at each supplier.

Each quote carries its own unit (per 1M tokens / per image / per second / per character); different units are not comparable.

3. How the data stays fresh

4. About the retired public API

The public JSON API and the correction write endpoint were retired on 2026-11-26; MCP is now the only machine-readable surface. For anything that needs a write, use the contact page。

The underlying pricing data remains published under CC BY 4.0 — cite the entity page and its verification date.