Dagon Inference

v0.1.0
io.github.inkwell-finance/dagon-mcp Checked 23 hours ago Published 22 days ago

Uncensored LLM inference: list models, chat, create keys, buy credits with Solana USDC.

Values you need

VariableWhat it is
DAGON_API_KEYoptional secret Dagon account key (gk_...) for balance, purchases and chat
DAGON_BASE_URLoptional Gateway URL (default https://inference.dagon.so)
DAGON_WALLET_SECRET_KEYoptional secret Optional Solana secret key for self-signed USDC purchases; use a dedicated hot wallet
DAGON_TREASURY_WALLEToptional Trusted Dagon treasury address, required for purchases (9rMdbu4KdLWH2nPXbzhm9HTKaibGZ2ckakQbW1wPh6KK)
DAGON_SOLANA_RPC_URLoptional Solana RPC for submitting unsponsored purchases
DAGON_MIN_PURCHASE_USDoptional Smallest purchase in USD (default 1)
DAGON_MAX_PURCHASE_USDoptional Largest purchase per call in USD (default 50; 0 disables purchases)
DAGON_MAX_PURCHASE_USD_PER_SESSIONoptional Purchase cap per server process in USD (default 200)
DAGON_MAX_PURCHASE_USD_PER_DAYoptional Purchase cap per UTC day in USD (default 200)
DAGON_MAX_SOL_FEESoptional Daily worst-case SOL fee cap (default 0.05)
DAGON_SPEND_LEDGERoptional Path of the daily spend ledger file

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add dagon-mcp -- npx -y dagon-mcp@0.1.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "dagon-mcp": {
      "args": [
        "-y",
        "dagon-mcp@0.1.0"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "dagon-mcp": {
      "args": [
        "-y",
        "dagon-mcp@0.1.0"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "dagon-mcp": {
      "args": [
        "-y",
        "dagon-mcp@0.1.0"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.dagon-mcp]
command = "npx"
args = ["-y", "dagon-mcp@0.1.0"]

Remote (hosted)

Run in a terminal
claude mcp add --transport http dagon-mcp https://inference.dagon.so/mcp --header 'Authorization: <Authorization>'
Add to Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote)
{
  "mcpServers": {
    "dagon-mcp": {
      "args": [
        "-y",
        "mcp-remote",
        "https://inference.dagon.so/mcp",
        "--header",
        "Authorization: <Authorization>"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "dagon-mcp": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "url": "https://inference.dagon.so/mcp"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "dagon-mcp": {
      "headers": {
        "Authorization": "<Authorization>"
      },
      "type": "http",
      "url": "https://inference.dagon.so/mcp"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.dagon-mcp]
command = "npx"
args = ["-y", "mcp-remote", "https://inference.dagon.so/mcp", "--header", "Authorization: <Authorization>"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: dagon_models, dagon_balance, dagon_create_key, dagon_buy_credits, dagon_confirm_purchase, dagon_chat.
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json