Back to Goose

Ophis Extension

documentation/docs/mcp/ophis-mcp.md

1.39.03.0 KB
Original Source

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import CLIExtensionInstructions from '@site/src/components/CLIExtensionInstructions'; import GooseDesktopInstaller from '@site/src/components/GooseDesktopInstaller';

This tutorial covers how to add Ophis as a goose extension so goose can turn natural-language swap requests into executable orders across supported chains.

:::tip Quick Install <Tabs groupId="interface"> <TabItem value="ui" label="goose Desktop" default> Launch the installer </TabItem> <TabItem value="cli" label="goose CLI"> Use goose configure to add a Remote Extension (Streamable HTTP) extension type with:

**Endpoint URL**
```
https://mcp.ophis.fi/mcp
```
</TabItem> </Tabs> :::

What is Ophis?

Ophis is an intent-based DEX aggregator with a natural-language layer and a keyless MCP server for AI agents. It is non-custodial, gasless, and MEV-protected, and returns swap surplus to the trader. Ophis is a fork of CoW Protocol. It deploys its own settlement contract on Optimism and routes through CoW Protocol on the other supported chains: Ethereum, Base, Arbitrum, Polygon, BNB Chain, Gnosis, Avalanche, Linea, Plasma, and Ink.

The MCP server is keyless and requires no API key or environment variables. It exposes six tools: parse_intent, get_quote, build_order, submit_order, lookup_tier, and list_chains. Trades are signed by the user's own wallet, so the server never holds keys or funds.

Configuration

<Tabs groupId="interface"> <TabItem value="ui" label="goose Desktop" default> <GooseDesktopInstaller extensionId="ophis" extensionName="Ophis" description="Natural-language intent DEX aggregator with a keyless MCP server for AI agents" type="http" url="https://mcp.ophis.fi/mcp" /> </TabItem> <TabItem value="cli" label="goose CLI"> <CLIExtensionInstructions name="Ophis" description="Natural-language intent DEX aggregator with a keyless MCP server for AI agents" type="http" url="https://mcp.ophis.fi/mcp" /> </TabItem> </Tabs>

Example Usage

Once Ophis is configured, you can describe a swap in plain language and ask goose to prepare an order. Here are some examples:

Parse an intent

Parse this swap intent: "swap 100 USDC for ETH on Base".

Get a quote

Get a quote to swap 0.5 WETH for USDC on Arbitrum.

List supported chains

Which chains does Ophis support?

The server returns a quote and an unsigned order. The actual trade is signed by your own wallet, so no keys or funds are ever shared with the extension.

Resources