dgb-digidollar-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@dgb-digidollar-mcppay 0.1 test DGB to the invoice address"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
dgb-digidollar-mcp
⚠️ TESTNET ONLY — PROOF OF CONCEPT. This is experimental software for the DigiByte testnet. It moves no real money and is not audited. Do not point it at mainnet or a wallet holding real funds. The testnet-only guard is on by default.
An MCP server that lets an AI agent (Claude, etc.) pay for a service in DigiDollar — DigiByte's collateral-backed, USD-denominated stablecoin — following the x402 pay-and-retry pattern:
Agent requests a service → service replies
402 Payment Requiredwith a DigiDollar address + price.Agent calls
pay_invoice→ this server checks the operator's spend policy, then pays.Agent calls
payment_status→ confirms the tx landed, then retries the request.
The agent never holds keys. The wallet and the spend caps live here, on the operator's machine. Allowance, not custody.
Why DigiDollar, and why this settles the "did I get paid in DD?" question
Agent payments need stable pricing — nobody wants an API call that costs 30% more because the token moved. That's why the rest of the agent economy settles in USDC. But USDC has an issuer-level blacklist, and Base has a single sequencer: two kill switches. DigiDollar has neither — it's minted against locked DGB collateral on a proof-of-work L1, with no freeze function in the protocol.
DGB secures it. DigiDollar spends it.
The obvious worry for a merchant is: "how do I know I was paid in DigiDollar and not just bare DGB sent to the same address?" It turns out the protocol makes that impossible by construction:
DigiDollar has its own address type (
DD/TD/RDprefix), distinct fromdgb1…/dgbt1….It has its own UTXO set (
listdigidollarutxos,getdigidollarbalance).A plain DGB address fails
validateddaddressoutright — this server refuses to send to one.
So DD and DGB cannot be confused. A merchant checking getdigidollarbalance /
listdigidollarutxos is, by definition, seeing DigiDollar.
Amounts, one sharp edge worth knowing: senddigidollar reads an integer as cents
but a decimal as dollars (10000 = $100, 10000.00 = $10,000). This server always
converts to integer cents internally so that 100x foot-gun can't fire.
Related MCP server: Machine 2 Machine Protocol
Architecture
Your machine Your node host
┌─────────────────────────┐ ┌──────────────────────────┐
│ Claude ── MCP server ───┼── SSH tunnel ──┼─> digibyted (testnet26) │
│ (this repo) │ :14026 │ RPC 127.0.0.1:14026 │
└─────────────────────────┘ └──────────────────────────┘The node's RPC is bound to localhost on the node host and never exposed to the
internet. tunnel.sh forwards a local port to it over SSH (key-only auth
recommended). If you run the node on the same machine as the MCP server, you can
skip the tunnel and point DGB_RPC_URL straight at the local node.
Try it yourself
You provide your own node and your own keys — that's the point. Nothing here is hosted; there is no shared server to trust.
1. Run a DigiByte DigiDollar testnet node. Install DigiByte Core
v9.26.4+ and start it on
testnet with RPC enabled. Minimal digibyte.conf:
testnet=1
server=1
[test]
rpcbind=127.0.0.1
rpcallowip=127.0.0.1
rpcuser=YOUR_RPC_USER
rpcpassword=YOUR_STRONG_RPC_PASSWORDLet it sync testnet26 (the DigiDollar test network). Confirm with
digibyte-cli -datadir=... getblockchaininfo → "chain": "test".
2. Create a wallet and get some testnet DGB.
digibyte-cli -datadir=... createwallet mcp-sandbox
digibyte-cli -datadir=... -rpcwallet=mcp-sandbox getnewaddressPaste that address into the DigiByte testnet faucet and it'll send you free tDGB. (Testnet coins are worthless by design — they exist so you can build and break things without risking anything.)
3. Mint some DigiDollar. DD doesn't exist until someone locks DGB collateral to create it. Check what you'd need, then mint:
# what collateral does $100 of DD cost at lock tier 0 (1 hour)?
digibyte-cli -datadir=... -rpcwallet=mcp-sandbox estimatecollateral 10000 0
# mint $100 (amount is in CENTS; tier 0 = 1h lock, tiers run 0-9 up to 10 years)
digibyte-cli -datadir=... -rpcwallet=mcp-sandbox mintdigidollar 10000 0Heads-up: the short tiers are heavily over-collateralised (tier 0 is ~1000%), so $100 of DD locks roughly 390,000 tDGB at current prices. Longer locks need less. The faucet won't give you that much in one go — either claim over a few days, ask in the DigiByte community, or use a longer lock tier.
4. Configure and self-test.
npm install
cp .env.example .env # fill in your RPC user/password (+ SSH host if remote)
./tunnel.sh & # only if the node is on another host; leave running
npm run smoke # connectivity + policy self-test — moves no funds5. Connect it to Claude. Add the server to your MCP client config (see
claude-config-snippet.json, with the paths adjusted to where you cloned this).
Then ask the agent to check the balance and pay a small testnet invoice. Watch
the policy layer block anything over your caps.
Tools
Tool | What it does |
| DigiDollar balance (USD) + DGB balance + node sync + current policy state. |
| Send |
| Secondary path: pay in plain DGB instead. Separate caps. |
| Confirmation count for a txid (the x402 retry gate). |
Safety policy (.env)
DGB_REQUIRE_TESTNET=true— server refuses to run unless the node reportschain=test.DD_MAX_PAYMENT_USD/DD_MAX_DAILY_USD— DigiDollar caps, in US dollars.DGB_MAX_PAYMENT/DGB_MAX_DAILY— separate caps for the raw-DGB path.
DigiDollar and DGB get separate ledgers and separate caps — a dollar and a DGB are not interchangeable units, so they are never netted against each other.
Roadmap
Milestone 1 — pay in plain testnet DGB (
sendtoaddress).Milestone 2 — pay in DigiDollar (
senddigidollar), USD-denominated, with DD-address validation. Proven live on testnet26.Milestone 3 — a 402 merchant library: emit invoices, watch for DD payment, ship on confirm.
Milestone 4 — publish to the MCP registry.
Help wanted
Milestone 3 is where collaboration is most welcome: the merchant side. A
drop-in library so any service can emit a 402 Payment Required with a DigiDollar
invoice, watch for the payment, and deliver on confirmation. Issues and PRs welcome.
Status
Proven live on testnet26 — an AI agent paid $2.50 and $1.25 in DigiDollar to a merchant wallet (confirmed on-chain), while the policy layer correctly blocked a payment over the cap and refused to send DigiDollar to a bare DGB address.
This is a rough proof of concept, not production software. It should never touch mainnet or real funds.
More
Install:
npm i -g dgb-digidollar-mcp(ornpx dgb-digidollar-mcp)The merchant side: dgb-x402
Query the chain: dgb-chain-mcp
Background: the write-up · DigiByte-Core discussion
Built for the DigiByte community. Testnet only. Not financial software.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityCmaintenanceEnables AI agents to access paid content by integrating cryptocurrency payments through the x402 protocol, allowing LLMs to verify payments and retrieve paid resources automatically.Last updated1
- Alicense-qualityFmaintenanceEnables AI agents to autonomously request services from other specialized agents and compensate them via x402 micropayments. Demonstrates a Machine-to-Machine economy using A2A protocol for agent communication, MCP for context management, and blockchain-based payments on Base network.Last updated1891MIT
- Alicense-qualityAmaintenanceA budget-bound x402 payment wallet for AI agents: it autonomously pays HTTP 402 payment-gated URLs across every major chain (EVM, Solana, and many non-EVM families). Self-custodial and backendless, your key, your RPC, with spend caps enforced before any on-chain send.Last updated7MIT
- Alicense-qualityFmaintenanceEnables AI agents to make micropayments using USDC on Solana via the x402 protocol, supporting payment requests, on-chain verification, and revenue tracking.Last updatedMIT
Related MCP Connectors
Pay-per-use weather, environment, finance, and on-chain intelligence tools for AI agents via x402.
Agent x402 Paywall MCP — Coinbase HTTP 402 protocol + on-chain settlement. Agents pay per-call
Counterparty risk scoring for agentic commerce via x402 micropayments.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dgb-tools/dgb-digidollar-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server