FxSocket

Read-only MetaTrader 4 and 5 accounts: balances, positions, trade history, quotes and candles.

¿Debería usar esto?

Calidad y seguridad

A
Calidad de la descripción
100%
Integridad del esquema
96%
Calidad de los nombres
100%
Riesgo de envenenamiento
100%
Coincidencia de permisos
100%
Cumplimiento del protocolo
100%

Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.

Costo de contexto

~2,354Tokens (definiciones de herramientas)
~1.3 KBTamaño de respuesta típico
Impacto moderado en la atención (1.84% del contexto de 128k)

Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.

Instalar

Instalación con un clic

Agrega esto a tu archivo `claude_desktop_config.json`:

{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.fxsocket.com/mcp"
    }
  }
}

Puntos de conexión remotos

https://mcp.fxsocket.com/mcpstreamable-http

Qué puede hacer

Inventario de herramientas

Herramientas (9)

🟢 Solo lectura🟡 Escritura🔴 Eliminación⚪ Desconocido
🟢list_accounts(include_balances)

Every MT4, MT5 and cTrader account linked to this API key: id, nickname, platform, broker server, login and connection status (connected / connecting / disconnected / error). Call this first: the other tools take its account_id values. Set include_balances to also read each account's live balance, equity and floating profit from its terminal, plus totals per currency; that reads at most 50 accounts, and one that cannot be read gets a balance_error instead of failing the call. For one account's margin, leverage and settings, use get_account instead.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "include_balances": {
      "type": "boolean",
      "default": false,
      "description": "Also read live balance, equity and floating profit from each account's terminal (one extra read per account, so slower)."
    }
  },
  "additionalProperties": false
}
🟢get_account(account_id)

One account in full, read live from its terminal: financials (balance, equity, margin, free margin, margin level, leverage, currency), account settings (margin mode, stop-out level, whether trading is allowed) and terminal health (broker connection, login state, and in health.account.authError the broker's reason when it refused the login, e.g. Invalid account for a wrong password). Takes one account_id from list_accounts; if part of the read fails, the rest is still returned and the failure is listed under errors. For balance and equity across several accounts at once, use list_accounts with include_balances; for positions, use get_open_positions.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "format": "uuid",
      "description": "An account_id from list_accounts."
    }
  },
  "required": [
    "account_id"
  ],
  "additionalProperties": false
}
🟢get_open_positions(account_ids, symbol, kind)

Open positions and pending orders on one or more accounts, newest first, with per-account counts, floating profit and swap, and totals per currency. Lists at most 300 orders across all accounts; counts and totals always cover everything. Narrow it with symbol (EURUSD also matches EURUSD.sd) and kind (position or pending); omit account_ids to read every account. Only what is open now: for closed trades, win rate or realised profit, use get_trade_history.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "account_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "minItems": 1,
      "description": "Account ids from list_accounts. Omit to read every account this key can see."
    },
    "symbol": {
      "type": "string",
      "description": "Only this instrument. Matches broker suffixes too, so EURUSD also matches EURUSD.sd and EURUSDm."
    },
    "kind": {
      "type": "string",
      "enum": [
        "any",
        "position",
        "pending"
      ],
      "default": "any",
      "description": "position = filled trades, pending = resting limit/stop orders."
    }
  },
  "additionalProperties": false
}
🟢get_trade_history(account_ids, from, to, symbol)

Closed positions (one row per round trip) on one or more accounts, with per-account stats: trade count, wins, losses, win rate, net profit after commission and swap, best and worst trade, and a per-symbol breakdown. Defaults to the last 7 days; the window can be up to 366 days. Lists at most 300 trades across all accounts, newest first; the stats always cover the whole window. Each trade has its open and close price and time and the stop-loss and take-profit it closed with (sl, tp; 0 = not set, and always 0 on cTrader). For positions that are still open, use get_open_positions.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "account_ids": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "minItems": 1,
      "description": "Account ids from list_accounts. Omit to read every account this key can see."
    },
    "from": {
      "type": "string",
      "description": "Start of the window. Date (YYYY-MM-DD) or ISO-8601 datetime, in the broker's server time."
    },
    "to": {
      "type": "string",
      "description": "End of the window (a bare date includes that whole day). Defaults to now. Date (YYYY-MM-DD) or ISO-8601 datetime, in the broker's server time."
    },
    "symbol": {
      "type": "string",
      "description": "Only this instrument. Matches broker suffixes too, so EURUSD also matches EURUSD.sd and EURUSDm."
    }
  },
  "additionalProperties": false
}
🟢search_symbols(account_id, query, limit)

