NEWGPU owners: host free demos on your card and earn a bigger share of every paid job. See how →

Integration guide

MCP server

Connect legit2compute to any MCP client (Claude Code, Claude Desktop, Cursor, VS Code, Windsurf and more) and your assistant can ask our language models, make images, music, voiceovers, sound effects and video, and check your balance, all on your own API key.

Server URL (streamable HTTP)
https://legit2compute.com/mcp
Auth header
Authorization: Bearer l2ck_…
Registry name
com.legit2compute/mcp
Try it before you sign up. The snippets on this page use our public demo key, so they run as pasted: it calls ornith-1.5:9b, a model we keep loaded all the time, free, shared by everyone and rate-limited. When you want every model, your own limits and the Private switch, get your own key (one click with Discord, Google, GitHub or Twitch, with trial credit) and sign in: these snippets then fill in your key.

Tools

ToolWhat it does
accountYour credit balance, the media pipelines your key can run with their estimated cost, and token prices.
list_modelsEvery language model your key can call, with context, tool support and price.
chatAsk a model (l2c/auto picks the cheapest that fits). Billed per token.
generateStart a media job: image, image edit, music or song, cloned voice (other languages too), sound effect, text or image to video, long video to clips, transcript, article, podcast.
get_jobA job's status, waiting up to 50 seconds; when done, its files with download links.

Claude Code

shell
claude mcp add --transport http legit2compute https://legit2compute.com/mcp \
  --header "Authorization: Bearer l2ck_demo_cc7af91fbc644562a91444be9c80ce81"

Cursor

In ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

json
{
  "mcpServers": {
    "legit2compute": {
      "url": "https://legit2compute.com/mcp",
      "headers": { "Authorization": "Bearer l2ck_demo_cc7af91fbc644562a91444be9c80ce81" }
    }
  }
}

VS Code

In .vscode/mcp.json. VS Code asks for the key once and stores it securely:

json
{
  "inputs": [
    { "type": "promptString", "id": "l2c-key", "description": "legit2compute API key", "password": true }
  ],
  "servers": {
    "legit2compute": {
      "type": "http",
      "url": "https://legit2compute.com/mcp",
      "headers": { "Authorization": "Bearer ${input:l2c-key}" }
    }
  }
}

Claude Desktop and other stdio clients

A client that only starts local servers can reach the hosted one through the mcp-remote bridge (needs Node.js 18+). In claude_desktop_config.json:

json
{
  "mcpServers": {
    "legit2compute": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://legit2compute.com/mcp", "--header", "Authorization:${L2C_AUTH}"],
      "env": { "L2C_AUTH": "Bearer l2ck_demo_cc7af91fbc644562a91444be9c80ce81" }
    }
  }
}

Things to know

  • Your key, your credit. Every tool runs with the key you send, so it can do exactly what that key can do. Keep it out of shared configs; rotate it any time at /developers.
  • Media takes a while. generate answers at once with a job_id; the assistant then calls get_job until it is done. A running job is billed whether or not anyone is watching, so it should never be submitted twice.
  • Privacy. Prompts and outputs pass through and are not stored or logged. Switch on Private in your dashboard to keep every model request on machines we own.
  • 402 means out of credit: top up at /developers.
  • Prefer a skill to tools? The agent skill does the same from the command line, with local file uploads.