Submit

XTBApiServer

@MCP-Mirror

a year ago
developer-tools
Mirror of
Overview

what is XTBApiServer?

XTBApiServer is an MCP server that exposes the XTB API using the @sharplygroup/xtb-api-js library, allowing users to interact with their XTB trading accounts through the Model Context Protocol.

how to use XTBApiServer?

To use XTBApiServer, clone the repository, install the dependencies, configure your XTB API credentials in a .env file, build the TypeScript code, and run the server. You can then connect to it using an MCP client like the MCP Inspector.

key features of XTBApiServer?

  • Exposes various account operations such as getting user data and margin levels.
  • Provides calculation operations for commission, margin, and profit estimation.
  • Offers market data operations including trading hours and current quotations.
  • Supports news operations to fetch trading news.
  • Allows trade operations to manage and retrieve user trades.

use cases of XTBApiServer?

  1. Automating trading strategies using the XTB API.
  2. Monitoring account performance and market data in real-time.
  3. Fetching historical trade data for analysis.

FAQ from XTBApiServer?

  • What are the prerequisites to run XTBApiServer?

You need Node.js (version 16 or higher), npm, and an XTB trading account.

  • Is there a demo version available?

Yes, you can set DEMO_ACCOUNT=true in your configuration to use a demo account.

  • Can I use this server for live trading?

Yes, but ensure you understand the risks involved and configure your credentials accordingly.

© 2025 MCP.so. All rights reserved.

Build with ShipAny.