Routes model discovery, pricing, inference, media generation, files, embeddings, and translation through TokenLab over MCP.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
This server is confirmed live โ we successfully called its tools/list endpoint directly (see the verified badge above). We haven't yet sandbox-tested the stdio install command below specifically, which is a separate, ongoing check.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Tokenlab MCP Server.
cancel_taskCancel async task Cancels a queued asynchronous task when cancellation is supported for the selected task. Cancellation currently supports queued Seedance video tasks (`seedance-1.5-pro`, `seedance-2.0`, and `seedance-2.0-fast`) while they are still waiting to run. Tasks that are already processing, completed, failed, expired, or unsupported are not cancelled.
create_3d_modelCreate 3D model generation task Creates a 3D model generation task using Tripo3D. Returns a task ID for polling.
create_anthropic_messageCreate message (Anthropic-compatible) Creates a model response using Anthropic's native request format. Supports Claude models with vision and streaming. **Authentication:** Use `x-api-key` header or `Authorization: Bearer` header.
create_chat_completionCreate an OpenAI-compatible chat completion. For inline image_url data URLs, declare the byte-accurate image MIME type. The MCP boundary corrects recognized PNG, JPEG, WebP, and GIF payloads declared as application/octet-stream and rejects unrecognized generic binary image payloads before sending a billable request.
create_embeddingCreate embeddings Creates an embedding vector representing the input text.
create_gemini_contentGenerate content (Gemini-compatible) Generates content using the native Gemini GenerateContent shape. This route is exposed only when the model details advertise Gemini requests and a same-protocol route is currently available. ProtoJSON lowerCamelCase and original proto snake_case field names are preserved. Unknown fields are forwarded best-effort and support is determined by the selected provider. **Authentication:** Use `?key=` query parameter, `x-goog-api-key` header, or `Authorization: Bearer` header.
The hedging8563/tokenlab-mcp-server MCP server connects MCP clients to TokenLab's public catalog and broader developer API. Agents can list models, inspect model-specific operations and request formats, retrieve pricing, and compare several models before selecting an endpoint. The catalog profile is public-only, while the default core profile adds common inference, media, file, embedding, reranking, translation, and task operations. A full profile exposes the wider allowlisted API surface.
The server supports OpenAI-compatible Chat Completions, the OpenAI Responses format, Anthropic Messages, and Gemini GenerateContent. It also exposes image creation and editing, speech synthesis, transcription, audio translation, video, music, and 3D generation. File operations cover uploads, listing, retrieval, content retrieval, and deletion.
The package is generated from TokenLab's OpenAPI contract with an MCP-specific overlay. Tool definitions retain the relevant HTTP bindings, content types, authentication requirements, and endpoint-oriented argument structures. Calls are checked against the generated schema before an API request is sent. MCP responses include structured content while retaining serialized text for clients that do not consume structured results.
The server offers catalog, core, and full tool profiles through TOKENLAB_MCP_TOOL_PROFILE. Schema presentation can use portable, exact, or strict modes. Two prompts help agents choose a model from live information and construct a request without losing the selected native protocol shape. Resources provide the API overview, OpenAPI snapshot, and compact public contract.
Video, music, and 3D jobs are asynchronous. Image operations can be synchronous or asynchronous depending on the selected model. Creation responses provide normalized delivery information such as a task ID and polling URL; clients use get_task_status until the task reaches a terminal state. Larger binary results can be written to an artifact directory instead of being returned inline.
Install and run the package with:
A local installation can instead use npm install followed by npm start, or the project can be run from its Docker image. The documented Claude Desktop configuration starts the npm package with npx and can set TOKENLAB_API_BASE; the default API base is https://api.tokenlab.sh.
No key is needed for model discovery and pricing. Set TOKENLAB_API_KEY for credentialed inference, generation, asynchronous task, embedding, reranking, and translation calls. Other settings control the exposed profile, schema mode, request timeout, upload limit, inline response limit, and artifact output directory.
The hedging8563/tokenlab-mcp-server MCP server includes tools for:
Multipart operations accept local file paths. Chat image data URLs should use accurate image MIME types; recognized PNG, JPEG, WebP, and GIF data mislabeled as generic binary can be corrected at the MCP boundary.
Availability depends on the selected model's advertised request format and the provider route currently exposed by TokenLab. A model name or provider alone does not guarantee support for Responses or Gemini-native requests. Unknown fields are forwarded on a best-effort basis and remain subject to provider support.
Streaming-only and realtime operations are excluded because stdio MCP calls return one final result. Requests that accept streaming have it fixed internally to non-streaming. Cancellation currently applies only to queued Seedance video tasks for the documented model variants; processing, completed, failed, expired, and unsupported tasks are not cancelled. Image input and some multimodal features may require provider-specific enablement.
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/hedging8563-tokenlab-mcp-server)<a href="https://allmcps.com/mcp/hedging8563-tokenlab-mcp-server"><img src="https://allmcps.com/api/badge/hedging8563-tokenlab-mcp-server?style=directory" alt="Tokenlab MCP Server on AllMCPs" /></a>