OKX-DEX-SDK MCP SSE Server
Integrates with OKX DEX API to execute swap trades, generate swap instructions, fetch price quotes, and retrieve supported tokens and liquidity pool data on the Solana blockchain.
Provides DEX trading capabilities on the Solana blockchain, including swap trades execution, instruction generation, and liquidity pool data retrieval.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@OKX-DEX-SDK MCP SSE Serverget price quote for swapping SOL to USDC on Solana"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: Model Context Protocol Server for Solana Client
š¦ 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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA Model-Context-Protocol server enabling users to perform basic operations on Solana and Ethereum blockchains through simple RPC endpoints.95Apache 2.0
- AlicenseBqualityDmaintenanceA server that enables interaction with the Solana blockchain, providing access to over 40 Solana RPC methods including getting balances, transaction details, block information, and sending transactions.444MIT
- Alicense-qualityDmaintenanceA server that enables interaction with the Solana blockchain using your own private key, supporting operations like getting wallet information, checking balances, and transferring SOL.1510MIT
- Alicense-qualityDmaintenanceA Solana blockchain interaction server that allows AI tools to query blockchain data using natural language, access structured token information, and generate human-readable explanations of complex blockchain concepts.6MIT
Related MCP Connectors
Broker + MCP server for last-bidder-wins on-chain games on Solana via x402 micropayments.
Cross-network DeFi API data, AMM analytics, and SDK docs for 17+ networks.
Delora MCP server for cross-chain quotes, supported chains, tokens, and tools.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/0xobedient/okx-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server