Llmkit MCP Server

Open-source API gateway for AI providers. Logs every request with token counts and dollar costs.

Local serverstdioPython

What is the Llmkit MCP server?

Llmkit MCP server exists for a simple reason — assistants are far more useful when they can act on Llmkit directly instead of describing what you should do. Open-source API gateway for AI providers. Logs every request with token counts and dollar costs.

What you get

  • /v1/pricing/compare - compare cost across all 730+ models for a given token count

Setting it up

Installation goes through your MCP client rather than a global install: point it at @f3d1/llmkit-cli on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

What the assistant can call

Once Llmkit is connected, these are the calls the assistant has available:

  • uses — smigolsmigol/llmkit/.github/actions/llmkit-budget@main
  • Layer — What
  • Encryption — Provider keys: AES-256-GCM, random IV, context-bound AAD
  • Hashing — User API keys: SHA-256, never stored in plaintext
  • Runtime — Cloudflare Workers: no filesystem, no .env, nothing to exfiltrate
  • Provenance — npm packages published with Sigstore provenance via GitHub Actions OIDC
  • Pre-commit — 19 secret patterns + credential file blocking + gitleaks
  • Package — Description

Configuration and credentials

You will need 5 environment variables: LLMKIT_API_KEY, LLMKIT_KEY, SUPABASE_URL, SUPABASE_KEY, ENCRYPTION_KEY. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the llmkit mcp server does with a few real requests.

Choosing this one

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Llmkit's toolset — uses, Layer, Encryption and 5 more — is a fair guide to whether it matches your workflow. It is maintained by smigolsmigol; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
usessmigolsmigol/llmkit/.github/actions/llmkit-budget@main
LayerWhat
EncryptionProvider keys: AES-256-GCM, random IV, context-bound AAD
HashingUser API keys: SHA-256, never stored in plaintext
RuntimeCloudflare Workers: no filesystem, no .env, nothing to exfiltrate
Provenancenpm packages published with [Sigstore provenance](https://docs.npmjs.com/generating-provenance-statements) via GitHub Actions OIDC
Pre-commit19 secret patterns + credential file blocking + gitleaks
PackageDescription

How to install the Llmkit MCP server

{
  "mcpServers": {
    "llmkit": {
      "command": "npx",
      "args": ["-y", "@f3d1/llmkit-cli"],
      "env": {
        "LLMKIT_API_KEY": "your-value",
        "LLMKIT_KEY": "your-value",
        "SUPABASE_URL": "your-value",
        "SUPABASE_KEY": "your-value",
        "ENCRYPTION_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
LLMKIT_API_KEYCredential the server authenticates with.Yes
LLMKIT_KEYCredential the server authenticates with.Yes
SUPABASE_URLEndpoint or connection string the server talks to.Yes
SUPABASE_KEYCredential the server authenticates with.Yes
ENCRYPTION_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Llmkit to uses.
  • Use Llmkit to Layer.
  • Use Llmkit to Encryption.

Frequently asked questions

It connects Llmkit to MCP-compatible AI assistants such as Claude and Cursor, exposing 8 tools (uses, Layer, Encryption, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Llmkit directly.