minter-mcp
Allows minting STAS, DSTAS, and BSV-21 tokens on the Bitcoin SV blockchain using a BSV Desktop wallet, with tools for checking wallet status, funding a minter, and minting tokens.
Click on "Deploy 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., "@minter-mcp mint a STAS token"
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.
minter-mcp
Get BSV test tokens into your wallet in seconds, by asking.
An MCP server whose only job is to mint tokens into a running BSV Desktop wallet. Ask Claude for "a STAS token" and it funds a throwaway minter from your own wallet, mints, and registers the result — the token shows up in Assets within seconds.
Supports classic STAS, DSTAS, and BSV-21.
Built for the boring-but-real problem: you're testing a token flow and you need a token right now, and hand-rolling a mint means a contract tx, an issue tx, a funding split, an indexer wait, and — for BSV-21 — a GorillaPool activation dance.
How it works
minter_status → is the wallet up? is the minter funded?
minter_fund → your wallet pays the minter (you approve the prompt in-app)
mint_token → mint → register → visible in Assets in secondsThe minter is a separate throwaway key that does the issuing; your wallet
funds it and receives the tokens. Tokens are minted straight to a wallet-owned
receive address, then register-by-txid tells the wallet about the mint
immediately.
That last call is the whole trick. Without it you wait for a confirmation and a WhatsOnChain scan; with it the wallet knows straight away.
No MessageBox, no peer-to-peer, no overlay round-trip — it talks to the
wallet's local HTTP API on 127.0.0.1:3321 and nothing else.
Related MCP server: BCH MCP Server
Install
Requires BSV Desktop running and signed in on mainnet.
Add to your MCP config (~/.claude.json, or a project .mcp.json):
{
"mcpServers": {
"minter": {
"command": "npx",
"args": ["-y", "minter-mcp@latest"]
}
}
}Or from a clone:
git clone https://github.com/MatiasJF/minter-mcp.git
cd minter-mcp && npm install && npm run build{ "mcpServers": { "minter": {
"command": "node",
"args": ["/absolute/path/to/minter-mcp/dist/index.js"]
}}}Use
minter_status
minter_fund { satoshis: 50000, dryRun: false } → approve the prompt in the wallet
mint_token { protocol: "stas", dryRun: false }
mint_token { protocol: "dstas", dryRun: false }
mint_token { protocol: "bsv-21", dryRun: false }Tool | Spends? | What it does |
| no | Funding address, spendable balance, wallet reachable/signed-in/network. Call this first. |
| yours | Moves satoshis from your wallet to the minter. Raises the wallet's spending prompt. |
| minter's | Mints one token and registers it into the wallet. |
| minter's | Funds a BSV-21 token id's GorillaPool fee address so WOC/overlays surface it. |
~50,000 sats covers several mints. A mint costs roughly 250–500 sats.
Safety
This spends real money on mainnet. Read this bit.
Every spending tool defaults to
dryRun: trueand needs an explicitdryRun: falseto broadcast. A dry run does full preflight — balance, wallet state, funding sufficiency — and mutates nothing.Spending your wallet always goes through the wallet's own spending-authorization prompt. This server calls
/createActionunder a plain non-admin origin precisely so that prompt appears. It cannot be bypassed from here, by design.No tool ever returns key material.
minter_statusreports where the key came from (env/file/generated), never the key. Everything returned is passed through a redactor that strips secret-named fields and WIF-shaped strings, and the key module exports no WIF at all.The minter's key is generated locally on first use at
~/.stas-minter/wallet.json(mode0600). No key ships with this package — everyone gets their own.
The minter key is throwaway. Anyone with that file can spend its balance. Keep
the balance small. It is stored outside the package directory on purpose: under
npx the package lives in a temp cache that gets wiped, which would orphan the
balance on every run.
Configuration
Env | Default | Purpose |
|
| BSV Desktop apps API |
|
| Origin sent to the wallet. Must be non-admin so the spending prompt appears. |
|
| Where the minter's key lives |
| — | Use an existing minter key instead of the generated file |
| mainnet WOC | WhatsOnChain base URL |
|
| Let a mint spend the funding tx's change without waiting a confirmation |
Notes and rough edges
STAS/DSTAS need the wallet on local storage to be visible. Known bsv-desktop limitation, confirmed on mainnet: the wallet's STAS/DSTAS satellite tables are local-SQLite only, while remote ("cloud") storage keeps
outputselsewhere. Registration then can't resolve the output id, silently skips the satellite link, and still reports success — so the token is on-chain, in the right basket and spendable, but the Assets page never shows it. BSV-21 is unaffected (it renders straight from the basket). If your STAS/DSTAS mints don't appear, check your storage mode before suspecting this tool.Registration is retried (4 attempts). The wallet builds a chained BEEF by walking the mint's ancestry for merkle proofs, and moments after broadcast that can transiently produce a BEEF it then rejects. One attempt is not enough.
STAS:
stas-jssigns at 0.05 sat/b, so a STAS mint can take a while to confirm. It is visible and usable in the wallet regardless — registration doesn't wait for a confirmation.STAS needs a UTXO pair (it consumes
utxos[0]andutxos[1]by position), which is whyminter_fundsplits into 2 outputs by default.DSTAS shares the STAS receive-address namespace. BSV-21 has its own — they are not interchangeable, and a BSV-21 sent to a STAS address is silently orphaned. The server handles this for you.
BSV-21 activation (
mint_activate_bsv21) is only needed for external discovery (WOC, overlays). The wallet shows the token immediately without it.WhatsOnChain lags a broadcast by seconds to minutes.
minter_fundwaits for the funding to become spendable before returning.
Development
npm run build
npm testThe suite includes a stdout purity check. stdout is the MCP JSON-RPC channel,
but the mint engines log freely — including at import time. guard.ts routes
console.* to stderr before any engine loads. Break that and the server looks
like it hangs rather than failing, so the test guards it. Another test asserts
that listing tools never imports the engines, since importing them generates a
key.
The mint engines in engines/ are vendored from the BSV Desktop demo faucet and
deliberately not reimplemented — they encode a lot of hard-won detail (ord
envelope tags, STAS UTXO positioning, WOC indexing-lag defences).
License
MIT © Matias Jackson
Available Tools
4 toolsmint_activate_bsv21A
Activate a BSV-21 token id with GorillaPool so WOC and overlay indexers surface it. Only needed for external discovery — the wallet already shows the token without this. Polls for the fee address, then pays it 2000 sats.
Inputs: tokenId (required), dryRun.
minter_fundA
Top up the minter from the user's own BSV Desktop wallet. The wallet will show a spending-authorization prompt that the user must approve by hand. Waits for the funding to become spendable.
Inputs: satoshis (required), dryRun, splitInto.
minter_statusA
Check whether the minter can mint: its funding address and spendable balance, and whether BSV Desktop is running, signed in, and on which network. Read-only, spends nothing. Call this first.
Inputs: no named parameters.
mint_tokenA
Mint one token into the wallet and register it so it appears in Assets within seconds (no Refresh needed). Requires the minter to be funded — check minter_status first.
Inputs: protocol (required), name, amount, dryRun, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clear, distinct purpose: status checks readiness, fund supplies the minter, mint_token creates a token, and mint_activate_bsv21 handles external discovery. No overlapping responsibilities.
All tools share the 'minter_' prefix, but the suffixes mix nouns (status), verbs (fund), and verb+object patterns (mint_token, mint_activate_bsv21). The consistent prefix helps, but the style is not uniform.
Four tools perfectly cover the minter's lifecycle: check, fund, mint, and activate. Neither sparse nor bloated for the stated purpose.
The expected workflow is fully covered: verify status, fund if needed, mint a token, and activate for external visibility. There are no obvious dead ends or missing operations for the domain.
Maintenance
Related MCP Connectors
Self-hosted MCP server: 26 deterministic dev, security, and EVM tools.
Tenzro Network MCP server: wallet, identity, payments, inference, staking, bridges, verification.
Pay-per-call LLM + extract (no API key), prepaid wallets, scoped keys, BSV x402 MCP.
New MCP servers on GitHub: discovery index. $0.01/query. Be born in one call — free testnet funds.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceAn MCP server providing tools for AI agents to mint ERC-20 tokens across multiple blockchains.22MIT
- AlicenseNot gradedqualityDmaintenanceA comprehensive Bitcoin Cash (BCH) MCP server that enables wallet management, transaction utilities, and full CashToken operations including genesis, minting, and burning. It also provides advanced features such as escrow contracts, smart contract documentation, and real-time currency conversion.MIT
- AlicenseAqualityBmaintenanceMCP server with 43 tools for blockchain data — token lookups, wallet balances, live chain queries across 10+ networks, and full API documentation search.27610 npmApache 2.0
- FlicenseAqualityDmaintenanceMCP server for minting SHIT tokens on Sui blockchain, supporting self-sponsored and sponsored transaction flows.8-