Skip to main content
The API MCP server exposes the same handlers as the REST API, over Streamable HTTP:
Two MCP serversThis page is about the API MCP, which runs paid tools. The docs MCP at https://docs.si.ampli.net/mcp is free and read-only: it searches and reads these pages. See Build with AI.

Tools

Each tool description includes its current price. Results come back as JSON in both content and structuredContent. Amounts are base units, as in the REST API. Typical order: list_protocols for market names, protocol_health for any market you are unsure about, then optimize with those names.

What is free

initialize, tools/list, and the tool schemas cost nothing. Only tools/call is paid.

Connect with a partner key

Send the partner headers on the MCP HTTP request. No payment is taken for any tool.
Add to .cursor/mcp.json in your project, or ~/.cursor/mcp.json for every project:
A wrong partner key returns an error result with status 401. It does not fall back to payment.

Pay per call with x402

Without partner headers, every tools/call needs an x402 payment. This needs an MCP client that can sign x402 payments; editors such as Cursor cannot do this on their own, so use partner headers there.
1

Call the tool

A call without payment returns isError: true. Its structuredContent is the x402 offer, the same JSON as the REST PAYMENT-REQUIRED header, with the price for this call in accepts.
2

Sign and retry

Sign the offer with an x402 client and put the payment payload object in params._meta["x402/payment"].
3

Read the receipt

The successful result carries the settlement in result._meta["x402/payment-response"], with the transaction hash.
Payment follows the same rules as REST: verified before the tool runs, settled only when it succeeds. A validation error, such as an empty assets list or hours above 24, settles nothing.

Rules for agents

  • Use only these four tools and the documented arguments. Do not invent tools or fields.
  • create_monitor_session returns a token. Your agent must open the websocket itself; the MCP server does not hold it.
  • Never ask a person for a private key. The tools need none, and the paying wallet signs on the client side.
  • Report amounts in base units and in human units, and never present an APR as a promise.