Serveur MCP

Ophis MCP

fi.ophis/mcp
Crypto et Web3 Paiements et fintech Public et accessible MCP 2025-11-25

Ce que fait ce MCP

Quotes, builds, validates, and relays gasless MEV-protected token swaps on supported EVM chains, while providing wallet and market data.

build_order
Build a bounded, ready-to-sign CoW order on Ophis. Returns { order, signing:{domain,types,primaryType}, fullAppData, appDataHash, partnerFee, next }. The receiver is ALWAYS PINNED to the owner (proceeds cannot leave the account); this public endpoint exposes no custom-receiver option. Uses the correct per-chain settlement contract (Optimism, Unichain, Robinhood Chain, and Arc are non-canonical) and applies the canonical Ophis fee policy. Apply slippage to the LIMIT side by kind: for kind 'sell' lower buyAmount (your minimum out); for kind 'buy' raise sellAmount (your maximum in). slippageBips is capped at 5000 (50%); when omitted, the enforced backstop defaults to 100 bps (1%). ENFORCED: build_order fetches a live quote and REJECTS the call if the limit is worse than slippageBips vs that quote (or if a quote cannot be fetched; retry). Sign `order` as EIP-712 with `signing`, then call submit_order.
Lecture seule Accès externe
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['chainId', 'owner', 'sellToken', 'buyToken', 'sellAmount', 'buyAmount', 'kind'], 'properties': {'kind': {'enum': ['sell', 'buy'], 'type': 'string', 'description': "'sell' = sellAmount is exact and buyAmount is your minimum out; 'buy' = buyAmount is exact and sellAmount is your maximum in."}, 'owner': {'type': 'string', 'description': 'The signer/owner address (receiver defaults to this).'}, 'chainId': {'type': 'integer', 'description': 'EVM chain id (use a chainId from list_chains `tradeable`).'}, 'buyToken': {'type': 'string', 'description': 'Buy token address (0x...).'}, 'buyAmount': {'type': 'string', 'description': "In atoms. kind 'sell': the MINIMUM you accept (slippage-adjusted DOWN from the quote). kind 'buy': the EXACT amount you want to receive."}, 'feeAmount': {'type': 'string', 'description': 'Signed feeAmount in atoms. Must be omitted or "0" on this tool (the fee is taken from surplus + the appData partner fee).'}, 'sellToken': {'type': 'string', 'description': 'Sell token address (0x...).'}, 'sellAmount': {'type': 'string', 'description': "In atoms. kind 'sell': the EXACT amount you sell. kind 'buy': the MAXIMUM you'll spend (slippage-adjusted UP from the quote)."}, 'isStablePair': {'type': 'boolean', 'description': 'Optional assertion checked against the server-owned stablecoin registry; omit to auto-classify.'}, 'referrerCode': {'type': 'string', 'description': "Affiliate referral code to embed in appData (credits that code's owner for eligible settled trades, including Arc). Defaults to the server's OPHIS_DEFAULT_REFERRER_CODE. An empty string opts out. Grammar: 3-64 chars [a-z0-9_-]; an invalid code errors."}, 'slippageBips': {'type': 'integer', 'minimum': 0, 'description': 'Max accepted slippage in bips; capped at 5000 (50%); when omitted, the enforced backstop defaults to 100 bps (1%). Recorded in appData. ENFORCED: build_order fetches a live quote and rejects a limit worse than this vs the quote. Fund safety: the receiver is always pinned to the owner.'}, 'validForSeconds': {'type': 'integer', 'minimum': 60, 'description': 'Order lifetime in seconds (default 1200 = 20 min; minimum 60). The enforced live-quote fetch can consume several seconds, so very short lifetimes would return a near-expired order the orderbook rejects.'}, 'partiallyFillable': {'type': 'boolean', 'description': 'Allow partial fills (default false = fill-or-kill).'}, 'referenceBuyAmount': {}, 'referenceSellAmount': {}}, 'additionalProperties': False}
expected_surplus
Estimate how much better Ophis quotes than the open market for a sell: fetches the Ophis orderbook sell-quote and a public all-DEX aggregator (KyberSwap) quote for the same input, and returns `beatBps` (+ = Ophis returns more of the buy token). Use before build_order to show the expected edge. The reference can reflect thin or manipulated liquidity, so treat beatBps as advisory, not a sole execution signal. Sell-side (exact-in) only. Read-only.
Lecture seule Accès externe
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['chainId', 'sellToken', 'buyToken', 'sellAmount', 'from'], 'properties': {'from': {'type': 'string', 'description': 'The trading account address (quotes are account-aware).'}, 'chainId': {'type': 'integer', 'description': 'EVM chain id (use a chainId from list_chains `tradeable`).'}, 'buyToken': {'type': 'string', 'description': 'Buy token address (0x...).'}, 'sellToken': {'type': 'string', 'description': 'Sell token address (0x...).'}, 'sellAmount': {'type': 'string', 'description': 'Exact sell amount in atoms (uint256 decimal string).'}}, 'additionalProperties': False}
get_balances
Read a wallet's native-token balance plus ERC-20 balances for the given token addresses on one chain, via a public RPC (one multicall). Returns each token's symbol, decimals, raw atoms, and human-readable amount. A token address that is not an ERC-20 is reported with an `error` and does not fail the batch. Read-only; holds no keys. Supported chains are those with a public RPC (most Ophis chains).
Lecture seule Accès externe
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['chainId', 'owner'], 'properties': {'owner': {'type': 'string', 'description': 'Wallet address to read balances for (0x...).'}, 'tokens': {'type': 'array', 'items': {'type': 'string'}, 'maxItems': 50, 'description': 'ERC-20 token addresses to read (0x...); max 50. Native balance is always returned.'}, 'chainId': {'type': 'integer', 'description': 'EVM chain id (use list_chains for Ophis chains).'}}, 'additionalProperties': False}
get_gas
Read a chain's current gas price (EIP-1559 maxFee/maxPriority suggestion when supported, plus an effective gasPrice in wei and gwei). Ophis trades are gasless for the trader, so this mainly bounds the cost of a one-time ERC-20 approval to the VaultRelayer. Read-only.
Lecture seule Accès externe
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['chainId'], 'properties': {'chainId': {'type': 'integer', 'description': 'EVM chain id.'}}, 'additionalProperties': False}
get_integrator_earnings
Look up what an integrator's own-fee routing earned on indexed chains, including Arc, by appCode (the identifier you tag into appData: your widget appCode or your SDK ophisReferrer code). Returns routed volume (USD, split by chain and by sovereign-vs-hosted), the Ophis base fee charged on your flow, your OWN stacked fee, and your referral rebate paid-to-date with payout tx links. Guaranteed/paid figures are scoped to the Ophis-operated chains (Optimism, Unichain); CoW-hosted figures are accrued at settlement and disbursed by CoW under CoW terms (see the response `disclaimer`). Read-only, keyless, cumulative (no current-cycle or next-payout data).
Lecture seule Accès externe
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['appCode'], 'properties': {'appCode': {'type': 'string', 'maxLength': 64, 'minLength': 3, 'description': 'Your integrator appCode / referral code (3-64 chars of [a-z0-9_-]).'}}, 'additionalProperties': False}
get_portfolio
Read a wallet's native and (optionally) ERC-20 balances across multiple chains at once. Pass tokensByChain (chainId -> token addresses) to include token balances; omit chainIds to scan every chain with a public RPC (max 13 chains, and at most 100 token reads total across all chains). Per-chain RPC failures are returned inline so one dead endpoint does not sink the result. Read-only; holds no keys.
Lecture seule Accès externe
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['owner'], 'properties': {'owner': {'type': 'string', 'description': 'Wallet address to read (0x...).'}, 'chainIds': {'type': 'array', 'items': {'type': 'integer'}, 'maxItems': 13, 'description': 'Chains to read (max 13). Omit to scan all chains with a public RPC.'}, 'tokensByChain': {'type': 'object', 'description': 'Map of chainId -> ERC-20 token addresses to read on that chain (native is always included).', 'additionalProperties': {'type': 'array', 'items': {'type': 'string'}, 'maxItems': 50}}}, 'additionalProperties': False}
get_quote
Fetch a best-execution quote from the chain's Ophis orderbook (use a chainId from list_chains' `tradeable`). Amounts are in atoms (smallest unit, uint256 decimal string). For kind='sell' the amount is the sell amount before fee; for kind='buy' it is the desired buy amount. Returns the orderbook quote (sellAmount/buyAmount/feeAmount/validTo). Before build_order, apply slippage to the limit side by kind: kind='sell' -> lower buyAmount (min out); kind='buy' -> raise sellAmount (max in).
Lecture seule Accès externe
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['chainId', 'sellToken', 'buyToken', 'kind', 'amount', 'from'], 'properties': {'from': {'type': 'string', 'description': 'The trading account address (quotes are account-aware).'}, 'kind': {'enum': ['sell', 'buy'], 'type': 'string', 'description': "'sell' = you specify the sell amount; 'buy' = you specify the buy amount."}, 'amount': {'type': 'string', 'description': 'Amount in atoms (uint256 decimal string).'}, 'chainId': {'type': 'integer', 'description': 'EVM chain id (use list_chains for supported chains).'}, 'buyToken': {'type': 'string', 'description': 'Buy token address (0x...).'}, 'sellToken': {'type': 'string', 'description': 'Sell token address (0x...).'}, 'isStablePair': {'type': 'boolean', 'description': 'Optional assertion checked against the server-owned stablecoin registry; omit to auto-classify.'}, 'validForSeconds': {'type': 'integer', 'description': 'Quote validity window in seconds (default 1200 = 20 min).', 'exclusiveMinimum': 0}}, 'additionalProperties': False}
get_token_chart
Fetch OHLCV price history for a token from the keyless GeckoTerminal market API (resolves the token's deepest pool, then returns candles). Use for an agent to reason about recent price action before quoting. Prices come from a single pool that may be thin or manipulated, so treat them as advisory, not a sole execution signal. The keyless tier is a shared ~30 req/min quota, so cache and do not poll tightly. Read-only.
Lecture seule Accès externe
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['chainId', 'token'], 'properties': {'limit': {'type': 'integer', 'maximum': 300, 'description': 'Number of candles (default 30, max 300).', 'exclusiveMinimum': 0}, 'token': {'type': 'string', 'description': 'Token address (0x...).'}, 'chainId': {'type': 'integer', 'description': 'EVM chain id (GeckoTerminal-mapped: eth/optimism/base/arbitrum/polygon/bsc/avax/linea/gnosis/ink).'}, 'aggregate': {'type': 'integer', 'description': 'Bucket multiple base units into one candle, e.g. timeframe=hour aggregate=4 = 4h candles (default 1).', 'exclusiveMinimum': 0}, 'timeframe': {'enum': ['day', 'hour', 'minute'], 'type': 'string', 'description': "Candle timeframe (default 'day')."}}, 'additionalProperties': False}
list_chains
List Ophis chains, split into `tradeable` (orderbook host is live, only route get_quote/build_order to these) and `paused` (settlement deployed but no live orderbook yet, so these throw). Each tradeable chain includes its orderbook host, GPv2Settlement contract (Optimism, Unichain, Robinhood Chain, and Arc are non-canonical), and canonical Ophis fee config. No input.
Lecture seule
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'properties': {}}
lookup_tier
Look up a wallet's Ophis fee-rebate tier and live status (30-day volume → bronze/silver/gold/platinum, rebate %). Returns the indexer status plus the static tier ladder.
Lecture seule Accès externe
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['wallet'], 'properties': {'wallet': {'type': 'string', 'description': 'Wallet address (0x...).'}}, 'additionalProperties': False}
parse_intent
Parse a plain-English swap request (e.g. "swap 100 USDC for ETH on Optimism") into a structured intent: { intent: "swap"|"unknown", entities: [{type: sellToken|buyToken|amount|chain, value, raw}] }. Backed by the live Ophis parser.
Lecture seule Accès externe
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['text'], 'properties': {'text': {'type': 'string', 'maxLength': 280, 'minLength': 1, 'description': 'The natural-language swap request.'}}, 'additionalProperties': False}
resolve_token
Resolve an ERC-20 token SYMBOL to its CANONICAL on-chain address from the trusted Ophis token list (the same curated list the swap UI uses). Use this BEFORE quoting or building so you never trade an address taken from chat, the web, or memory: a token can spoof the symbol "USDC" at a scam address, and this fails closed. Returns { found, ambiguous, canonical: {address, decimals, name} | null, matches: [...] }. found=false means no trusted match (do NOT guess: confirm any candidate with get_balances and the user). ambiguous=true means several trusted tokens share the symbol (e.g. native vs bridged); confirm which the user means. Native coins are not returned; resolve the wrapped symbol (e.g. WETH). Read-only.
Lecture seule Accès externe
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['chainId', 'symbol'], 'properties': {'symbol': {'type': 'string', 'maxLength': 20, 'minLength': 1, 'description': 'Token symbol to resolve, e.g. "USDC" or "WETH".'}, 'chainId': {'type': 'integer', 'description': 'EVM chain id (use a chainId from list_chains `tradeable`).'}}, 'additionalProperties': False}
submit_order
Relay a PRE-SIGNED order to the chain's Ophis orderbook. Pass the exact `order` object and `fullAppData` from build_order, plus your EIP-712 `signature` and `from` (owner). The MCP holds no keys — it only forwards. Returns the order UID on success.
Destructif Accès externe
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['chainId', 'order', 'signature', 'from', 'fullAppData'], 'properties': {'from': {'type': 'string', 'description': 'The owner address that signed.'}, 'order': {'type': 'object', 'required': ['sellToken', 'buyToken', 'receiver', 'sellAmount', 'buyAmount', 'validTo', 'appData', 'feeAmount', 'kind', 'partiallyFillable', 'sellTokenBalance', 'buyTokenBalance'], 'properties': {'kind': {'enum': ['sell', 'buy'], 'type': 'string'}, 'appData': {'type': 'string'}, 'validTo': {'type': 'integer'}, 'buyToken': {'type': 'string'}, 'receiver': {'type': 'string'}, 'buyAmount': {'type': 'string'}, 'feeAmount': {'type': 'string'}, 'sellToken': {'type': 'string'}, 'sellAmount': {'type': 'string'}, 'buyTokenBalance': {'type': 'string', 'const': 'erc20'}, 'sellTokenBalance': {'type': 'string', 'const': 'erc20'}, 'partiallyFillable': {'type': 'boolean'}}, 'description': 'The order object returned by build_order.', 'additionalProperties': False}, 'chainId': {'type': 'integer', 'description': 'EVM chain id the order was built for.'}, 'signature': {'type': 'string', 'description': '0x EIP-712 signature over the order by the owner.'}, 'fullAppData': {'type': 'string', 'description': 'The fullAppData string returned by build_order.'}, 'signingScheme': {'enum': ['eip712', 'ethsign'], 'type': 'string', 'description': "Signature scheme over the order (default 'eip712')."}}, 'additionalProperties': False}
validate_order
Offline preflight for an order you built OUTSIDE build_order (no network call, no keys). Catches the documented silent-failure modes before you sign or submit: wrong appCode (settles but earns zero rebate), wrong orderbook host (api.cow.fi silently bypasses the Ophis stack on Ophis-operated chains), wrong EIP-712 domain (signing against CoW's canonical settlement on an Ophis-operated chain yields a domain the deployed contract rejects), appData hash mismatch (order.appData must equal keccak256 of the exact fullAppData string), an unpinned receiver (proceeds leaving the owner), an expired or non-zero-fee order, and malformed partnerFee entries. Pass whatever you have (chainId is required; owner, order, fullAppData, signingDomain, orderbookUrl are all optional and each is checked if present). Returns { valid, errors, warnings, expected } where `expected` echoes the correct per-chain orderbook host, settlement, EIP-712 domain, appCode, and partnerFee. Prefer build_order to construct orders; use this to verify externally-built ones.
Lecture seule
Schéma d’entrée
{'type': 'object', '$schema': 'http://json-schema.org/draft-07/schema#', 'required': ['chainId'], 'properties': {'order': {'type': 'object', 'properties': {'kind': {'type': 'string'}, 'appData': {'type': 'string', 'description': 'The signed bytes32 appData hash.'}, 'validTo': {'type': 'integer'}, 'buyToken': {'type': 'string'}, 'receiver': {'type': 'string'}, 'buyAmount': {'type': 'string'}, 'feeAmount': {'type': 'string'}, 'sellToken': {'type': 'string'}, 'sellAmount': {'type': 'string'}}, 'description': 'The (partial) order about to be signed.', 'additionalProperties': False}, 'owner': {'type': 'string', 'description': 'The signing account address; enables the receiver drain-guard check.'}, 'chainId': {'type': 'integer', 'description': 'EVM chain id the order is for (use list_chains `tradeable`).'}, 'fullAppData': {'type': 'string', 'description': 'The exact appData JSON string that will be submitted with the order.'}, 'orderbookUrl': {'type': 'string', 'description': 'The orderbook base URL the order will be submitted to.'}, 'signingDomain': {'type': 'object', 'properties': {'name': {'type': 'string'}, 'chainId': {'type': 'integer'}, 'version': {'type': 'string'}, 'verifyingContract': {'type': 'string'}}, 'description': 'The EIP-712 domain the order will be signed against.', 'additionalProperties': False}}, 'additionalProperties': False}
Modifié
get_integrator_earnings
1 October 2026 02:43
Modifié
build_order
1 October 2026 02:43
Modifié
get_portfolio
29 September 2026 02:50
Modifié
list_chains
29 September 2026 02:50
Modifié
get_integrator_earnings
29 September 2026 02:50
Modifié
build_order
29 September 2026 02:50
Modifié
resolve_token
23 September 2026 02:40
Ajouté
validate_order
21 September 2026 02:40
Ajouté
resolve_token
21 September 2026 02:40
Ajouté
expected_surplus
21 September 2026 02:40
Ajouté
get_token_chart
21 September 2026 02:40
Ajouté
get_gas
21 September 2026 02:40
Ajouté
get_portfolio
21 September 2026 02:40
Ajouté
get_balances
21 September 2026 02:40
Ajouté
list_chains
21 September 2026 02:40
Ajouté
get_integrator_earnings
21 September 2026 02:40
Ajouté
lookup_tier
21 September 2026 02:40
Ajouté
submit_order
21 September 2026 02:40
Ajouté
build_order
21 September 2026 02:40
Ajouté
get_quote
21 September 2026 02:40
Ajouté
parse_intent
21 September 2026 02:40

SAP MCP Server

ai.oobeprotocol.sap.mcp/sap-mcp

Provides an MCP gateway connecting SAP-related tools with Solana, DeFi, decentralized identity, and x402 payments.

FortFi Treasury MCP

io.github.rebelArtists/fortfi-treasury-mcp

Provides policy-controlled crypto treasury operations across chains, including wallets, payments, token discovery, swaps, bridges…

DPX — Institutional Cross-Border Settlement

io.github.untitledfinancial/dpx

Provides compliance-gated cross-border crypto settlement, agent registration and spending mandates, stablecoin routing, ESG and s…

Peer

io.github.zkp2p/peer

Reads Peer protocol, checkout, deposit, wallet, Peer Cash, cross-chain routing, payout, and IntentGuardian data on Base and relat…

Robyn — Gasless Cross-Chain for AI Agents

io.github.ox31461/robyn

Supports gasless cross-chain transfers, wallet and transaction checks, spending mandates, privacy-preserving messaging, and signe…

MERX - TRON Resource Exchange

exchange.merx/mcp

Manages TRON energy and bandwidth purchasing, resource monitoring, transaction cost estimation, wallet operations, token transfer…

Wisely x402 Agent-Payment Infrastructure

com.wiselyenterprisesllc/x402-agent-payment-infrastructure

Provides agent payment workflows for x402 endpoints, wallet handoffs, receipts, creator catalogs, local commerce bridges, endpoin…

AgentTools Hub

io.github.Thyphex/agenttools-hub

Offers calculators, unit and data converters, reference lookups, live crypto data, wallet utilities, and paid x402 access.