Molpha MCP
v0.1.2MCP server that lets AI agents create, fetch, verify, and publish Molpha oracle data.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
molpha_get_capabilities Get Molpha capabilities
Returns the current Molpha verification surface: active registryVersion, registered node set, gateway endpoints, supported chains, signing scheme, and x402 spend caps. Call first to learn where a signed result can be verified.
| Parameter | Type | Description |
|---|---|---|
includeAbi | boolean | Include the EVM verifier ABI in the response. |
molpha_describe_feed Describe Molpha feed
Read a feed's on-chain state (last committed value, registryVersion, signaturesRequired) and the caller's subscription status. Pass feedId directly, or apiConfig + signaturesRequired to derive it first (see molpha_derive_feed). A missing feed account is normal pre-first-settle — feeds are created lazily. `feed.valueKind` is the attested encoding of the stored bytes ("value" = raw payload, "hash" = keccak digest), NOT a scale hint: Molpha attests no decimals on-chain. When apiConfig is supplied, `valueEncoding` reports the off-chain valueTransform that produced the number, explicitly flagged…
| Parameter | Type | Description |
|---|---|---|
apiConfig | object | |
feedId | string | |
signaturesRequired | integer |
molpha_derive_feed Derive Molpha feedId
Locally derive the feedId for a declarative spec (apiConfig + quorum) — no transaction, no subscription required. feedId = keccak256(owner || apiConfigHash || signaturesRequired); the feed itself is created lazily on-chain at first settle (subscription or x402 round). Call this to preview a feedId before molpha_fetch_verified, or to check what feedId a given spec resolves to for the current signer. Prefer settled/finalized data — independent nodes must converge on a byte-identical value to co-sign.
| Parameter | Type | Description |
|---|---|---|
apiConfig * | object | |
signaturesRequired * | integer | |
rejectNonDeterministic | boolean |
molpha_agent_status Get x402 agent escrow status
Read the caller's x402 agent escrow (advisory: USDC ATA balance, amount committed to unsettled rounds, unsettled round count) and the next round's quoted price for a given quorum. Escrow is derived server-side per (payer, gateway). A non-existent escrow is normal pre-first-round — it's created lazily. Call before payment: "x402" fetches to see whether the escrow is already funded, or to pre-fund it out of band.
| Parameter | Type | Description |
|---|---|---|
signaturesRequired | integer |
molpha_fetch_verified Fetch verified Molpha data
Trigger a signing round for a feed and return the self-contained signed payload PLUS prebuilt verifier arguments for each requested chain. The signed payload is the trust anchor — verify it or forward it to a contract; do not consume `value` alone. Only the `solana` leg can be settled from this server (via `autoSubmit`, or by passing this tool's output to molpha_execute unmodified); `evm` and `starknet` return contract-ready calldata only — executing verify() there is the agent's job by design (see molpha_verify). `payment` selects how the round is paid for: "subscription" uses the caller'…
| Parameter | Type | Description |
|---|---|---|
apiConfig * | object | |
chains * | array | |
autoSubmit | boolean | Submit the signed DataUpdate to Solana in the same call, so a round-trip settle is one call instead of two. Requires "solana" in chains. Honours dryRun and the daily execute cap; a failed submit still… |
dryRun | boolean | |
encryptSecrets | object | |
feedId | string | |
maxAge | integer | |
payment | string | |
signaturesRequired | integer |
molpha_get_latest Get latest Molpha feed
Read the latest on-chain feed account for a Molpha feedId. `valueKind` is the attested encoding of the stored bytes ("value" = raw payload, "hash" = keccak digest) — it is not a scale hint. Molpha does not attest decimals on-chain; see molpha_describe_feed's valueEncoding for the (unsigned) apiConfig provenance.
| Parameter | Type | Description |
|---|---|---|
feedId * | string |
molpha_verify Verify Molpha result
Build the verifier address and call args for a signed DataUpdate on EVM or Starknet. This tool stops at calldata by design, not by omission: the Molpha verifier is stateless, so the agent (or its contract) executes verify() itself and the server never submits an EVM/Starknet transaction or vouches for a result it did not verify on-chain. There is no EVM/Starknet execution path anywhere in this MCP server. For Solana, submit the DataUpdate via molpha_execute (or molpha_fetch_verified autoSubmit) and read it back with molpha_get_latest — there is no separate simulate-verify path. Accepts the d…
| Parameter | Type | Description |
|---|---|---|
chain * | string | |
dataUpdate * | object | |
signature * | object | |
includeAbi | boolean |
molpha_execute Execute Molpha data update on Solana
Submit a signed DataUpdate to the Solana feed via submit_data_update. Pass the output of molpha_fetch_verified through unmodified — both the artifact shape ({ dataUpdate, signature }) and the flat shape ({ s, commitmentAddr, timestamp }) are accepted, and short hex fields are zero-padded server-side. Permissionless on-chain; the owner key pays SOL fees. EVM/Starknet execution is deliberately out of scope (see molpha_verify) — use the verifier args from molpha_fetch_verified and call verify() yourself.
| Parameter | Type | Description |
|---|---|---|
result * | ||
dryRun | boolean |