OpenAPI-generated MCP server for TokenLab model discovery, pricing, chat, native System One decisions, media, files, embeddings, webhooks and async tasks.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add tokenlab --env TOKENLAB_API_KEY='<TOKENLAB_API_KEY>' --env TOKENLAB_MANAGEMENT_TOKEN='<TOKENLAB_MANAGEMENT_TOKEN>' -- npx -y @tokenlabai/mcp-server~/.codex/config.toml
[mcp_servers.tokenlab]
command = "npx"
args = ["-y", "@tokenlabai/mcp-server"]
env = { TOKENLAB_API_KEY = "<TOKENLAB_API_KEY>", TOKENLAB_MANAGEMENT_TOKEN = "<TOKENLAB_MANAGEMENT_TOKEN>" }
# codex mcp add tokenlab --env TOKENLAB_API_KEY='<TOKENLAB_API_KEY>' --env TOKENLAB_MANAGEMENT_TOKEN='<TOKENLAB_MANAGEMENT_TOKEN>' -- npx -y @tokenlabai/mcp-server~/.cursor/mcp.json
{
"mcpServers": {
"tokenlab": {
"command": "npx",
"args": [
"-y",
"@tokenlabai/mcp-server"
],
"env": {
"TOKENLAB_API_KEY": "<TOKENLAB_API_KEY>",
"TOKENLAB_MANAGEMENT_TOKEN": "<TOKENLAB_MANAGEMENT_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"tokenlab": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@tokenlabai/mcp-server"
],
"env": {
"TOKENLAB_API_KEY": "<TOKENLAB_API_KEY>",
"TOKENLAB_MANAGEMENT_TOKEN": "<TOKENLAB_MANAGEMENT_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"tokenlab": {
"command": "npx",
"args": [
"-y",
"@tokenlabai/mcp-server"
],
"env": {
"TOKENLAB_API_KEY": "<TOKENLAB_API_KEY>",
"TOKENLAB_MANAGEMENT_TOKEN": "<TOKENLAB_MANAGEMENT_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"tokenlab": {
"command": "npx",
"args": [
"-y",
"@tokenlabai/mcp-server"
],
"env": {
"TOKENLAB_API_KEY": "<TOKENLAB_API_KEY>",
"TOKENLAB_MANAGEMENT_TOKEN": "<TOKENLAB_MANAGEMENT_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"tokenlab": {
"command": "npx",
"args": [
"-y",
"@tokenlabai/mcp-server"
],
"env": {
"TOKENLAB_API_KEY": "<TOKENLAB_API_KEY>",
"TOKENLAB_MANAGEMENT_TOKEN": "<TOKENLAB_MANAGEMENT_TOKEN>"
}
}
}
}Environment variables
TOKENLAB_API_KEYTOKENLAB_MANAGEMENT_TOKEN
Replace the placeholders with your own credentials and keep them out of version control.