XTBApiServer
by MCP-Mirror
This is an MCP server that exposes the XTB API using the `@sharplygroup/xtb-api-js` library. It allows you to interact with your XTB trading account through the Model Context Protocol.
Last updated: N/A
What is XTBApiServer?
This server acts as a bridge between the XTB trading platform and MCP (Model Context Protocol) clients. It exposes the XTB API, enabling users to access and manage their trading accounts programmatically through MCP.
How to use XTBApiServer?
To use this server, you need to install it, configure it with your XTB API credentials, and run it. Then, you can connect to it using an MCP client like the MCP Inspector. The server exposes various tools and prompts for interacting with your XTB account.
Key features of XTBApiServer
Exposes XTB API via MCP
Supports account operations, market data retrieval, and trade execution
Provides tools for calculating profit, margin, and commission
Offers prompts for retrieving account data and symbol information
Use cases of XTBApiServer
Automated trading strategies
Real-time market data analysis
Account monitoring and reporting
Integration with other financial applications
FAQ from XTBApiServer
What is the Model Context Protocol (MCP)?
What is the Model Context Protocol (MCP)?
MCP is a protocol for communication between applications, enabling them to share data and functionality.
What are the prerequisites for running this server?
What are the prerequisites for running this server?
You need Node.js (version 16 or higher), npm, and an XTB trading account.
How do I configure the server with my XTB API credentials?
How do I configure the server with my XTB API credentials?
Create a .env
file in the project directory and add your USER_ID
, PASSWORD
, and DEMO_ACCOUNT
settings.
How do I connect to the server using an MCP client?
How do I connect to the server using an MCP client?
Use an MCP client like the MCP Inspector, select "stdio" as the transport type, and connect to the running server process.
What are the risks involved in using this server with a live trading account?
What are the risks involved in using this server with a live trading account?
As with any automated trading system, there are risks involved, including potential losses due to programming errors, market volatility, and unexpected API behavior. Use at your own risk.