The public catalog tools do not require a TokenLab API key. The server does not proxy paid inference requests.
What It Provides
- Live model discovery from
https://api.tokenlab.sh/v1/models. - Model detail lookup from
/v1/models/{model}. - Pricing lookup from
/v1/models/{model}/pricing. - Agent-readable API overview from
https://api.tokenlab.sh/llms.txt. - Endpoint-family guidance for OpenAI-compatible chat, Responses, Anthropic Messages, Gemini, media, audio, embeddings, rerank, and translation.
Install From GitHub
Clone the public repository and install dependencies:TOKENLAB_API_BASE environment variable defaults to https://api.tokenlab.sh.
Install in Codex
Add the public catalog server to your Codex configuration:TOKENLAB_API_KEY.
Claude Desktop Configuration
Add the server to your MCP client configuration. Replace the path with your local clone path:Cursor, Windsurf, And Other MCP Clients
Use the same command and args in any client that supports stdio MCP servers:tokenlab-model-catalog as the server name.
Tools
| Tool | Purpose |
|---|---|
list_models | List public TokenLab models. Optionally filter with recommended_for such as image, video, embedding, rerank, or translation. |
get_model | Fetch one model’s public details and supported request format. |
get_model_pricing | Fetch one model’s public pricing details. |
get_api_overview | Fetch TokenLab’s llms.txt overview for agent-readable endpoint guidance. |
Recommended Agent Workflow
- Call
list_modelswhen the user has not named a model. - Use
recommended_forfor non-chat tasks, such as image, video, music, 3D, TTS, STT, embeddings, rerank, or translation. - Call
get_modelbefore building a non-chat request, retrying a failed request, or switching endpoint families. - Call
get_model_pricingwhen model cost affects the user’s choice. - Use
get_api_overviewwhen the agent needs a compact map of TokenLab API families.
Native Endpoint Guidance
TokenLab supports OpenAI-compatible routes and native endpoint families. The MCP server helps an agent choose the right route before it writes code:| Family | Common route |
|---|---|
| OpenAI-compatible chat | /v1/chat/completions |
| Responses | /v1/responses |
| Anthropic Messages | /v1/messages |
| Gemini native | /v1beta/models/{model}:generateContent |
| Images | /v1/images/generations, /v1/images/edits |
| Video | /v1/videos/generations |
| Music | /v1/music/generations |
| 3D | /v1/3d/generations |
| Audio | /v1/audio/speech, /v1/audio/transcriptions, /v1/audio/translations |
| Embeddings and rerank | /v1/embeddings, /v1/rerank |
| Text translation | /v1/translations |
Use It With TokenLab Skills
The MCP server is useful at runtime, while the TokenLab skills repository teaches coding agents how to generate and repair integration code. Use both when available:- MCP server: discover current models, pricing, and endpoint details.
tokenlab-api-integrationskill: generate runnable API examples and handle structured TokenLab errors.tokenlab-model-pickerskill: choose strong models for the user’s task.tokenlab-native-endpointsskill: decide when to use Responses, Anthropic Messages, Gemini, media, audio, embedding, rerank, or translation routes.
Troubleshooting
The client cannot start the server
The client cannot start the server
Check that the
args path points to your local src/index.js file and that npm install completed in the cloned repository.The model list is empty
The model list is empty
Verify that the machine can reach
https://api.tokenlab.sh/v1/models. If you override TOKENLAB_API_BASE, make sure it does not include a trailing slash.The agent still chooses stale model IDs
The agent still chooses stale model IDs
Ask the agent to call
list_models or get_model before hardcoding a model name. Pairing the MCP server with tokenlab-model-picker gives better results.Can this server call paid TokenLab inference APIs?
Can this server call paid TokenLab inference APIs?
No. It is intentionally read-only for public catalog, contract, pricing, and overview data. Use the TokenLab API directly for inference.
Resources
GitHub Repository
Source code and local setup instructions
TokenLab Skills
Maintained agent skills for TokenLab integrations
Model Catalog API
Public model discovery endpoint
llms.txt
Agent-readable TokenLab API overview
Glama MCP Server
View the verified TokenLab MCP Server listing
Glama Model Explorer
Explore models, pricing, and native endpoint examples
MCP.so Listing
Discover TokenLab in the AI & Agents directory