Skip to main content

Developers · MCP

Connect an AI client with MCP

The Coverline MCP server lets an AI client read the market and prepare orders. It never holds a key, never signs and never sends. You review what it prepares and sign in your own wallet, or you do not.

Testnet only Testnet only today: test assets, no value. Use the hosted endpoint below, or run the server on your own computer.

What it does, and what it cannot do

  • Reads the market

    Series, order book, offers, positions and agent grants, each from the indexer and the chain.

  • Prepares, never sends

    A build tool returns the full preview (what you pay, what you receive, when, the worst case) and unsigned transactions. Every result says it was not sent.

  • Checks first

    Every build is simulated. If it would fail, you get the reason in plain words and no transaction. The server has no setting for a private key; a test fails the build if signing or sending is ever added.

Connect a client

The quickest way is the hosted endpoint below. To run it yourself, your AI client starts the server as a command: build coverline-services (its source is available to reviewers on request), then add the server to the client’s MCP settings:

{
  "mcpServers": {
    "coverline": {
      "command": "node",
      "args": ["<path>/coverline-services/dist/mcp/main.js"],
      "env": {
        "RPC_URL": "https://rpc.testnet.chain.robinhood.com",
        "MCP_INDEXER_URL": "https://testnet-api.coverlinefi.xyz"
      }
    }
  }
}

Replace <path> with your checkout; the RPC and indexer are the public testnet ones. No key is needed, and none can be given.

Public endpoint

On the testnet, a hosted endpoint saves running anything: https://testnet-mcp.coverlinefi.xyz/mcp (Streamable HTTP, no key). It serves Robinhood Chain Testnet only, with test assets that have no value, and refuses mainnet.

Tools

The list below is read from the server’s own definitions (19 on the hosted endpoint today), not written by hand.

Read tools
ToolReturns
coverline_statusWhich network this server serves (testnet first), the market address, whether its tokens are test mocks, whether the indexer serves the same market and how far behind it is, and the oracle's current test price per token.
coverline_list_seriesOpen option series with the best ask and bid per lot (premium in USDG), lots offered and bid.
coverline_get_bookAsk and bid levels (premium per lot in USDG, lots, orders) of one series, and the best open offers and bids with their ids.
coverline_get_offerOne offer by id: its series, writer, lots (total, filled, free), premium per lot, collateral per lot, settle bounty, status and settlement state.
coverline_get_positionsWhat an address holds and has open: option positions (lots per offer), its open offers (as writer) and open bids, and payouts it can claim now (as holder or writer).
coverline_get_agent_grantsOn-chain grants that let an agent write, buy or cancel for an owner: permissions, validity, budgets granted, spent and remaining.
coverline_changes_sinceWhat happened on the market after a block: event counts by kind, the offers, bids and series they touch, and the indexer's current block.
Build tools (unsigned transactions)
ToolPrepares
coverline_build_write_offerPrepares an unsigned createOffer: the writer locks collateral (calls: the tokens; puts: USDG) and a settle bounty, and earns the premium (net of the fee) when buyers fill.
coverline_build_place_bidPrepares an unsigned createBid: the bidder escrows the premium; writers can sell into the bid.
coverline_build_buyPrepares an unsigned fillOffer: the buyer pays the premium and receives option positions.
coverline_build_sell_to_bidPrepares an unsigned sellToBid: the writer locks collateral and a settle bounty and receives the bid's premium (net of the fee) now.
coverline_build_cancelPrepares an unsigned cancelOffer (unfilled lots: collateral back) or cancelBid (unfilled lots: premium back).
coverline_build_settlePrepares an unsigned settle of an expired offer.
coverline_build_claimPrepares an unsigned claim on a settled offer: as holder (positions are burned, the payoff net of the exercise fee is paid) or as writer (the remaining collateral).
coverline_build_grant_agentPrepares an unsigned grantAgent from the owner: lets an agent address write, buy or cancel for the owner on one Stock Token, within budgets, a validity date, a maximum offer duration and a minimum premium.
coverline_build_revoke_agentPrepares an unsigned revokeAgent from the owner: deletes the grant for one agent and Stock Token at once.
coverline_build_agent_write_offerPrepares an unsigned createOfferFor on the market's AgentModule, signed by the agent: writes an offer for the principal within the principal's grant.
coverline_build_agent_buyPrepares an unsigned fillOfferFor on the market's AgentModule, signed by the agent: buys lots of an offer for the principal within the principal's grant.
coverline_build_agent_cancelPrepares an unsigned cancelOfferFor on the market's AgentModule, signed by the agent: withdraws unfilled lots of the principal's offer; the collateral returns to the principal.

Tool list from testnet-mcp.coverlinefi.xyz tools/list, 2026-12-01.

What it guarantees

  • No keys, no signing, no sending, no custody: the server returns unsigned transactions, and a test fails the build if any signing or sending code appears in it.
  • The preview on every action: its build tools wrap the SDK’s previews; every number is a chain or indexer read, or the contract’s own math, with no model values.
  • Never a transaction known to revert: the market transaction is returned only after it simulated successfully from the signing address.
  • Approvals first: while a token approval is missing, only the approval is returned.
  • Testnet only: it serves Robinhood Chain Testnet, and mainnet is refused in code.

Protocol: the Model Context Protocol over stdio (local) or Streamable HTTP (hosted), versions 2025-06-18, 2025-03-26 and 2024-11-05.

You stay in charge

An AI client can make mistakes. Read every preview, check the amounts and the worst case, and sign only what you understand. Stock Tokens are tokenized debt securities; the server calls them “tokens” and never invents numbers. To let an agent act on its own inside limits, use agent grants. For the SDK and the indexer API, see Developers.