TokenLab MCP Server
v0.6.51TokenLab MCP server: generate images and video, call models.
Values you need
| Variable | What it is | |
|---|---|---|
TOKENLAB_API_BASE | optional | Optional TokenLab API base URL. Defaults to https://api.tokenlab.sh. |
TOKENLAB_API_KEY | optional secret | Optional TokenLab API key. Required for LLM inference, multimodal generation, async task, embedding, rerank, and translation tools. |
TOKENLAB_REQUEST_TIMEOUT_MS | optional | Optional request timeout in milliseconds. Defaults to 120000. |
TOKENLAB_MCP_TOOL_PROFILE | optional | Optional generated tool profile: catalog, core (default), or full. |
TOKENLAB_MCP_SCHEMA_MODE | optional | Optional tool schema mode: portable, exact, or strict. Defaults to the selected profile's tested mode. |
TOKENLAB_MCP_MAX_FILE_BYTES | optional | Optional maximum local upload size per file. Defaults to 104857600 bytes. |
TOKENLAB_MCP_INLINE_BYTES | optional | Optional maximum response size returned inline. Defaults to 2097152 bytes. |
TOKENLAB_ARTIFACT_DIR | optional | Optional local directory for response artifacts that are not returned inline. |
TOKENLAB_MANAGEMENT_TOKEN | optional 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-serverAdd 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
- 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).
- Restart or reload the client so it starts the server.
- 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, ….
- 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