spark-mcp
v0.2.5MCP server for Spark Bitcoin/Lightning wallet operations
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
spark_create_wallet
Generate a brand new Spark wallet. Returns the mnemonic (save it!) and Spark address. Pass the mnemonic to any other tool to operate on this wallet.
| Parameter | Type | Description |
|---|---|---|
network | string | Bitcoin network for this call. LOCAL = self-hosted regtest (minikube/run-everything.sh), REGTEST = Lightspark-hosted regtest, MAINNET = production Bitcoin. Omit to use the server default. |
output | string | Output detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK) |
spark_get_balance
Get the current wallet balance in satoshis.
| Parameter | Type | Description |
|---|---|---|
mnemonic | string | BIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var). |
network | string | Bitcoin network for this call. LOCAL = self-hosted regtest (minikube/run-everything.sh), REGTEST = Lightspark-hosted regtest, MAINNET = production Bitcoin. Omit to use the server default. |
output | string | Output detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK) |
spark_get_spark_address
Get the wallet's Spark address for receiving transfers
| Parameter | Type | Description |
|---|---|---|
mnemonic | string | BIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var). |
network | string | Bitcoin network for this call. LOCAL = self-hosted regtest (minikube/run-everything.sh), REGTEST = Lightspark-hosted regtest, MAINNET = production Bitcoin. Omit to use the server default. |
output | string | Output detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK) |
spark_disconnect_wallet
Disconnect a cached wallet, stopping its background stream and closing connections. After disconnecting, the wallet will NOT auto-claim incoming transfers until the next tool call re-initializes it. Useful in testing to ensure a wallet has not claimed transfers.
| Parameter | Type | Description |
|---|---|---|
mnemonic | string | BIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var). |
network | string | Bitcoin network for this call. LOCAL = self-hosted regtest (minikube/run-everything.sh), REGTEST = Lightspark-hosted regtest, MAINNET = production Bitcoin. Omit to use the server default. |
output | string | Output detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK) |
spark_get_deposit_address
Get a single-use Bitcoin address to deposit funds into the Spark wallet. IMPORTANT: Each deposit address can only be used once. After funding and claiming a deposit, you must call this again to get a fresh address for the next deposit.
| Parameter | Type | Description |
|---|---|---|
mnemonic | string | BIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var). |
network | string | Bitcoin network for this call. LOCAL = self-hosted regtest (minikube/run-everything.sh), REGTEST = Lightspark-hosted regtest, MAINNET = production Bitcoin. Omit to use the server default. |
output | string | Output detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK) |
spark_claim_deposit
Claim a confirmed on-chain Bitcoin deposit by transaction ID. Waits for the balance to settle before returning, so the funds are immediately spendable once this tool completes.
| Parameter | Type | Description |
|---|---|---|
txid * | string | The Bitcoin transaction ID of the deposit |
mnemonic | string | BIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var). |
network | string | Bitcoin network for this call. LOCAL = self-hosted regtest (minikube/run-everything.sh), REGTEST = Lightspark-hosted regtest, MAINNET = production Bitcoin. Omit to use the server default. |
output | string | Output detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK) |
spark_send_transfer
Send satoshis to a Spark address (off-chain, instant)
| Parameter | Type | Description |
|---|---|---|
amountSats * | integer | Amount to send in satoshis |
receiverSparkAddress * | string | The recipient's Spark address |
mnemonic | string | BIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var). |
network | string | Bitcoin network for this call. LOCAL = self-hosted regtest (minikube/run-everything.sh), REGTEST = Lightspark-hosted regtest, MAINNET = production Bitcoin. Omit to use the server default. |
output | string | Output detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK) |
spark_send_multi_transfer
Send sats to multiple Spark addresses in a single atomic transfer
| Parameter | Type | Description |
|---|---|---|
receivers * | array | Receivers with their Spark addresses and amounts |
mnemonic | string | BIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var). |
network | string | Bitcoin network for this call. LOCAL = self-hosted regtest (minikube/run-everything.sh), REGTEST = Lightspark-hosted regtest, MAINNET = production Bitcoin. Omit to use the server default. |
output | string | Output detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK) |
spark_get_transfer
Get the status and details of a specific transfer by ID
| Parameter | Type | Description |
|---|---|---|
id * | string | The transfer ID |
mnemonic | string | BIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var). |
network | string | Bitcoin network for this call. LOCAL = self-hosted regtest (minikube/run-everything.sh), REGTEST = Lightspark-hosted regtest, MAINNET = production Bitcoin. Omit to use the server default. |
output | string | Output detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK) |
spark_list_transfers
List the most recent transfers (up to 10)
| Parameter | Type | Description |
|---|---|---|
mnemonic | string | BIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var). |
network | string | Bitcoin network for this call. LOCAL = self-hosted regtest (minikube/run-everything.sh), REGTEST = Lightspark-hosted regtest, MAINNET = production Bitcoin. Omit to use the server default. |
output | string | Output detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK) |
spark_create_invoice
Create a Lightning BOLT11 invoice to receive payment
| Parameter | Type | Description |
|---|---|---|
amountSats * | integer | Amount to receive in satoshis |
memo | string | Optional payment description |
mnemonic | string | BIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var). |
network | string | Bitcoin network for this call. LOCAL = self-hosted regtest (minikube/run-everything.sh), REGTEST = Lightspark-hosted regtest, MAINNET = production Bitcoin. Omit to use the server default. |
output | string | Output detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK) |
spark_pay_invoice
Pay a Lightning BOLT11 invoice
| Parameter | Type | Description |
|---|---|---|
invoice * | string | The BOLT11 invoice string |
maxFeeSats * | integer | Maximum fee to pay in satoshis |
mnemonic | string | BIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var). |
network | string | Bitcoin network for this call. LOCAL = self-hosted regtest (minikube/run-everything.sh), REGTEST = Lightspark-hosted regtest, MAINNET = production Bitcoin. Omit to use the server default. |
output | string | Output detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK) |
spark_get_lightning_fee_estimate
Estimate the fee for paying a Lightning invoice before committing
| Parameter | Type | Description |
|---|---|---|
invoice * | string | The BOLT11 invoice string |
mnemonic | string | BIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var). |
network | string | Bitcoin network for this call. LOCAL = self-hosted regtest (minikube/run-everything.sh), REGTEST = Lightspark-hosted regtest, MAINNET = production Bitcoin. Omit to use the server default. |
output | string | Output detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK) |
spark_lightning_receive_quote
Request a Lightning receive fee quote from the SSP. Returns the signed manifest (echo it back verbatim), the issuer signature, the fee breakdown and the attribution status. Does NOT create an invoice — pass the result to spark_create_invoice_from_quote, or use spark_create_quoted_invoice to do both at once.
| Parameter | Type | Description |
|---|---|---|
amountSats * | integer | Amount in satoshis, interpreted per amountBasis. 0 quotes an amountless invoice priced in basis points, and requires GROSS. |
amountBasis | string | Whether amountSats is the receiver's net (default) or the invoice total. The quoted-receive flow needs an SSP schema carrying the quote fields; on a deployed network set SSP_SCHEMA_ENDPOINT. |
mnemonic | string | BIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var). |
network | string | Bitcoin network for this call. LOCAL = self-hosted regtest (minikube/run-everything.sh), REGTEST = Lightspark-hosted regtest, MAINNET = production Bitcoin. Omit to use the server default. |
output | string | Output detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK) |
partnerJwt | string | Partner JWT to attribute the quote to. Without one the quote comes back feeless and attributionStatus says why. |
receiverIdentityPubkey | string | Hex identity public key of the wallet to pay. Defaults to this wallet. Naming another quotes a delegated receive: this wallet still attests, so the payee need not be online. |
spark_create_invoice_from_quote
Create the Lightning invoice for a quote from spark_lightning_receive_quote. Pass serializedManifest and issuerSignature back exactly as returned. Reusing the same quote is refused, and quotes expire after a few minutes. The quoted-receive flow needs an SSP schema carrying the quote fields; on a deployed network set SSP_SCHEMA_ENDPOINT.
| Parameter | Type | Description |
|---|---|---|
amountSats * | integer | The amount the quote was requested for |
issuerSignature * | string | issuerSignature from the quote, verbatim hex |
serializedManifest * | string | serializedManifest from the quote, verbatim hex |
amountBasis | string | The basis the quote was requested with |
memo | string | Optional payment description |
mnemonic | string | BIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var). |
network | string | Bitcoin network for this call. LOCAL = self-hosted regtest (minikube/run-everything.sh), REGTEST = Lightspark-hosted regtest, MAINNET = production Bitcoin. Omit to use the server default. |
output | string | Output detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK) |
receiverIdentityPubkey | string | The same receiver the quote was requested with. The manifest already names the payee, so a mismatch is refused. |
spark_create_quoted_invoice
Quote a Lightning receive, sign the manifest and issue the invoice in one step — the usual way to create a fee-quoted invoice. The quoted-receive flow needs an SSP schema carrying the quote fields; on a deployed network set SSP_SCHEMA_ENDPOINT. This creates the invoice only. PAYING it is the counterparty's job and is out of scope for this server, which stays Spark-scoped — drive your own Lightning node. If that node is the external lnd on a minikube LOCAL stack, two things will otherwise cost you a round trip: it runs with --lnddir=/data, so a plain lncli dies on a missing /root/.lnd/tls…
| Parameter | Type | Description |
|---|---|---|
amountSats * | integer | Amount in satoshis, interpreted per amountBasis. 0 quotes an amountless invoice priced in basis points, and requires GROSS. |
amountBasis | string | Whether amountSats is the receiver's net (default) or the invoice total |
memo | string | Optional payment description |
mnemonic | string | BIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var). |
network | string | Bitcoin network for this call. LOCAL = self-hosted regtest (minikube/run-everything.sh), REGTEST = Lightspark-hosted regtest, MAINNET = production Bitcoin. Omit to use the server default. |
output | string | Output detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK) |
partnerJwt | string | Partner JWT to attribute the quote to. Without one the invoice is feeless. |
receiverIdentityPubkey | string | Hex identity public key of the wallet to pay. Defaults to this wallet. Naming another quotes a delegated receive: this wallet still attests, so the payee need not be online. |
spark_get_withdrawal_fee_quote
Get a fee quote for withdrawing funds to a Bitcoin L1 address
| Parameter | Type | Description |
|---|---|---|
amountSats * | integer | Amount to withdraw in satoshis |
withdrawalAddress * | string | The Bitcoin address to withdraw to |
mnemonic | string | BIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var). |
network | string | Bitcoin network for this call. LOCAL = self-hosted regtest (minikube/run-everything.sh), REGTEST = Lightspark-hosted regtest, MAINNET = production Bitcoin. Omit to use the server default. |
output | string | Output detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK) |
spark_withdraw
Withdraw funds from Spark to a Bitcoin L1 address via cooperative exit
| Parameter | Type | Description |
|---|---|---|
exitSpeed * | string | FAST costs more but settles sooner |
onchainAddress * | string | The Bitcoin address to withdraw to |
amountSats | integer | Amount to withdraw (omit to withdraw all) |
feeQuoteId | string | Fee quote ID from spark_get_withdrawal_fee_quote |
mnemonic | string | BIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var). |
network | string | Bitcoin network for this call. LOCAL = self-hosted regtest (minikube/run-everything.sh), REGTEST = Lightspark-hosted regtest, MAINNET = production Bitcoin. Omit to use the server default. |
output | string | Output detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK) |