# Ophis MCP

Hands an agent 13 tools for swaps across 15 EVM chains: quotes, order building, submission. No keys held — the agent signs.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 4
- Author: ophis-fi
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ophis-fi/ophis/tree/HEAD/apps/mcp-server
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/mcp/ophis-mcp

## What it does

The server runs as a Cloudflare Worker over Streamable-HTTP at `https://mcp.ophis.fi/mcp`. Thirteen tools sit behind it. `parse_intent` turns a plain-language swap request into a structured intent, `resolve_token` maps a symbol to its canonical address and fails closed against spoofing, `get_quote` pulls the best execution from the chain's orderbook, `build_order` assembles a ready-to-sign EIP-712 payload, and `submit_order` relays an order the agent has already signed. Alongside those: balances for one address on one chain or across several, current gas price, OHLCV history, and `validate_order` for an offline preflight of an externally built order.

No private keys live on the server, and it never signs. What `build_order` returns pins the order receiver to the owner, which closes off the usual drain vector for autonomous agents. That guard is off-chain only — it is not an authorization boundary on-chain. Signing happens with the agent's own key, then the signature goes to `submit_order`. The endpoint is public and unauthenticated, since every backing service is already public and the tools only read or build.

\`list_chains` reports configuration rather than probing live availability. The separate NEAR funding flow in the standalone app is not something these tools create or fund. Local work needs pnpm: `pnpm --filter @ophis/mcp-server dev` starts `wrangler dev` on `http://localhost:8787/mcp`, and `npx @modelcontextprotocol/inspector@latest` connects to it.

## Requirements
- Remote server: `https://mcp.ophis.fi/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http mcp https://mcp.ophis.fi/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add mcp-server --url https://mcp.ophis.fi/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "mcp-server": {
            "url": "https://mcp.ophis.fi/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "mcp-server": {
            "type": "http",
            "url": "https://mcp.ophis.fi/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http mcp-server https://mcp.ophis.fi/mcp
```

## When to use it
- build a signable swap order without hand-deriving per-chain contracts
- pull a quote from the Ophis orderbook on a given chain
- preflight someone else's order: appCode, EIP-712 domain, appData hash
- check an address's balances across several EVM chains at once
- turn a plain swap sentence into a structured intent

## Example prompts
- Parse "swap 100 USDC for WETH on Optimism" and build the order
- Resolve the canonical WETH address on Optimism with resolve_token
- Run validate_order on this order before I submit it

## Similar
- [1inch](https://affpapa.org/en/nevibecode/skills/1inch.md) — skill · 352 installs
- [mcp](https://affpapa.org/en/nevibecode/mcp/swap-api-mcp.md) — MCP server · ★ 22
- [SwapWizard](https://affpapa.org/en/nevibecode/mcp/swapwizard.md) — MCP server · ★ 7
- [chainlink-data-feeds-skill](https://affpapa.org/en/nevibecode/skills/chainlink-data-feeds-skill.md) — skill · 364 installs
- [agentwallet](https://affpapa.org/en/nevibecode/skills/agentwallet.md) — skill · 2600 installs
- [gmgn-wallet-review](https://affpapa.org/en/nevibecode/skills/gmgn-wallet-review.md) — skill · 2400 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
