MCP server

Connect Claude to your MT5 account.

Your AI reads balances, positions, history and prices through Pipwire, on an address that can never place a trade.

Run once in your terminal.

claude mcp add --transport http pipwire https://api.pipwire.io/mcp \
  --header "Authorization: Bearer YOUR_READ_KEY"

Server: https://api.pipwire.io/mcp · Streamable HTTP · key in the Authorization header

Set up in three steps.

  1. 1

    Connect MT5

    Create a Pipwire account and connect your MT5 login. It runs on its own hosted terminal.

  2. 2

    Create a Read key

    On the API keys page, choose Read. It can see your accounts and nothing else.

  3. 3

    Add it to your AI app

    Copy the command or config for your app (above) and put your key in place of YOUR_READ_KEY.

Claude and Claude Code are trademarks of Anthropic, Cursor of Anysphere, and Visual Studio Code of Microsoft. Pipwire is not affiliated with them.

Ask it anything about your MT5 accounts.

Your AI picks the right tool for each question. Answers come from the account's own terminal, in UTC.

  • “What's my floating P/L on XAUUSD right now?”→get_positions
  • “List last week's closed trades and total them.”→get_deal_history
  • “How much free margin do I have on my live account?”→get_account
  • “Pull 200 one-hour candles of EURUSD and describe the trend.”→get_candles
  • “Did any of my accounts disconnect today?”→get_account_events

10 tools. All of them read.

Accounts

list_accounts
Every connected MT5 account, with status, balance and equity.
get_account
Live balance, equity, margin, free margin and leverage.
get_account_events
Connections, disconnections and restarts, newest first.

Trades & history

get_positions
Open positions with stops, targets and floating profit.
get_deal_history
Closed deals in a time range, for realised P/L.
get_order_history
Filled, rejected and canceled orders in a time range.

Market data

get_price
Latest bid and ask from the account's own terminal.
get_candles
OHLC candles from 1 minute to monthly, up to 1,000 per call.
search_symbols
The broker's symbol names, e.g. XAUUSD+ for gold.
get_symbol
Contract size, lot limits, digits and tick value.

Read-only by design.

No tool at this address acts, so even a key with trade permission can't trade through it.

Your AI can

  • Read balances, equity and margin
  • See open positions and their P/L
  • Pull deal and order history
  • Get live prices and candles
  • Look up symbols and contract specs

It can't

  • Place, change or close orders
  • Connect, pause or delete accounts
  • Change broker passwords
  • See accounts outside your workspace
  • Make more than 120 calls a minute

MCP questions

Can the AI place or close trades through Pipwire's MCP server?
No. This address only has reading tools: there is no tool that places, changes or closes an order, so even a key with trade permission can't trade through it.
Which AI apps work with it?
Any app that supports remote MCP servers with a header: Claude Code, Cursor, VS Code and Claude Desktop (through the mcp-remote bridge). One-click sign-in for claude.ai and ChatGPT is coming.
What does it cost?
Nothing extra. You pay for the MT5 accounts you connect: $5 per account a month to read, billed only for days connected.
Is my API key safe?
Use a Read key: it can't change accounts or trade anywhere. The key travels in a header over HTTPS, never in the URL, and you can revoke it in one click.
Is there a limit?
120 calls a minute per key, and up to 1,000 candles per call, so a looping agent can't run away with your terminal.

Give your AI your MT5 numbers.

From $5 a month per account. The MCP server is included.