概览
What is Oanda MCP Server?
A REST API server for Oanda trading operations, deployed on Railway and compatible with Model Context Protocol (MCP).
How to use Oanda MCP Server?
Configure environment variables: OANDA_API_KEY, OANDA_ACCOUNT_ID, and OANDA_ENVIRONMENT (set to 'practice' or 'live'). The server exposes endpoints such as GET /account for account info, POST /order/market for market orders, and DELETE /order/{order_id} to cancel orders.
Key features of Oanda MCP Server
- Account information retrieval
- Position management
- Market and limit order placement
- Current price data retrieval
- Historical data retrieval
- Order cancellation
Use cases of Oanda MCP Server
- Retrieve account balance and details
- Get current open positions
- Place market or limit orders programmatically
- Fetch real-time price for an instrument
- Cancel pending orders
FAQ from Oanda MCP Server
What environment variables are required?
OANDA_API_KEY, OANDA_ACCOUNT_ID, and OANDA_ENVIRONMENT (practice or live). PORT is set automatically by Railway.
How is authentication handled?
Authentication uses the OANDA_API_KEY environment variable.
Does it support both practice and live trading?
Yes, by setting OANDA_ENVIRONMENT to 'practice' or 'live'.
What network transport does the server use?
HTTP/REST endpoints, compliant with Model Context Protocol.
Can I fetch historical price data?
Yes, via the GET /historical/{instrument} endpoint.