xchain-mcp
v0.28.2Model Context Protocol (MCP) stdio server for the XChain Platform: read chain/token/balance data on BTC, LTC and DOGE (mainnet/testnet/regtest), and optionally…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_status
Explorer status and chain configuration for a coin.
| Parameter | Type | Description |
|---|---|---|
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
get_fee_schedule
Protocol fee schedule + current oracle prices (what an action will cost).
| Parameter | Type | Description |
|---|---|---|
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
get_token
Token detail: supply, decimals, issuer, NFT/registry surfaces. `tick` is the token symbol (there is no "asset" field on XChain).
| Parameter | Type | Description |
|---|---|---|
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
tick * | string | Token tick (symbol) |
search_tokens
Search tokens. type: token = by tick prefix, subtoken = children of a parent tick, address = tokens issued by an address, block = tokens issued in a block.
| Parameter | Type | Description |
|---|---|---|
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
query * | string | |
limit | integer | Rows per page, 1-100 (default 100). Compare with total to tell whether more pages remain. |
page | integer | Page number |
type | string |
get_holders
Holders of a token with balances.
| Parameter | Type | Description |
|---|---|---|
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
tick * | string | |
limit | integer | Rows per page, 1-500 (default 500). Compare with total to tell whether more pages remain. |
page | integer | Page number |
get_project
Project registry roster: the owner-attested list of a project's official tokens.
| Parameter | Type | Description |
|---|---|---|
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
tick * | string | The project token tick |
get_balances
Token balances for an address, paged up to 500 rows. Compare total with the page range to tell whether more pages remain. Amounts are decimal strings.
| Parameter | Type | Description |
|---|---|---|
address * | string | |
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
limit | integer | Rows per page, 1-500 (default 500). Compare with total to tell whether more pages remain. |
page | integer | Page number |
get_address
Address summary.
| Parameter | Type | Description |
|---|---|---|
address * | string | |
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
get_history
Combined action history for an address, token, or block.
| Parameter | Type | Description |
|---|---|---|
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
query * | string | |
type * | string | |
limit | integer | Rows per page, 1-100 (default 100). Compare with total to tell whether more pages remain. |
page | integer | Page number |
get_action
One action with full decoded data, by action index.
| Parameter | Type | Description |
|---|---|---|
action_index * | integer | |
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
get_block
Block summary by height.
| Parameter | Type | Description |
|---|---|---|
block * | integer | |
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
search
General search across addresses, tokens, broadcasts, contracts, and transactions.
| Parameter | Type | Description |
|---|---|---|
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
query * | string | |
type * | string |
get_dispensers
DISPENSER listings (on-chain vending machines: send coin, receive tokens atomically). Useful for finding things an agent can buy.
| Parameter | Type | Description |
|---|---|---|
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
query * | string | |
type * | string | |
limit | integer | Rows per page, 1-100 (default 100). Compare with total to tell whether more pages remain. |
page | integer | Page number |
get_markets
Trading pairs on the DEX. When tick is supplied, every returned pair puts the searched tick in tick2 and its values in tick2_* fields; the counter tick is in tick1. Read the searched tick's price from tick2_price.
| Parameter | Type | Description |
|---|---|---|
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
tick | string |
get_market
Market summary for a pair.
| Parameter | Type | Description |
|---|---|---|
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
tick1 * | string | |
tick2 * | string |
get_orderbook
Aggregated order book for a pair.
| Parameter | Type | Description |
|---|---|---|
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
tick1 * | string | |
tick2 * | string |
get_contract
Deployed smart contract detail, by the DEPLOY action index.
| Parameter | Type | Description |
|---|---|---|
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
contract_action_index * | integer |
get_contract_state
Contract state: all keys, or one key.
| Parameter | Type | Description |
|---|---|---|
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
contract_action_index * | integer | |
key | string |
get_executions
Executions of a contract.
| Parameter | Type | Description |
|---|---|---|
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
contract_action_index * | integer | |
limit | integer | Rows per page, 1-100 (default 100). Compare with total to tell whether more pages remain. |
page | integer | Page number |
get_attestations
ATTEST v0 requests + v1 responses, including LLM attestations contracts requested via xchain.attestation.request. Omit BOTH query and type for the unfiltered list; whenever query is given, type names the index it filters on and is required.
| Parameter | Type | Description |
|---|---|---|
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
limit | integer | Rows per page, 1-100 (default 100). Compare with total to tell whether more pages remain. |
page | integer | Page number |
query | string | |
type | string |
get_validators
Active validators and their staked capabilities.
| Parameter | Type | Description |
|---|---|---|
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
verify_checkpoint
Fetch a quorum-signed state checkpoint and verify its Ed25519 signatures CLIENT-SIDE against the validator set the explorer serves in the same response (ignores the explorer's verified flag, but does not independently establish who the validators are).
| Parameter | Type | Description |
|---|---|---|
block_index * | integer | |
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
compose_action
Compose an unsigned transaction for an XChain action: returns the ACTION string and an unsigned PSBT. Nothing is signed or broadcast; the caller signs externally. The encoder RESERVES the sender's selected UTXOs for about 5 minutes; if the PSBT will not be signed, pass the returned reservation.id to release_reservation to free them. Before mainnet launch, protocol actions on mainnet are refused with MAINNET_NOT_LAUNCHED, as submit_action refuses them. Requires pubkey (no wallet is configured).
| Parameter | Type | Description |
|---|---|---|
action * | string | ACTION name, e.g. SEND, MINT |
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
params * | object | Action parameters |
pubkey | string | Sender address/pubkey for UTXO selection (required) |
release_reservation
Free the UTXOs an earlier compose_action reserved, using the reservation.id it returned. Safe to repeat: an unknown, expired or already released id answers found:false. Only the ticket holder can release; never call it for a PSBT that was or will be signed.
| Parameter | Type | Description |
|---|---|---|
coin * | string | Chain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest |
reservation_id * | string | reservation.id from compose_action |