
A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A TypeScript MCP server built with fastmcp that lets MCP-compatible clients fetch quotes and build swap transactions across multiple chains using OpenOcean's aggregation API.
OpenOcean MCP Server for DEX token swaps is cataloged as an MCP server attributed to openocean-finance. A TypeScript MCP server built with fastmcp that lets MCP-compatible clients fetch quotes and build swap transactions across multiple chains using OpenOcean's aggregation API. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for OpenOcean MCP Server for DEX token swaps are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Amounts use token decimals, so 1 USDT is entered as 1000000 to account for 10^6 decimals.
Slippage is a percentage between 0.05 and 50, with 1 meaning 1%.
README.md · 305f569754ab · Fetched 2026-11-13 13:31:28 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
An MCP server for executing token swaps across multiple decentralized exchanges using OpenOcean's aggregation API.
This project implements a Model Context Protocol (MCP) server to interact with decentralized exchanges (DEXs). It allows MCP-compatible clients (like AI assistants, IDE extensions, or custom applications) to access functionalities such as getting quotes for swaps and executing swaps across multiple chains.
This server is built using TypeScript and fastmcp.
The server exposes the following tools that MCP clients can utilize:
CHAIN_LIST: Fetch chain list.
GAS_PRICE: Fetch gas price.
chain (string)QUOTE: Fetch a quote for a swap.
chain (string), inTokenAddress (string), outTokenAddress (string), amount (string), slippage (string)SWAP: Building swap transaction.
chain (string), inTokenAddress (string), outTokenAddress (string), amount (string), slippage (string), account (string)GET_TRANSACTION: Fetch transaction info.
chain (string), hash (string)TOKEN_LIST: Fetch token list.
chain (string)DEX_LIST: Fetch dex list.
chain (string)chain: The chain code of the DEX.inTokenAddress: The token you want to sell.outTokenAddress: The token you want to buy.amount: Token amount with decimals. For example, if 1 USDT is input, use 1000000 (1 USDT * 10^6).slippage: Define the acceptable slippage level by inputting a percentage value within the range of 0.05 to 50. 1% slippage set as 1.account: user's wallet address.hash: Hash from the OpenOcean contract on the blockchain.There are a few ways to use openocean-mcp:
1. Using pnpm dlx (Recommended for most MCP client setups):
You can run the server directly using pnpm dlx without needing a global installation. This is often the easiest way to integrate with MCP clients. See the "Running the Server with an MCP Client" section for examples.
(pnpm dlx is pnpm's equivalent of npx)
2. Global Installation from npm (via pnpm):
Install the package globally to make the openocean-mcp command available system-wide:
pnpm add -g openocean-mcp
3. Building from Source (for development or custom modifications):
Clone the repository:
git clone https://github.com/openocean-finance/openocean-mcp.git
cd openocean-mcp
Install dependencies:
pnpm install
Build the server:
This compiles the TypeScript code to JavaScript in the dist directory.
pnpm run build
The prepare script also runs pnpm run build, so dependencies are built upon installation if you clone and run pnpm install.
This MCP server may require certain environment variables to be set by the MCP client that runs it. These are typically configured in the client's MCP server definition (e.g., in a mcp.json file for Cursor, or similar for other clients).
MCP clients (like AI assistants, IDE extensions, etc.) will run this server as a background process. You need to configure the client to tell it how to start your server.
Below is an example configuration snippet that an MCP client might use (e.g., in a mcp_servers.json or similar configuration file). This example shows how to run the server using the published npm package via pnpm dlx.
{
"mcpServers": {
"openocean-mcp-server": {
"command": "pnpm",
"args": ["dlx", "openocean-mcp"]
}
}
}
Alternative if Globally Installed:
If you have installed openocean-mcp globally (pnpm add -g openocean-mcp), you can simplify the command and args:
{
"mcpServers": {
"openocean-mcp-server": {
"command": "openocean-mcp",
"args": []
}
}
}
command: The executable to run.
pnpm dlx: "pnpm" (with "dlx" as the first arg)"openocean-mcp"args: An array of arguments to pass to the command.
pnpm dlx: ["dlx", "openocean-mcp"][]env: An object containing environment variables to be set when the server process starts. This is where you provide any necessary environment variables.workingDirectory: Generally not required when using the published package via pnpm dlx or a global install, as the package should handle its own paths correctly. If you were running from source (node dist/index.js), then setting workingDirectory to the project root would be important.Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for OpenOcean MCP Server for DEX token swaps from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/openocean-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.