D

Dagon MCP

by inkwell-finance · io.github.inkwell-finance/dagon-mcp

Use uncensored (abliterated) LLMs from your AI agent. Dagon Inference serves GLM-5.3 Abliterated, DeepSeek V4.1 Flash Abliterated, Kimi K3.1 Pro Abliterated and more through one OpenAI- and Anthropic-compatible API, routed to the cheapest provider and paid in USDC on Solana with no KYC. Tools: list models and live prices, check your balance, create an API key, buy credits with USDC (the transactio

npm Remote GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-inkwell-finance-dagon-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "dagon-mcp"
      ],
      "env": {
        "DAGON_API_KEY": "<YOUR_VALUE>",
        "DAGON_BASE_URL": "https://inference.dagon.so",
        "DAGON_WALLET_SECRET_KEY": "<YOUR_VALUE>",
        "DAGON_TREASURY_WALLET": "<VALUE>",
        "DAGON_SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com",
        "DAGON_MIN_PURCHASE_USD": "1",
        "DAGON_MAX_PURCHASE_USD": "50",
        "DAGON_MAX_PURCHASE_USD_PER_SESSION": "200",
        "DAGON_MAX_PURCHASE_USD_PER_DAY": "200",
        "DAGON_MAX_SOL_FEES": "0.05",
        "DAGON_SPEND_LEDGER": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-inkwell-finance-dagon-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "dagon-mcp"
      ],
      "env": {
        "DAGON_API_KEY": "<YOUR_VALUE>",
        "DAGON_BASE_URL": "https://inference.dagon.so",
        "DAGON_WALLET_SECRET_KEY": "<YOUR_VALUE>",
        "DAGON_TREASURY_WALLET": "<VALUE>",
        "DAGON_SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com",
        "DAGON_MIN_PURCHASE_USD": "1",
        "DAGON_MAX_PURCHASE_USD": "50",
        "DAGON_MAX_PURCHASE_USD_PER_SESSION": "200",
        "DAGON_MAX_PURCHASE_USD_PER_DAY": "200",
        "DAGON_MAX_SOL_FEES": "0.05",
        "DAGON_SPEND_LEDGER": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-inkwell-finance-dagon-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "dagon-mcp"
      ],
      "env": {
        "DAGON_API_KEY": "<YOUR_VALUE>",
        "DAGON_BASE_URL": "https://inference.dagon.so",
        "DAGON_WALLET_SECRET_KEY": "<YOUR_VALUE>",
        "DAGON_TREASURY_WALLET": "<VALUE>",
        "DAGON_SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com",
        "DAGON_MIN_PURCHASE_USD": "1",
        "DAGON_MAX_PURCHASE_USD": "50",
        "DAGON_MAX_PURCHASE_USD_PER_SESSION": "200",
        "DAGON_MAX_PURCHASE_USD_PER_DAY": "200",
        "DAGON_MAX_SOL_FEES": "0.05",
        "DAGON_SPEND_LEDGER": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-inkwell-finance-dagon-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "dagon-mcp"
      ],
      "env": {
        "DAGON_API_KEY": "<YOUR_VALUE>",
        "DAGON_BASE_URL": "https://inference.dagon.so",
        "DAGON_WALLET_SECRET_KEY": "<YOUR_VALUE>",
        "DAGON_TREASURY_WALLET": "<VALUE>",
        "DAGON_SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com",
        "DAGON_MIN_PURCHASE_USD": "1",
        "DAGON_MAX_PURCHASE_USD": "50",
        "DAGON_MAX_PURCHASE_USD_PER_SESSION": "200",
        "DAGON_MAX_PURCHASE_USD_PER_DAY": "200",
        "DAGON_MAX_SOL_FEES": "0.05",
        "DAGON_SPEND_LEDGER": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-inkwell-finance-dagon-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "dagon-mcp"
      ],
      "env": {
        "DAGON_API_KEY": "<YOUR_VALUE>",
        "DAGON_BASE_URL": "https://inference.dagon.so",
        "DAGON_WALLET_SECRET_KEY": "<YOUR_VALUE>",
        "DAGON_TREASURY_WALLET": "<VALUE>",
        "DAGON_SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com",
        "DAGON_MIN_PURCHASE_USD": "1",
        "DAGON_MAX_PURCHASE_USD": "50",
        "DAGON_MAX_PURCHASE_USD_PER_SESSION": "200",
        "DAGON_MAX_PURCHASE_USD_PER_DAY": "200",
        "DAGON_MAX_SOL_FEES": "0.05",
        "DAGON_SPEND_LEDGER": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-inkwell-finance-dagon-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "dagon-mcp"
      ],
      "env": {
        "DAGON_API_KEY": "<YOUR_VALUE>",
        "DAGON_BASE_URL": "https://inference.dagon.so",
        "DAGON_WALLET_SECRET_KEY": "<YOUR_VALUE>",
        "DAGON_TREASURY_WALLET": "<VALUE>",
        "DAGON_SOLANA_RPC_URL": "https://api.mainnet-beta.solana.com",
        "DAGON_MIN_PURCHASE_USD": "1",
        "DAGON_MAX_PURCHASE_USD": "50",
        "DAGON_MAX_PURCHASE_USD_PER_SESSION": "200",
        "DAGON_MAX_PURCHASE_USD_PER_DAY": "200",
        "DAGON_MAX_SOL_FEES": "0.05",
        "DAGON_SPEND_LEDGER": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
DAGON_API_KEY secret No Account key (gk_...) for balance, purchases and chat. Required when DAGON_WALLET_SECRET_KEY is set; purchases cannot override it.
DAGON_BASE_URL No Gateway URL. Must use https://; http:// is accepted only for localhost, 127.x, or [::1]. Default: https://inference.dagon.so
DAGON_WALLET_SECRET_KEY secret No Optional Solana secret key: 64-byte base58 or JSON byte array; a 32-byte seed is accepted only in JSON byte-array form. A 32-byte base58 value is a Solana address and is refused. Enables validated self-signed purchases.
DAGON_TREASURY_WALLET No Trusted Solana treasury owner whose USDC associated token account receives purchases. Required for any purchase and when DAGON_WALLET_SECRET_KEY is set.
DAGON_SOLANA_RPC_URL No RPC URL for submitting signed purchases that are not fee sponsored. Default: https://api.mainnet-beta.solana.com
DAGON_MIN_PURCHASE_USD No Smallest single dagon_buy_credits amount in USD (whole cents). Default: 1
DAGON_MAX_PURCHASE_USD No Largest single dagon_buy_credits amount in USD (whole cents). Set to 0 to disable purchases. Default: 50
DAGON_MAX_PURCHASE_USD_PER_SESSION No Total USD of purchases one MCP server process may prepare. Default: 200
DAGON_MAX_PURCHASE_USD_PER_DAY No Total USD of purchases per UTC day, persisted across restarts in the spend ledger. Default: 200
DAGON_MAX_SOL_FEES No Worst-case SOL (fees plus treasury account rent) unsponsored purchases may cost the payer per UTC day. Default: 0.05
DAGON_SPEND_LEDGER No File holding the daily spend totals. Defaults to %APPDATA%\dagon-mcp\spend-ledger.json on Windows, or $XDG_CONFIG_HOME/dagon-mcp/spend-ledger.json (or ~/.config/dagon-mcp/spend-ledger.json) elsewhere.

Remote headers

HTTP headers the remote endpoint expects.

NameRequiredDescription
Authorization secret No Bearer <Dagon account key (gk_...)>, for balance, purchases and chat; dagon_models and dagon_create_key work without it. The remote server never holds a wallet: purchases return the unsigned transaction to sign.

Similar servers