okx-mcp-skill
OKX MCP Skill
Use this skill to run OKX MCP operations through uxc.
Reuse the uxc skill for shared protocol discovery, output parsing, and generic auth/binding flows.
Prerequisites
uxcis installed and available inPATH.- Network access to
https://web3.okx.com/api/v1/onchainos-mcp. - OKX Onchain API key is available for real calls.
Quick Trial Key
For quick read-only trial, OKX docs currently expose a shared demo key:
d573a84c-8e79-4a35-b0c6-427e9ad2478d
Example:
uxc auth credential set okx-mcp --auth-type api_key --api-key-header OK-ACCESS-KEY --secret d573a84c-8e79-4a35-b0c6-427e9ad2478d
Use your own key for regular usage, stability, and production workflows.
Core Workflow
- Confirm endpoint and protocol with help-first probing:
uxc https://web3.okx.com/api/v1/onchainos-mcp -h
- Configure credential/binding for repeatable auth:
uxc auth credential set okx-mcp --auth-type api_key --api-key-header OK-ACCESS-KEY --secret-env OKX_ACCESS_KEYuxc auth credential set okx-mcp --auth-type api_key --api-key-header OK-ACCESS-KEY --secret-op op://Engineering/okx/OK-ACCESS-KEYuxc auth binding add --id okx-mcp --host web3.okx.com --path-prefix /api/v1/onchainos-mcp --scheme https --credential okx-mcp --priority 100
- Use fixed link command by default:
command -v okx-mcp-cli- If missing, create it:
uxc link okx-mcp-cli https://web3.okx.com/api/v1/onchainos-mcp okx-mcp-cli -h
- Inspect operation schema before execution:
okx-mcp-cli dex-okx-market-price -hokx-mcp-cli dex-okx-market-token-search -hokx-mcp-cli dex-okx-balance-total-value -hokx-mcp-cli dex-okx-dex-quote -h
- Prefer read operations first, then high-impact operations.
Capability Map
- Market:
dex-okx-market-pricedex-okx-market-tradesdex-okx-market-candlesticksdex-okx-market-candlesticks-historydex-okx-index-current-pricedex-okx-index-historical-price
- Token discovery/enrichment:
dex-okx-market-token-searchdex-okx-market-token-rankingdex-okx-market-token-holderdex-okx-market-token-basic-infodex-okx-market-token-price-info
- Wallet:
dex-okx-balance-chainsdex-okx-balance-total-valuedex-okx-balance-total-token-balancesdex-okx-balance-specific-token-balance
- Swap:
dex-okx-dex-aggregator-supported-chainsdex-okx-dex-liquiditydex-okx-dex-quotedex-okx-dex-approve-transactiondex-okx-dex-swapdex-okx-dex-solana-swap-instruction
ChainIndex Quick Reference
- Ethereum:
1 - BSC:
56 - XLayer:
196 - Solana:
501 - Base:
8453 - Arbitrum:
42161
Always prefer runtime discovery (dex-okx-market-price-chains / dex-okx-dex-aggregator-supported-chains / dex-okx-balance-chains) when possible.
Guardrails
- Keep automation on JSON output envelope; do not rely on
--text. - Parse stable fields first:
ok,kind,protocol,data,error. - Use
okx-mcp-clias default command path. okx-mcp-cli <operation> ...is equivalent touxc https://web3.okx.com/api/v1/onchainos-mcp <operation> ....- If call result contains
Request header OK-ACCESS-KEY can not be empty:- confirm auth binding matches endpoint with
uxc auth binding match https://web3.okx.com/api/v1/onchainos-mcp - update credential with explicit header:
uxc auth credential set okx-mcp --auth-type api_key --api-key-header OK-ACCESS-KEY --secret-env OKX_ACCESS_KEY - confirm credential has a secret source (
--secret-env,--secret-op, or literal--secret)
- confirm auth binding matches endpoint with
- For high-impact operations require explicit user confirmation:
dex-okx-dex-approve-transactiondex-okx-dex-swapdex-okx-dex-solana-swap-instruction
- Solana caveat from OKX docs:
- for market candles/trades, use wSOL token address
So11111111111111111111111111111111111111112 - for some price contexts, SOL system address
11111111111111111111111111111111may also appear in docs - when data is empty on Solana, verify operation-level address expectation first.
- for market candles/trades, use wSOL token address
References
- Invocation patterns:
references/usage-patterns.md
More from holon-run/uxc
chrome-devtools-mcp-skill
Use Chrome DevTools MCP through UXC over local stdio for page navigation, DOM/a11y snapshots, network inspection, console inspection, and performance tooling, with a live-browser autoConnect default and optional browserUrl or isolated fallback modes.
53playwright-mcp-skill
Run browser automation through @playwright/mcp over UXC stdio MCP, with daemon-friendly session reuse and safe action guardrails. Use when tasks need deterministic page navigation, DOM snapshots, and scripted browser interaction from CLI.
49uxc
Discover and call remote schema-exposed interfaces with UXC. Use when an agent or skill needs to list operations, inspect operation schemas, and execute OpenAPI, GraphQL, gRPC, MCP, or JSON-RPC calls via one CLI contract.
44dune-mcp-skill
Use Dune MCP through UXC for blockchain table discovery, SQL query creation/execution, execution result retrieval, and visualization with help-first schema inspection, explicit auth binding, and guarded credit-consuming operations.
28context7-mcp-skill
Query up-to-date library documentation and code examples using Context7 MCP. Use when you need current, version-specific documentation for npm packages, Python libraries, or other programming languages.
26etherscan-mcp-skill
Use Etherscan MCP through UXC for address balance checks, token holder analysis, transaction inspection, and contract lookup tasks. Use when tasks need Etherscan MCP tools for onchain investigation with help-first schema inspection, bearer-key auth, and tier-aware read-first handling.
25