derive_xpub
Derive an account xpub/ypub/zpub from a BIP-39 seed phrase to enable offline watch-only address queries. Generate the extended public key once, then use it for future read-only blockchain lookups.
Instructions
Extract an account xpub/ypub/zpub from a seed phrase. Works offline.
Requires MCP_BITCOIN_ALLOW_MNEMONIC=true. Run this once, keep the xpub, and every later address query can stay watch-only.
Args: mnemonic: The BIP-39 seed phrase. standard: bip44, bip49, bip84 or bip86. passphrase: Optional BIP-39 passphrase. account: Account index. network: Override the server's network for this call.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mnemonic": "<mnemonic>"
},
"name": "derive_xpub"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | ||
| network | No | ||
| mnemonic | Yes | ||
| standard | No | bip84 | |
| passphrase | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |