Ophis
OfficialOphis MCP server lets agents parse swap intents, get quotes, build/sign-ready orders, submit pre-signed orders, and inspect chain/fee-tier data without holding keys.
Parse plain-English swap requests into structured intent entities.
List supported chains and distinguish live
tradeableorderbooks from paused networks.Fetch account-aware quotes from Ophis orderbooks using atom amounts.
Build bounded, ready-to-sign CoW orders with pinned receiver, partner fee/appData, and enforced slippage checks.
Relay pre-signed EIP-712 or ethsign orders to the orderbook.
Look up a wallet's fee-rebate tier and indexer status.
Enables trading on the Ethereum network via Ophis, supporting gasless, MEV-protected swaps with natural language intents.
Enables cross-chain trading destinations via NEAR Intents, allowing swaps to Bitcoin and Solana through Ophis.
Enables trading on the Optimism network via Ophis's self-hosted settlement and solver, providing gasless, MEV-protected swaps.
Enables trading on the Polygon network via Ophis, supporting gasless, MEV-protected swaps with natural language intents.
Enables cross-chain trading destinations via NEAR Intents, allowing swaps to Solana through Ophis.
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
Ophis is a multichain DEX aggregator that brings token swaps, cross-chain transfers and private trading into one interface. Users review quotes and authorize trades in their wallets. Developers and agents can integrate through the SDK, CLI or MCP server; the hosted MCP server does not hold private keys or sign orders.
Trading
Same-chain swaps: signed batch-auction orders with solver-based execution and user-defined limits.
Cross-chain trading: quotes and funding flows across supported bridge providers, including Relay. Availability depends on the asset and route.
Private swaps: a separate RAILGUN flow with its own network coverage and funding requirements. See the Privacy pools and private swaps guide.
Standard ERC-20 orders retain funds in the wallet until settlement. Approvals, native-token trades, bridges and private swaps can require onchain transactions or deposits. The app shows the applicable quote and funding steps before signing. See network and funding coverage.
Batch-auction fees: On every supported chain, Ophis charges a 0.01% (1 bp) base fee, plus 80% of improvement over the reference quote on volatile pairs (99 bps cap), or 50% on stable pairs (20 bps cap). Hosted chains encode that policy in CIP-75 appData and separately pay CoW Protocol's upstream fees. See the fee guide.
Related MCP server: evmscope
Networks
The EVM order infrastructure supports 13 mainnets across two settlement models:
Settlement model | Networks |
Ophis-operated orderbooks, solvers and settlement contracts | Optimism (10), Robinhood Chain (4663), Arc (5042) |
CoW-hosted settlement and solver network | Ethereum, BNB Chain, Gnosis, Polygon, Base, Plasma, Arbitrum, Avalanche, Ink, Linea |
The swap app also offers NEAR-powered routes to supported non-EVM networks. Those deposit flows have separate asset, deadline and refund requirements. Use the network guide for coverage and service status for operational details.
Integrate
Interface | Start here |
TypeScript SDK | Install |
CLI | Run |
MCP server | Connect a Streamable HTTP client to |
Intent API | Parse natural-language requests into structured intent data. API reference |
On Base, eligible public contract transactions from the swap app and CLI carry
Ophis builder code bc_8j4gt5x6 using ERC-8021 attribution.
Wallet batches request the optional attribution capability. Offchain order
signatures and CoW-hosted settlements are outside this client integration.
Ophis-operated solver settlements on Optimism, Robinhood Chain and Arc also
include cross-chain ERC-8021 tags. Recognition by Base's dashboard or rewards
program on these networks is unverified. See the
backend rollout requirements.
See the SDK integration notes.
For example, parse a request without submitting a trade:
curl -sS https://ophis.fi/api/intent \
-H 'content-type: application/json' \
-d '{"text":"swap 100 USDC for ETH on Base"}'The Intent API parses text; the caller presents the result for review and handles wallet authorization separately. See the agent integration guide for signing policies and trust boundaries.
Repository layout
Path | Contents |
Swap app, Explorer and landing site; a separate pnpm workspace based on CoW Swap. | |
Rust orderbook, autopilot, driver and solvers, based on CoW Protocol services. | |
Hosted MCP integration. | |
Business onboarding, roles, approvals and partner reporting at pro.ophis.fi. | |
Trade indexing, referral attribution and rewards. | |
Private-swap application and release documentation. | |
Private transaction submission, prepaid gas credit and refunds. | |
Public documentation site. | |
SDK, CLI, wallet-policy packages and integration adapters. | |
Settlement contracts, deployment records and contract tests. | |
Cloudflare Pages API endpoints and middleware. | |
Network deployments, RPC configuration and operational tooling. | |
Architecture, development plans, operations and review reports. | |
Machine-readable scan baselines and verification data used by tooling. |
Local development
Use Node.js 22 (at least 22.12) and the pnpm version pinned in
package.json. Install Bun as well for the CLI tests included in
pnpm test. CI runs on Node.js 22.
git clone https://github.com/ophis-fi/ophis.git
cd ophis
corepack enable
pnpm install --frozen-lockfile
pnpm build
pnpm typecheck
pnpm testThe frontend and documentation site have independent pnpm workspaces and lockfiles. Run their commands from their own directories:
# Swap app
cd apps/frontend
pnpm install --frozen-lockfile
pnpm run build:cowswap# Documentation site, from the repository root
cd apps/docs-ophis
pnpm install --frozen-lockfile
pnpm run buildThe backend uses Rust/Cargo; contracts use Foundry. Follow
CONTRIBUTING.md for component-specific setup, tests and review
requirements. The release runbook covers
package publishing; deployment workflows live in .github/workflows/.
Security and contributions
Report vulnerabilities through the private channels in SECURITY.md. Historical reviews are collected in the review index, with their original scope and findings.
For changes, follow the contribution guide, open a pull request and complete the required checks. See CHANGELOG.md for recorded releases.
License
GNU General Public License v3.0 at the repository root; component licenses and upstream notices also apply. The SDK declares GPL-3.0-or-later, the contracts LGPL-3.0-or-later and the frontend workspace ISC. Ophis includes code derived from CoW Swap, CoW Protocol services and CoW Protocol contracts.
Available Tools
6 toolsbuild_orderAInspect
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/MegaETH/HyperEVM are non-canonical) and embeds the CIP-75 partner fee. 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%, default = the cap) and 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.
Inputs: chainId (required), owner (required), sellToken (required), buyToken (required), +10 more.
get_quoteAInspect
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).
Inputs: chainId (required), sellToken (required), buyToken (required), kind (required), +3 more.
list_chainsAInspect
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, e.g. MegaETH/HyperEVM — these throw). Each tradeable chain includes its orderbook host and GPv2Settlement contract (Optimism/MegaETH/HyperEVM are non-canonical) and partner-fee config. No input.
Inputs: no named parameters.
lookup_tierAInspect
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.
Inputs: wallet (required).
parse_intentAInspect
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.
Inputs: text (required).
submit_orderAInspect
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.
Inputs: chainId (required), order (required), signature (required), from (required), +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a distinct purpose: build_order constructs orders, get_quote fetches quotes, list_chains provides chain info, lookup_tier checks fee tiers, parse_intent interprets natural language, and submit_order relays signed orders. No overlap or ambiguity.
All tool names follow a consistent snake_case verb_noun pattern (build_order, get_quote, list_chains, lookup_tier, parse_intent, submit_order), making them predictable and easy to navigate.
With 6 tools, the server is well-scoped for its purpose of building and submitting CoW orders. Each tool serves a necessary role without redundancy, and the count is appropriate for the domain.
The tool set covers the full lifecycle: get a quote (get_quote), construct an order (build_order), and submit it (submit_order), plus auxiliary tools for chain info, fee tiers, and natural language parsing. No obvious gaps for the intended use case.
Maintenance
Related MCP Connectors
Agent tools for discovery, payment safety, data extraction, and DeFi.
17 pay-per-call web, finance, legal and onchain tools for AI agents. USDC on Base via x402/MPP.
Trading tools for AI agents: token risk checks, swap quotes, unsigned swaps, holdings on 5 chains.
EVM chain reads for agents: balances, gas, fees, blocks, txs, logs, ENS. 15 tools, x402 per call.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables interaction with DeFi trading and portfolio analytics through Odos DEX aggregation and Zerion APIs. Provides access to swap quotes, liquidity operations, token pricing, portfolio analysis, and transaction history across multiple blockchain networks.3-
- AlicenseAqualityDmaintenanceDescription: EVM blockchain intelligence toolkit for AI agents. 20 tools for token prices, gas comparison, swap quotes, yield rates, honeypot detection, and transaction simulation across 5 EVM chains. Zero config, no API keys required.2669 npm3MIT
- AlicenseAqualityDmaintenanceEnables interaction with CoW Protocol's order book API, allowing token resolution, quote retrieval, and order management across multiple networks through natural language.8MIT
- AlicenseAqualityCmaintenanceEnables AI agents to fetch crypto market and on-chain data, including prices across venues, token facts, OHLC candles, market overview, DeFi TVL, and wallet balances, with two free tools and the rest paid per call in USDC on Base via x402.8MIT