Ophis MCP
Ophis is an intent-based DEX aggregator providing MEV-protected swaps for AI agents and tokenized assets. The MCP server allows agents to execute gasless, secure onchain token swaps across 14 EVM chains using the CoW Protocol settlement stack, with built-in agent-safety guards like receiver-pin checks and chain-id validation.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://mcp.ophis.fi/mcpWhat its tools do
13 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Read-only (12)
Can change data (1)
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Passed Official MCP Registry namespace is tied to ophis.fi ·
- Passed Endpoint is on the registry namespace domain ·
- Uptime 100% over 90 days
- Availability 2 of 2 checks passed in 30 days
- Popularity 4 GitHub stars
What you can do with it
- Execute MEV-protected token swaps for AI agents
- Integrate gasless onchain trading into agent workflows
- Swap supported stablecoins and tokenized assets across EVM chains
Source and maintenance
- Last repository push
- Latest release
- agent-plugins-v0.3.7
- Maintenance checked
Protocol and capabilities
- Server
- ophis 0.2.3
- MCP protocol negotiated in check
- 2025-11-25
- Tools
- 13 advertised
- Resources
- Not advertised
- Resource templates
- Not advertised
- Prompts
- Not advertised
{
"tools": {
"listChanged": true
}
}Tools
13 advertised
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.
{
"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."
}
}
}{
"title": "Parse swap intent",
"readOnlyHint": true,
"openWorldHint": true
}get_quote
Fetch a 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).
{
"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",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"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",
"maximum": 9007199254740991,
"description": "Quote validity window in seconds (default 1200 = 20 min).",
"exclusiveMinimum": 0
}
}
}{
"title": "Get swap quote",
"readOnlyHint": true,
"openWorldHint": true
}build_order
Build a bounded, ready-to-sign 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, 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.
{
"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",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"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": "Referral code to embed in appData for attribution of 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",
"maximum": 9007199254740991,
"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",
"maximum": 9007199254740991,
"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": {}
}
}{
"title": "Build signable order",
"readOnlyHint": true,
"openWorldHint": true
}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). Returns the order UID on success and enrolls the owner for indexing, referral attribution, and trade rewards.
{
"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",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"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."
},
"chainId": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"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')."
}
}
}{
"title": "Submit signed order",
"readOnlyHint": false,
"openWorldHint": true,
"destructiveHint": true
}get_integrator_earnings
Look up routed volume, the Ophis base fee, and the integrator's own fee on externally hosted chains, by appCode (your widget appCode or SDK ophisReferrer code). Routed volume is reported in USD, split by chain and by Ophis-operated versus externally hosted chains. Read-only, keyless, cumulative.
{
"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_-])."
}
}
}{
"title": "Get integrator earnings",
"readOnlyHint": true,
"openWorldHint": true
}list_chains
List configured EVM orderbook chains, split into `tradeable` (orderbook URL configured; only route get_quote/build_order to these) and `paused` (no configured orderbook URL, so those tools reject the chain). This is configuration, not a live health or liquidity check. The standalone app's externally funded NEAR networks are not orderbook chains. Each tradeable chain includes its orderbook host, GPv2Settlement contract (Optimism, Robinhood Chain, and Arc are non-canonical), and canonical Ophis fee config. No input.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {}
}{
"title": "List Ophis chains",
"readOnlyHint": true,
"openWorldHint": 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).
{
"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",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "EVM chain id (use list_chains for Ophis chains)."
}
}
}{
"title": "Get wallet balances",
"readOnlyHint": true,
"openWorldHint": true
}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 12 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.
{
"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",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"maxItems": 12,
"description": "Chains to read (max 12). 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).",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
},
"maxItems": 50
}
}
}
}{
"title": "Get cross-chain balances",
"readOnlyHint": true,
"openWorldHint": true
}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.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"chainId"
],
"properties": {
"chainId": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "EVM chain id."
}
}
}{
"title": "Get chain gas price",
"readOnlyHint": true,
"openWorldHint": true
}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.
{
"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",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "EVM chain id (GeckoTerminal-mapped: eth/optimism/base/arbitrum/polygon/bsc/avax/linea/gnosis/ink)."
},
"aggregate": {
"type": "integer",
"maximum": 9007199254740991,
"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')."
}
}
}{
"title": "Get token OHLCV chart",
"readOnlyHint": true,
"openWorldHint": true
}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.
{
"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",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"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)."
}
}
}{
"title": "Estimate beat-the-market surplus",
"readOnlyHint": true,
"openWorldHint": true
}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.
{
"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",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"description": "EVM chain id (use a chainId from list_chains `tradeable`)."
}
}
}{
"title": "Resolve token symbol to canonical address",
"readOnlyHint": true,
"openWorldHint": true
}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 (prevents Ophis referral attribution), wrong orderbook host (api.cow.fi silently bypasses the Ophis stack on Ophis-operated chains), wrong EIP-712 domain (signing against the upstream protocol'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.
{
"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",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"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."
},
"owner": {
"type": "string",
"description": "The signing account address; enables the receiver drain-guard check."
},
"chainId": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991,
"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",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"version": {
"type": "string"
},
"verifyingContract": {
"type": "string"
}
},
"description": "The EIP-712 domain the order will be signed against."
}
}
}{
"title": "Validate order preflight",
"readOnlyHint": true,
"openWorldHint": false
}Prompts
Not advertised
Resources
Not advertised
90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-02: 3 of 3 checks answered
- 2026-11-03: 4 of 4 checks answered
- 2026-11-04: 4 of 4 checks answered
- 2026-11-05: 4 of 4 checks answered
- 2026-11-06: 4 of 4 checks answered
- 2026-11-07: 2 of 2 checks answered
- 2026-11-09: 1 of 1 checks answered
- 2026-11-10: 2 of 2 checks answered
- 2026-11-11: 1 of 1 checks answered
- 2026-11-12: 1 of 1 checks answered
- 2026-11-14: 1 of 1 checks answered
- 2026-11-15: 2 of 2 checks answered
- 2026-11-16: 4 of 4 checks answered
- 2026-11-17: 5 of 5 checks answered
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 3 of 3 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 3 of 3 checks answered
- 2026-11-24: 4 of 4 checks answered
- 2026-11-25: 4 of 4 checks answered
- 2026-11-26: 4 of 4 checks answered
- 2026-11-27: 4 of 4 checks answered
- 2026-11-28: 2 of 2 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 2 of 2 (100%)
- Average latency
- 896 ms
- 95th percentile latency
- 951 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 835 ms · metadata changed · 13 tool(s)
- · probe · passed · 957 ms · metadata changed · 13 tool(s)
- · repository · passed · metadata changed · updated
- · repository · passed · metadata changed · unchanged
- · repository · passed · metadata changed · updated
- · registry · passed · metadata changed · Source metadata updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http ophis-mcp https://mcp.ophis.fi/mcpCodex
codex mcp add ophis-mcp --url https://mcp.ophis.fi/mcpCursor
{
"mcpServers": {
"ophis-mcp": {
"url": "https://mcp.ophis.fi/mcp"
}
}
}Cline
{
"mcpServers": {
"ophis-mcp": {
"type": "streamableHttp",
"url": "https://mcp.ophis.fi/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"ophis-mcp": {
"type": "http",
"url": "https://mcp.ophis.fi/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http ophis-mcp https://mcp.ophis.fi/mcpClaude Desktop
https://mcp.ophis.fi/mcpWindsurf
{
"mcpServers": {
"ophis-mcp": {
"serverUrl": "https://mcp.ophis.fi/mcp"
}
}
}Let your agent find its tools
Find servers like Ophis MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.
Other ai and machine learning servers
Do you run Ophis MCP?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.