LiuXiyun

SmarToken MCP

Community LiuXiyun
Updated

A local MCP server for the SmarToken API

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. Eligible approved accounts may receive a one-time $1 trial credit valid for 30 days after issue; see the trial terms.
  2. Open Billing and check your available credit before making billable calls. Add prepaid credit if needed, and 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.

MCP Server · Populars

MCP Server · New

    superdesigndev

    Treg (OpenRouter for Tools)

    OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn

    Community superdesigndev
    chempane

    chemdraw-mcp

    chempane (formerly chemdraw-mcp): chemistry panel for Claude Desktop (MCP server). Ask for a molecule, get a drawing you can turn, click and export. Structures, 3D models, mechanisms and Anki cards drawn locally with RDKit, plus spectra and lab plots; proteins from the PDB or AlphaFold. Unofficial, not affiliated with Revvity.

    Community chempane
    MaximaLabs

    Dev MCP Suite 🚀

    Five local, file-based MCP servers for solo devs: persistent memory, session handoff/resume, file checkpoints, token-efficient briefings + optional Armada fleet ops. Works with any MCP client.

    Community MaximaLabs
    JollyToday

    Weydub Pro Subtitle Removal

    auto video translation-video translator can auto translate video hard subtitles, auto video translation and dubbing, remove any video text, auto remove video subtitles/text. 自动视频翻译配音,自动翻译视频字幕和回填样式,自动硬字幕翻译。

    Community JollyToday