xchain-mcp

v0.28.2
xchain-mcp Checked 4 days ago Published 10 days ago

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

ParameterTypeDescription
coin *stringChain + 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).

ParameterTypeDescription
coin *stringChain + 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).

ParameterTypeDescription
coin *stringChain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest
tick *stringToken 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.

ParameterTypeDescription
coin *stringChain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest
query *string
limitintegerRows per page, 1-100 (default 100). Compare with total to tell whether more pages remain.
pageintegerPage number
typestring

get_holders

Holders of a token with balances.

ParameterTypeDescription
coin *stringChain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest
tick *string
limitintegerRows per page, 1-500 (default 500). Compare with total to tell whether more pages remain.
pageintegerPage number

get_project

Project registry roster: the owner-attested list of a project's official tokens.

ParameterTypeDescription
coin *stringChain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest
tick *stringThe 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.

ParameterTypeDescription
address *string
coin *stringChain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest
limitintegerRows per page, 1-500 (default 500). Compare with total to tell whether more pages remain.
pageintegerPage number

get_address

Address summary.

ParameterTypeDescription
address *string
coin *stringChain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest

get_history

Combined action history for an address, token, or block.

ParameterTypeDescription
coin *stringChain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest
query *string
type *string
limitintegerRows per page, 1-100 (default 100). Compare with total to tell whether more pages remain.
pageintegerPage number

get_action

One action with full decoded data, by action index.

ParameterTypeDescription
action_index *integer
coin *stringChain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest

get_block

Block summary by height.

ParameterTypeDescription
block *integer
coin *stringChain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest

get_dispensers

DISPENSER listings (on-chain vending machines: send coin, receive tokens atomically). Useful for finding things an agent can buy.

ParameterTypeDescription
coin *stringChain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest
query *string
type *string
limitintegerRows per page, 1-100 (default 100). Compare with total to tell whether more pages remain.
pageintegerPage 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.

ParameterTypeDescription
coin *stringChain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest
tickstring

get_market

Market summary for a pair.

ParameterTypeDescription
coin *stringChain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest
tick1 *string
tick2 *string

get_orderbook

Aggregated order book for a pair.

ParameterTypeDescription
coin *stringChain + 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.

ParameterTypeDescription
coin *stringChain + 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.

ParameterTypeDescription
coin *stringChain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest
contract_action_index *integer
keystring

get_executions

Executions of a contract.

ParameterTypeDescription
coin *stringChain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest
contract_action_index *integer
limitintegerRows per page, 1-100 (default 100). Compare with total to tell whether more pages remain.
pageintegerPage 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.

ParameterTypeDescription
coin *stringChain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest
limitintegerRows per page, 1-100 (default 100). Compare with total to tell whether more pages remain.
pageintegerPage number
querystring
typestring

get_validators

Active validators and their staked capabilities.

ParameterTypeDescription
coin *stringChain + 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).

ParameterTypeDescription
block_index *integer
coin *stringChain + 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).

ParameterTypeDescription
action *stringACTION name, e.g. SEND, MINT
coin *stringChain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest
params *objectAction parameters
pubkeystringSender 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.

ParameterTypeDescription
coin *stringChain + network: BTC/LTC/DOGE mainnet, T prefix = testnet, R prefix = local regtest
reservation_id *stringreservation.id from compose_action