TokenLab MCP Server

v0.6.51
io.github.hedging8563/tokenlab Checked 13 hours ago Published 1 day ago

TokenLab MCP server: generate images and video, call models.

Values you need

VariableWhat it is
TOKENLAB_API_BASEoptional Optional TokenLab API base URL. Defaults to https://api.tokenlab.sh.
TOKENLAB_API_KEYoptional secret Optional TokenLab API key. Required for LLM inference, multimodal generation, async task, embedding, rerank, and translation tools.
TOKENLAB_REQUEST_TIMEOUT_MSoptional Optional request timeout in milliseconds. Defaults to 120000.
TOKENLAB_MCP_TOOL_PROFILEoptional Optional generated tool profile: catalog, core (default), or full.
TOKENLAB_MCP_SCHEMA_MODEoptional Optional tool schema mode: portable, exact, or strict. Defaults to the selected profile's tested mode.
TOKENLAB_MCP_MAX_FILE_BYTESoptional Optional maximum local upload size per file. Defaults to 104857600 bytes.
TOKENLAB_MCP_INLINE_BYTESoptional Optional maximum response size returned inline. Defaults to 2097152 bytes.
TOKENLAB_ARTIFACT_DIRoptional Optional local directory for response artifacts that are not returned inline.
TOKENLAB_MANAGEMENT_TOKENoptional secret Optional workspace Management Token (mt-...) for webhook tools in the full profile. Separate from inference API keys; never put it in tool arguments.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add tokenlab -- npx -y --package=@tokenlabai/mcp-server@0.6.51 tokenlab-mcp-server
Add to claude_desktop_config.json
{
  "mcpServers": {
    "tokenlab": {
      "args": [
        "-y",
        "--package=@tokenlabai/mcp-server@0.6.51",
        "tokenlab-mcp-server"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "tokenlab": {
      "args": [
        "-y",
        "--package=@tokenlabai/mcp-server@0.6.51",
        "tokenlab-mcp-server"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "tokenlab": {
      "args": [
        "-y",
        "--package=@tokenlabai/mcp-server@0.6.51",
        "tokenlab-mcp-server"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.tokenlab]
command = "npx"
args = ["-y", "--package=@tokenlabai/mcp-server@0.6.51", "tokenlab-mcp-server"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: cancel_task, create_3d_model, create_anthropic_message, create_chat_completion, create_embedding, create_gemini_content, create_image, create_image_file, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json