Skip to main content
Glama

SmarToken MCP

Create a SmarToken account

A stdio MCP server exposing list_models (public model metadata and pricing) and chat_completion (one text request). Model list and pricing can change; consult the live model endpoint and pricing.

The model lookup and one paid DeepSeek V4.1 Flash completion have been verified against the production API through the official Python MCP client. Other models and individual host applications should be verified in their own environments.

chat_completion sends the user's prompt to SmarToken and can incur charges. It uses the user's own SMTOKEN_API_KEY, bounded output, and does not automatically retry. A timeout or server error can leave the outcome unknown: check usage and request logs before retrying. Model output is untrusted content. Review your MCP client's approval settings; tool annotations do not guarantee approval prompts.

Get started

  1. Create an account or sign in. Registration does not include free API credit.

  2. Open Billing and add prepaid credit before making billable calls. Check the payment amount before confirming.

  3. Open API keys and create a key. Copy the full key when shown; existing keys cannot be revealed again. Set an appropriate budget and model scope.

  4. Install uv and configure your MCP client below. Use your own key and keep it private.

Cursor and Claude Desktop configuration

Use the following entry in Cursor's global ~/.cursor/mcp.json or a project's .cursor/mcp.json. For Claude Desktop, use ~/Library/Application Support/Claude/claude_desktop_config.json on macOS or %APPDATA%\\Claude\\claude_desktop_config.json on Windows. Merge the entry into an existing mcpServers object rather than replacing other servers. See Cursor's MCP guide and the MCP SDK Claude guide.

{
  "mcpServers": {
    "smartoken": {
      "command": "/absolute/path/to/uvx",
      "args": ["smartoken-mcp==0.1.3"],
      "env": { "SMTOKEN_API_KEY": "YOUR_SMARTOKEN_KEY" }
    }
  }
}

Replace the executable path with the result of which uvx on macOS/Linux or where uvx on Windows, and replace the placeholder with your SmarToken key. Windows paths in JSON need escaped backslashes. These JSON files contain a secret: restrict file access, do not commit or share them, and prefer your client's secure secret storage if available. Restart the client and confirm that list_models and chat_completion appear. list_models does not require a key or charge; chat_completion sends the prompt and can incur charges. Ask the client to list SmarToken models first; then explicitly request a short completion with an available text model.

The server reports links when a key is missing or invalid. For HTTP 402 it distinguishes insufficient balance from a key budget/model-scope limit when the API identifies the cause; otherwise check both Billing and API keys. Errors from network failures or HTTP 5xx can leave the request outcome unknown: inspect usage before retrying. Do not automatically retry.

This is a local stdio server, not a remote URL. It does not change the host application's underlying model and does not provide balance or account-management tools. It does not support tool calls, images or structured output in model requests. Client approval settings determine whether tool use prompts for confirmation.

The MCP server is a tool interface; installing it does not change your host application’s underlying model. See the API quickstart for direct Python, JavaScript and LiteLLM examples.

Available Tools

2 tools
chat_completionB

Send one text prompt to the chosen SmarToken model. This can incur a charge; no automatic retries.

Inputs: model (required), prompt (required), max_tokens.

list_modelsA
Read-only

List currently advertised models and their published prices. Availability can change.

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools serve clearly separate purposes: model discovery versus executing a chat completion. An agent can easily choose list_models for metadata and chat_completion for inference.

    Naming Consistency5/5

    Both names follow a consistent snake_case verb_noun pattern. list_models and chat_completion are predictable and readable.

    Tool Count3/5

    Two tools is thin for an API-wrapper server, though each is necessary for the apparent core workflow. It sits at the borderline of minimal-but-sufficient.

    Completeness3/5

    The surface covers model listing and a single-prompt completion, but lacks obvious adjacent operations such as multi-turn chat, streaming, or usage/billing introspection. These gaps are manageable but notable.

    Related MCP Connectors

    Related MCP Servers