Find the exact symbol names an account's broker uses, by case-insensitive substring. Brokers spell instruments differently (EURUSD, EURUSD.sd, EURUSDm, XAUUSD.r), so look a name up here before calling get_quotes, get_symbol_info or get_price_history. Returns up to limit names (default 100) with how many matched and whether the list was cut; names only, one symbol's contract details come from get_symbol_info.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "format": "uuid",
      "description": "An account_id from list_accounts."
    },
    "query": {
      "type": "string",
      "description": "Case-insensitive substring, e.g. EUR or XAU. Omit to list all."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 500,
      "default": 100,
      "description": "Most names to return; truncated says whether more matched."
    }
  },
  "required": [
    "account_id"
  ],
  "additionalProperties": false
}
🟢get_quotes(account_id, symbols)

Latest bid, ask and spread for up to 20 symbols, read live from this account's terminal, so prices are the broker's own. A symbol the broker does not know is listed under errors while the others still return; if none resolve, the call fails. The current price only: for past prices use get_price_history, for contract size, swaps or sessions use get_symbol_info.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "format": "uuid",
      "description": "An account_id from list_accounts."
    },
    "symbols": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "minItems": 1,
      "maxItems": 20,
      "description": "Exact broker symbol names (see search_symbols)."
    }
  },
  "required": [
    "account_id",
    "symbols"
  ],
  "additionalProperties": false
}
🟢get_symbol_info(account_id, symbol)

Contract specification for one symbol at this account's broker, read live from its terminal: digits, contract size, tick size and value, minimum/maximum/step volume, stops level, current spread, swap rates, commissions and trading sessions. symbol must be the broker's exact name, so look it up with search_symbols first; an unknown symbol fails the call with the terminal's reason. For just the live bid and ask of several symbols, get_quotes is lighter.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "format": "uuid",
      "description": "An account_id from list_accounts."
    },
    "symbol": {
      "type": "string",
      "description": "Exact broker symbol name (see search_symbols)."
    }
  },
  "required": [
    "account_id",
    "symbol"
  ],
  "additionalProperties": false
}
🟢get_price_history(account_id, symbol, timeframe, from, to, ...)

OHLC candles for one symbol from this account's broker. Returns the most recent `limit` bars (default 100, max 500) in the window; omit from/to for the latest bars. A window spanning more than 20000 bars is refused (narrow it or pick a larger timeframe). For the current price only, use get_quotes.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "format": "uuid",
      "description": "An account_id from list_accounts."
    },
    "symbol": {
      "type": "string",
      "description": "Exact broker symbol name (see search_symbols)."
    },
    "timeframe": {
      "type": "string",
      "enum": [
        "M1",
        "M5",
        "M15",
        "M30",
        "H1",
        "H4",
        "D1",
        "W1",
        "MN1"
      ],
      "description": "Bar size, M1 to MN1. The same nine on MT4, MT5 and cTrader."
    },
    "from": {
      "type": "string",
      "description": "Start of the window. Date (YYYY-MM-DD) or ISO-8601 datetime, in the broker's server time."
    },
    "to": {
      "type": "string",
      "description": "End of the window. Defaults to now. Date (YYYY-MM-DD) or ISO-8601 datetime, in the broker's server time."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 500,
      "default": 100
    }
  },
  "required": [
    "account_id",
    "symbol",
    "timeframe"
  ],
  "additionalProperties": false
}
🟢get_journal(account_id, kind, since, limit)

The journal of one cTrader account, newest first: when it signed in at cTrader, became ready to trade, lost and regained its connection, and when its access was refreshed or refused; and every order, change and close the bridge carried out, with the request, the outcome (retcode, order, deal, position, or the error), the time it took, the caller's clientOrderId and User-Agent. Use it to answer why an account stopped trading or who sent a trade. The bridge keeps it in memory, at most 7 days and 1000 entries, and a bridge restart starts it afresh, so for the full record of closed trades use get_trade_history. cTrader accounts only.

Esquema de entrada

{
  "type": "object",
  "properties": {
    "account_id": {
      "type": "string",
      "format": "uuid",
      "description": "An account_id from list_accounts."
    },
    "kind": {
      "type": "string",
      "enum": [
        "any",
        "connection",
        "trade"
      ],
      "default": "any",
      "description": "connection (the link to cTrader), trade (trade requests), or any."
    },
    "since": {
      "type": "string",
      "description": "Only entries at or after this moment (UTC). Date (YYYY-MM-DD) or ISO-8601 datetime, in the broker's server time."
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200,
      "default": 50
    }
  },
  "required": [
    "account_id"
  ],
  "additionalProperties": false
}

Comunidad

Califica este servidor

Evidencia

Observaciones recientes

verificadoversión no registrada9 herramientas
requiere autenticaciónversión no registrada—
requiere autenticaciónversión no registrada—
requiere autenticaciónversión no registrada—