
Dagon Inference
io.github.inkwell-finance由 GitHub 账号 inkwell-finance 发布v0.1.0更新于 Nov 11, 2026
Uncensored LLM inference: list models, chat, create keys, buy credits with Solana USDC.
概览
让助手接入 Dagon Inference 的无审查开源权重模型:列出模型、对话、创建账户密钥,并用 Solana USDC 购买额度。
- 可以做什么
- 列出可用模型及其价格
- 查询账户额度、用量与可用美元余额
- 创建新的 Dagon 账户密钥(仅显示一次)
- 用 Solana USDC 购买额度:可返回未签名交易交由自有钱包签名,或用已配置钱包签名
- 确认自行提交或自行签名的购买
- 对指定模型执行一次非流式对话补全
- 适用场景
- 适合希望助手在 MCP 客户端中直接调用 Dagon 开源权重模型,或在不离开对话的情况下查看余额、充值额度的场景。主要面向已用 Solana USDC 支付推理费用的用户。
- 运行要求
- 可通过 npx 本地运行(需 Node 22.18 或更高版本),也可作为远程端点使用。余额、购买与对话需要 DAGON_API_KEY(或 Authorization 请求头);购买还需 DAGON_TREASURY_WALLET。可选的 DAGON_WALLET_SECRET_KEY 用于自行签名购买,DAGON_SOLANA_RPC_URL 用于提交非代付交易。需要访问网关与 Solana RPC 的网络。
安装
在 SourceWeft 中
- 打开 控制台中的 Dagon Inference,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
交给智能体安装
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.inkwell-finance%2Fdagon-mcp/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。其他 MCP 客户端
把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"dagon-inference": {
"type": "http",
"url": "https://inference.dagon.so/mcp"
}
}
}README
Dagon Inference MCP server
A stdio Model Context Protocol server for Dagon Inference: list models, check a balance, create keys, buy credits with USDC on Solana, and chat.
[npm] MIT licensed.
Dagon Inference serves uncensored (abliterated) open-weight LLMs through an OpenAI-compatible API, paid with USDC on Solana. This server lets an MCP client (Claude Desktop, Claude Code, Cursor, ...) use it directly. Needs Node 22.18 or newer; no install step:
Get an account key with the dagon_create_key tool or at https://inference.dagon.so.
No MCP client? An agent can pay per request with x402 instead: send
the request with no key, sign the USDC transfer the 402 asks for, retry, and keep the key returned in
x-dagon-key. No key, no SOL, no install beyond an x402 client such as @x402/fetch with @x402/svm. This server
does not pay with x402; it uses keys and the wallet purchase below.
Tools
Balance and chat use DAGON_API_KEY by default and accept an api_key argument. Purchases and confirmations never
accept an account override: they always use the server's configured DAGON_API_KEY, so a tool caller cannot redirect
a configured wallet's payment to another account.
Buying credits
dagon_buy_credits calls POST /v1/credits/purchase, then POST /v1/credits/purchase/confirm
(guide).
Before any gateway call, the amount must be at least DAGON_MIN_PURCHASE_USD (default $1), within
DAGON_MAX_PURCHASE_USD (per call, default $50), together with purchases this server process has already prepared
within DAGON_MAX_PURCHASE_USD_PER_SESSION (default $200), and together with everything prepared today (UTC) by any
server process sharing the spend ledger within DAGON_MAX_PURCHASE_USD_PER_DAY (default $200). Requests outside these
limits fail with a tool error and create nothing. Purchases the gateway did not create do not count. The session total
resets when the MCP server restarts; the daily total does not, because it is kept in DAGON_SPEND_LEDGER (default
%APPDATA%\dagon-mcp\spend-ledger.json on Windows, $XDG_CONFIG_HOME/dagon-mcp/spend-ledger.json or
~/.config/dagon-mcp/spend-ledger.json elsewhere; written with mode 0600 where supported). An unreadable or corrupt
ledger refuses purchases. DAGON_TREASURY_WALLET is required for every purchase, with or without a wallet.
When the gateway does not sponsor the network fee, the payer's worst-case SOL cost (5,000 lamports per signature, the
compute-budget priority fee, and 0.00203928 SOL rent whenever the transaction creates the treasury's USDC account) is
counted against DAGON_MAX_SOL_FEES per UTC day (default 0.05 SOL) in the same ledger; a purchase that would exceed it
is refused unsigned. An invalid limit stops the server at startup.
DAGON_WALLET_SECRET_KEYset:DAGON_API_KEYandDAGON_TREASURY_WALLETare also required. The server first proves that the returned transaction (legacy or v0 message) is exactly the payment the payment service builds: one USDCTransferCheckedof the requested amount from the configured wallet's associated token account to the configured treasury's associated token account, one SPL Memo whose data is thepurchase_id, and at most one idempotent creation of the treasury's USDC account whose rent is paid by the fee payer. It rejects mismatched response metadata, amounts, mint, token program, destination, memo, blockhash, fee-payer or signer roles, lookup tables, duplicate keys, unrelated instructions, accounts or writable authorities; a sponsor fee payer may appear in no instruction except as that rent payer. Only bounded Solana compute-budget instructions may also accompany the transfer. After validation it signs as the wallet. A fee-sponsored transaction carries no fee payer signature: the server does not submit it but sends it to the gateway's confirm assigned_transaction, and the payment service adds its fee payer signature and submits it. Otherwise it submits throughDAGON_SOLANA_RPC_URLand confirms with the signature. Either way it confirms the purchase for at most 45 seconds; past that it reports the purchase as pending. Once the payment may be on-chain, every result and error names thepurchase_idand the transaction signature (or, when fee sponsored, the signed transaction): do not buy again, pass them todagon_confirm_purchase. The wallet needs the USDC, and SOL for the fee only when the purchase is not fee sponsored. Give the client a tool timeout of at least 90 seconds; cancelling the tool call stops the wait.- No wallet: pass
payer_wallet. The server runs the same byte-level validation withpayer_walletas payer and transfer authority, and only then returns the unsigned base64 transaction, naming the treasury it pays and the SOL it can cost. A transaction that fails validation is never returned. Sign it with that wallet before it expires, without rebuilding it. Whenfee_sponsoredis true, do not submit it: calldagon_confirm_purchasewithpurchase_idandsigned_transaction(the base64 wallet-signed transaction). Otherwise submit it, then calldagon_confirm_purchasewithpurchase_idand itssignature.
The secret key never leaves the server process and is never echoed, including in errors. At startup the server prints the derived payer address to stderr; check it is the wallet you meant. The trusted treasury address is configured independently rather than accepted from the gateway response. Use a dedicated hot wallet holding only what you intend to spend.
Every gateway and Solana RPC request is aborted after 30 seconds or when the client cancels the tool call, and gateway responses larger than 4 MiB are refused.
Configuration
Install
Claude Code
Claude Desktop
Add to claude_desktop_config.json (Settings → Developer → Edit Config); write the values themselves:
On Windows, if npx is not found, use "command": "cmd", "args": ["/c", "npx", "-y", "dagon-mcp"].
Cursor
~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
Project .mcp.json, omp
Claude Code and omp expand ${VAR} from your environment, so secrets stay out of the file:
timeout is omp's per-tool timeout in milliseconds; drop it for clients that do not use it.
Security
DAGON_WALLET_SECRET_KEYis optional. Without it the server never signs anything: it returns validated unsigned transactions for you to sign with your own wallet. With it, use a dedicated hot wallet holding only what you intend to spend; the key never leaves the process and is never echoed.DAGON_TREASURY_WALLETis the trust anchor for purchases: every transaction is checked byte-for-byte to pay exactly that treasury, so a compromised or spoofed gateway cannot redirect funds. The published Dagon treasury is9rMdbu4KdLWH2nPXbzhm9HTKaibGZ2ckakQbW1wPh6KK; take it from this README or https://inference.dagon.so, not from a tool result.- Per-call, per-session and per-day USD caps and a daily SOL fee cap bound what any tool caller can spend.
- Purchases always credit the configured
DAGON_API_KEY; a tool caller cannot redirect them to another account.
Development
License
MIT © Inkwell Finance, Inc. d/b/a Dagon
来源:README.md,提交 b6950f7
工具
0版本历史
1- v0.1.0最新Nov 11, 2026
评分
已满足适用检查项的 85%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通必需25 分
- 已声明认证方式必需10 分
- 已列出工具必需15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分