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

Quick Trial Key

For quick read-only trial, OKX docs currently expose a shared demo key:

Example:

Use your own key for regular usage, stability, and production workflows.

Core Workflow

  1. Confirm endpoint and protocol with help-first probing:
    • uxc https://web3.okx.com/api/v1/onchainos-mcp -h
  2. 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_KEY
    • uxc auth credential set okx-mcp --auth-type api_key --api-key-header OK-ACCESS-KEY --secret-op op://Engineering/okx/OK-ACCESS-KEY
    • uxc auth binding add --id okx-mcp --host web3.okx.com --path-prefix /api/v1/onchainos-mcp --scheme https --credential okx-mcp --priority 100
  3. 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
  4. Inspect operation schema before execution:
    • okx-mcp-cli dex-okx-market-price -h
    • okx-mcp-cli dex-okx-market-token-search -h
    • okx-mcp-cli dex-okx-balance-total-value -h
    • okx-mcp-cli dex-okx-dex-quote -h
  5. Prefer read operations first, then high-impact operations.

Capability Map

ChainIndex Quick Reference

Always prefer runtime discovery (dex-okx-market-price-chains / dex-okx-dex-aggregator-supported-chains / dex-okx-balance-chains) when possible.

Guardrails

References