
OKX-DEX-SDK MCP SSE Server
An SSE (Server-Sent Events) server that leverages OKX DEX SDK to support DEX trading operations on Solana blockchain and cross-chain bridge transactions.
README
OKX-DEX-SDK MCP SSE SERVER EXAMPLE
This is an example implementation of an SSE (Server-Sent Events) MCP server that leverages @okx-dex/okx-dex-sdk to support DEX trading and cross-chain bridge operations.
🚀 Features
DEX API
Built for the Solana blockchain, the DEX API supports:
- Executing swap trades
- Generating swap instructions
- Fetching price quotes
- Retrieving supported tokens and liquidity pool (LP) data
Bridge API
Enables cross-chain functionality, including:
- Fetching supported bridgeable tokens and chains
- Performing cross-chain bridge transactions
- Retrieving cross-chain price quotes
📦 Installation
git clone https://github.com/0xobedient/okx-mcp
cd okx-mcp
pnpm install
pnpm run dev
📁 Project Structure
.
├── build/ # Compiled output
├── node_modules/ # Node.js dependencies
├── src/
│ ├── bridge/
│ │ ├── hooks/ # Bridge-specific hooks
│ │ ├── tools/ # Utility functions for bridge
│ │ └── server.ts # SSE server for bridge API
│ ├── dex/
│ │ ├── hooks/ # DEX-specific hooks
│ │ ├── tools/ # Utility functions for DEX
│ │ └── server.ts # SSE server for DEX API
│ └── shared/
│ ├── common/
│ │ ├── okxClient.ts # OKX SDK client wrapper
│ │ └── wallet.ts # Wallet handling logic
│ ├── constants/
│ │ └── index.ts # Constant values used across the app
│ ├── env/
│ │ └── index.ts # Environment variable loader
│ ├── types/
│ │ ├── tool.d.ts # Type definitions for tools
│ │ └── wallet.d.ts # Type definitions for wallet
│ └── main.ts # Application entry point
├── .env.example # Sample environment file
├── .gitignore # Git ignore rules
├── package.json # NPM package metadata
├── pnpm-lock.yaml # Lockfile for pnpm
└── tsconfig.json # TypeScript configuration
🔐 Environment Variables
Create a .env
file at the root of the project using .env.example
as a template:
OKX_API_KEY= # Your OKX API key
OKX_API_SECRET= # Your OKX API secret
OKX_PASSPHRASE= # Your OKX API passphrase
OKX_PROJECT_ID= # Your OKX project ID (if required)
RPC_ENDPOINT_URI= # RPC endpoint URI for Solana or target blockchain
WALLET_PRIVATE_KEY= # Private key for the wallet used in trades
PORT=3000 # Port number for the SSE server
📦 Dependency
This MCP server is entirely built upon the official OKX SDK:
@okx-dex/okx-dex-sdk – the core SDK providing access to OKX DEX trading and bridge functionalities.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.