JUHE API Marketplace
0xobedient avatar
MCP Server

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.

3
GitHub Stars
3/10/2026
Last Updated
No Configuration
Please check the documentation below.
  1. Home
  2. MCP Servers
  3. okx-mcp

README Documentation

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.

Quick Actions

View on GitHubView All Servers

Key Features

Model Context Protocol
Secure Communication
Real-time Updates
Open Source

Boost your projects with Wisdom Gate LLM API

Supporting GPT-5, Claude-4, DeepSeek v3, Gemini and more.

Enjoy a free trial and save 20%+ compared to official pricing.

Learn More
JUHE API Marketplace

Accelerate development, innovate faster, and transform your business with our comprehensive API ecosystem.

JUHE API VS

  • vs. RapidAPI
  • vs. API Layer
  • API Platforms 2025
  • API Marketplaces 2025
  • Best Alternatives to RapidAPI

For Developers

  • Console
  • Collections
  • Documentation
  • MCP Servers
  • Free APIs
  • Temp Mail Demo

Product

  • Browse APIs
  • Suggest an API
  • Wisdom Gate LLM
  • Global SMS Messaging
  • Temp Mail API

Company

  • What's New
  • Welcome
  • About Us
  • Contact Support
  • Terms of Service
  • Privacy Policy
Featured on Startup FameFeatured on Twelve ToolsFazier badgeJuheAPI Marketplace - Connect smarter, beyond APIs | Product Huntai tools code.marketDang.aiFeatured on ShowMeBestAI
Copyright Ā© 2026 JUHEDATA HK LIMITED - All rights reserved