spark-mcp

v0.2.5
@buildonspark/spark-mcp Checked 1 day ago Published 15 days ago

MCP 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.

ParameterTypeDescription
networkstringBitcoin 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.
outputstringOutput 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.

ParameterTypeDescription
mnemonicstringBIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var).
networkstringBitcoin 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.
outputstringOutput 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

ParameterTypeDescription
mnemonicstringBIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var).
networkstringBitcoin 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.
outputstringOutput 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.

ParameterTypeDescription
mnemonicstringBIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var).
networkstringBitcoin 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.
outputstringOutput 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.

ParameterTypeDescription
mnemonicstringBIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var).
networkstringBitcoin 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.
outputstringOutput 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.

ParameterTypeDescription
txid *stringThe Bitcoin transaction ID of the deposit
mnemonicstringBIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var).
networkstringBitcoin 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.
outputstringOutput 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)

ParameterTypeDescription
amountSats *integerAmount to send in satoshis
receiverSparkAddress *stringThe recipient's Spark address
mnemonicstringBIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var).
networkstringBitcoin 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.
outputstringOutput 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

ParameterTypeDescription
receivers *arrayReceivers with their Spark addresses and amounts
mnemonicstringBIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var).
networkstringBitcoin 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.
outputstringOutput 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

ParameterTypeDescription
id *stringThe transfer ID
mnemonicstringBIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var).
networkstringBitcoin 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.
outputstringOutput 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)

ParameterTypeDescription
mnemonicstringBIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var).
networkstringBitcoin 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.
outputstringOutput 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

ParameterTypeDescription
amountSats *integerAmount to receive in satoshis
memostringOptional payment description
mnemonicstringBIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var).
networkstringBitcoin 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.
outputstringOutput detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK)

spark_pay_invoice

Pay a Lightning BOLT11 invoice

ParameterTypeDescription
invoice *stringThe BOLT11 invoice string
maxFeeSats *integerMaximum fee to pay in satoshis
mnemonicstringBIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var).
networkstringBitcoin 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.
outputstringOutput 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

ParameterTypeDescription
invoice *stringThe BOLT11 invoice string
mnemonicstringBIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var).
networkstringBitcoin 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.
outputstringOutput 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.

ParameterTypeDescription
amountSats *integerAmount in satoshis, interpreted per amountBasis. 0 quotes an amountless invoice priced in basis points, and requires GROSS.
amountBasisstringWhether 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.
mnemonicstringBIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var).
networkstringBitcoin 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.
outputstringOutput detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK)
partnerJwtstringPartner JWT to attribute the quote to. Without one the quote comes back feeless and attributionStatus says why.
receiverIdentityPubkeystringHex 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.

ParameterTypeDescription
amountSats *integerThe amount the quote was requested for
issuerSignature *stringissuerSignature from the quote, verbatim hex
serializedManifest *stringserializedManifest from the quote, verbatim hex
amountBasisstringThe basis the quote was requested with
memostringOptional payment description
mnemonicstringBIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var).
networkstringBitcoin 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.
outputstringOutput detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK)
receiverIdentityPubkeystringThe 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…

ParameterTypeDescription
amountSats *integerAmount in satoshis, interpreted per amountBasis. 0 quotes an amountless invoice priced in basis points, and requires GROSS.
amountBasisstringWhether amountSats is the receiver's net (default) or the invoice total
memostringOptional payment description
mnemonicstringBIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var).
networkstringBitcoin 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.
outputstringOutput detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK)
partnerJwtstringPartner JWT to attribute the quote to. Without one the invoice is feeless.
receiverIdentityPubkeystringHex 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

ParameterTypeDescription
amountSats *integerAmount to withdraw in satoshis
withdrawalAddress *stringThe Bitcoin address to withdraw to
mnemonicstringBIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var).
networkstringBitcoin 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.
outputstringOutput 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

ParameterTypeDescription
exitSpeed *stringFAST costs more but settles sooner
onchainAddress *stringThe Bitcoin address to withdraw to
amountSatsintegerAmount to withdraw (omit to withdraw all)
feeQuoteIdstringFee quote ID from spark_get_withdrawal_fee_quote
mnemonicstringBIP39 mnemonic for the wallet to use. Omit to use the server default (SPARK_MNEMONIC env var).
networkstringBitcoin 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.
outputstringOutput detail level: normal (default, concise), verbose (all fields, human-readable), raw (full JSON from SDK)