Skip to main content
Connect your agent to the hosted Molpha MCP server, look around without a wallet, then run a round paid and signed by your own wallet. It takes about five minutes.
Prefer a server that holds its own signer and runs unattended? Use the local stdio server, @molpha/mcp@0.2.0, instead. MCP overview compares the two.
1

Add the server

The hosted server needs no install and no keys.
The local server needs Node.js 24 or later.
2

Explore without a wallet

Read tools work straight away. Try:
Use Molpha to show the current capabilities: registry version, node count, chains and verifier addresses. Then build a source that reads the JSON number at $.round from https://api.drand.sh/public/1000 with 0 decimals, and derive its sourceId. Make no writes.
The agent writes a source document and derive_source_id validates it. For this source the ID is 0xb40f93879f3c4813045b3861e4fd6d57ea064e9ea6c6a4dd3f16906b214ffcac; a different ID means the document differs, for example in its decimals. simulate_source and analyze_source check a source’s logic without running a round.
3

Fund a testnet wallet

Paid rounds are signed by your wallet, never by the server. Use a dedicated devnet wallet (solana-keygen new --outfile devnet-keypair.json creates one) with a little Devnet USDC from Circle’s faucet (choose USDC on Solana Devnet). A round at quorum 3 costs 0.10 USDC on the current deployment, and get_x402_status in the next step shows the exact price and your balance. The wallet needs no SOL for an x402 round: the gateway’s facilitator pays the network fee.
4

Run a pay-per-request round

Ask for a quote first, then the round:
Call get_x402_status for 3 signatures with payer <your wallet address> and tell me the price. Then run prepare_x402_round for the same source with 3 signatures and the evm chain, and give me the transaction to sign.
Sign the returned USDC transfer with your wallet and do not broadcast it. Sign, don’t send has a short Node script for this. A prepared payment is valid for about a minute; if it lapses, prepare again. Pass the signed transaction to execute_x402_round: the gateway settles the payment and returns the signed attestation, verifier arguments and a payment receipt.Each paid call is a new round, and there is no idempotency key. If a call fails with an unclear error, check get_x402_status before paying again.
5

Use the attestation, not the summary

The trust anchor is the signed attestation the tool returns, not the agent’s prose. Verify it in your contract or service before acting on the value: the EVM verifier 0xae75409cb23EB85023d23A7AE37B322e53B9d485 is deployed on Sepolia, Arbitrum Sepolia, Base Sepolia, Avalanche Fuji and BNB Smart Chain testnet. See Verify on EVM. To publish it to a Solana feed, use prepare_submit_attestation and send_signed_transaction.

Already have a subscription?

Sign in with your wallet instead of paying per round: begin_session returns a text message, your wallet signs it, complete_session returns a session token, and execute_subscription_round runs rounds against your plan. The wallet must be the subscription owner or one of its delegates. Run describe_access first to check. See Sign in with your wallet.

Next steps

Hosted MCP

Every hosted flow, step by step.

Tool reference

Inputs, outputs and errors for every tool.

Access and payments

Subscriptions, delegates and x402 compared.