Skip to content

Skills Hub

The XBTFX Skills Hub gives AI agents the ability to trade forex, crypto, metals, indices, stocks, and energies on your XBTFX MetaTrader 5 account. Each skill is a structured SKILL.md file containing endpoint documentation, parameter schemas, example requests, and behavioral guidelines.

GitHub: XBTFX/xbtfx-skills-hub

Create an XBTFX account at my.xbtfx.com and manage API keys at console.xbtfx.com.

SkillTypeDescription
TradingRead/WriteOpen, close, modify, reverse, and close-by positions
AccountRead-onlyBalance, equity, margin, leverage, positions, orders, history
Market DataRead-onlySymbol specs, swap rates, margin requirements, live bid/ask
WebSocketRead-onlyReal-time streaming quotes via wss://ws.xbtfx.com/v1/ws
Terminal window
git clone https://github.com/XBTFX/xbtfx-skills-hub.git
export XBTFX_API_KEY="xbtfx_live_your_key_here"
# Give Claude Code the trading skill
claude --skill ./skills/xbtfx/xbtfx-trading/SKILL.md

Or use the MCP Server for automatic tool discovery:

Terminal window
claude mcp add xbtfx-trading -e XBTFX_API_KEY=your_key -- npx @xbtfx/mcp-trading
PlatformHow to use
Claude Code--skill SKILL.md or MCP server
Claude DesktopMCP server via claude_desktop_config.json
CursorMCP server via .cursor/mcp.json
OpenAI CodexMCP server via codex mcp add
WindsurfMCP server via settings
LangChain / CrewAIIngest SKILL.md as tool description
Custom agentsParse structured markdown or use MCP

A skill is a structured markdown file with YAML frontmatter and human-readable instructions. It provides everything an AI agent needs to use a specific set of API endpoints:

  • Frontmatter — name, description, required environment variables
  • When to use / When not to use — helps agents select the right skill
  • Endpoint reference — methods, paths, parameters, response schemas
  • Code examples — ready-to-use request/response pairs
  • Agent guidelines — behavioral rules for safe and correct operation
skills/xbtfx/
xbtfx-trading/ # Open, close, modify, reverse positions
xbtfx-account/ # Balance, equity, margin, trade history
xbtfx-market-data/ # Symbols, contract specs, live quotes
xbtfx-websocket/ # Real-time price feeds and position updates

Each directory contains a SKILL.md file that can be loaded independently by any agent framework.

Skills HubMCP Server
FormatMarkdown filesnpm package
IntegrationAny agent frameworkMCP-compatible clients
Tool discoveryManual (point agent at file)Automatic
Best forLangChain, CrewAI, custom agentsClaude Code, Cursor, Codex

Both provide access to the same XBTFX Trading API. Use whichever fits your agent framework.