How to connect Cursor to your HFM account
With TraderWAI, Cursor can read live charts, check your HFM account and prepare orders with stop loss and take profit that you approve. Setup takes a few minutes.
Connect HFM to Cursor in 2 minutes — free1. Add TraderWAI to Cursor
Works in Cursor (Agent).
- In Cursor go to Settings → Tools & MCP → «Add new MCP server».
- Or paste the configuration below into ~/.cursor/mcp.json.
- Click «Login» / «Connect» next to traderwai and sign in with Google.
- Use the chat in Agent mode and ask for what you need.
2. Connect your HFM account
In TraderWAI, add your HFM account with the platform it uses:
MetaTrader 5
Enter your MetaTrader 5 login (account number), the master password and the server name exactly as it appears in MetaTrader. The account is set up in 1–3 minutes.
MetaTrader 5 is included in the Trader plan ($29/month). Charts and analysis are free on every plan.
Detailed guide: Cursor + MetaTrader 5 →MetaTrader 4
Enter your MetaTrader 4 login (account number), the master password and the server name exactly as it appears in MetaTrader. The account is set up in 1–3 minutes.
MetaTrader 4 is included in the Trader plan ($29/month). Charts and analysis are free on every plan.
Detailed guide: Cursor + MetaTrader 4 →The platforms each firm offers can change; check which one your account uses in your HFM dashboard.
3. Ask Cursor
Try one of these in a new chat:
- «Show me the gold H1 chart and tell me where the key levels are.»
- «What positions do I have open and how much am I risking?»
- «Prepare a buy limit on EUR/USD at yesterday's low with a 20-pip stop and a 2R target. I'll approve it.»
HFM and TraderWAI: what to know
- HFM offers MetaTrader 4 and MetaTrader 5, plus HFM WebTrader and the HFM App, which work with the same accounts. TraderWAI connects your HFM MT4 or MT5 account.
- Your trading account ID, trader's password and server arrive by email when you open a live or demo account. MT4 and MT5 credentials are separate: each platform has its own.
- HFM servers are numbered, for example HFMarketsGlobal-Live1 or HFMarketsGlobal-Demo for MT5 and HFMarketsSV-Live Server 3 for MT4; type the one from your email exactly.
- HFM symbol names carry a suffix that depends on the account type, for example EURUSDc on Cent or EURUSDr on Pro accounts, and none on Premium. Ask your AI to list symbols if one isn't found.
- HFM demo accounts come with virtual funds, so you can try your AI on a demo first.
What Cursor can do with your HFM account
- Read live charts in any timeframe, with the indicators you ask for.
- Check your balance, open positions and pending orders.
- Backtest a strategy idea on historical data before risking anything.
- Prepare market, limit and stop orders with stop loss and take profit that you approve.
- Leave conditional orders that TraderWAI watches every minute.
- Respect your risk limits: maximum daily loss and drawdown, risk per trade, size and number of trades.
HFM and Cursor: questions
Can I connect Claude or ChatGPT to HFM?
Yes. Add TraderWAI to Claude or ChatGPT (free plans work) and connect your HFM MT4 or MT5 account with its account ID, trader's password and server. MetaTrader accounts are included from the Trader plan; charts and analysis are free. TraderWAI is independent and not affiliated with HFM.
Which HFM server do I enter?
The one in the email HFM sent when you opened the account (for example HFMarketsGlobal-Live1), written exactly. MT4 and MT5 accounts use different servers and credentials.
Related guides
Other AIs with HFM
- How to connect Claude to your HFM account
- How to connect ChatGPT to your HFM account
- How to connect Grok to your HFM account
- How to connect Gemini to your HFM account
- How to connect Perplexity to your HFM account
TraderWAI is independent software and is not affiliated with HFM. Trading involves risk; TraderWAI does not provide investment advice.