AI istemcilerinin MetaTrader 4, MetaTrader 5 ve cTrader hesap verilerini; bakiyeler, pozisyonlar, işlem geçmişi ve fiyat teklifleri dahil olmak üzere okumasını sağlar.
Ayrıca bilinen adı fxsocket-com/FxSocket-MCP, fxsocket-mcp
- Yıldızlar
- 0
- Araçlar
- 8
- İndirmeler, 30 gün
- —
- En son sürüm
- 1.0.1
- Son commit
- 11 Kas 2026
- Lisans
- MIT
FxSocket MCP nedir?
FxSocket bir MCP sunucusudur. AI istemcilerinin MetaTrader 4, MetaTrader 5 ve cTrader hesap verilerini; bakiyeler, pozisyonlar, işlem geçmişi ve fiyat teklifleri dahil olmak üzere okumasını sağlar. 8 araç sunar; örneğin list_accounts, get_account, get_open_positions.
Özet, projenin README dosyasından oluşturuldu
FxSocket MCP sunucusu hakkında
FxSocket; AI istemcileri ile MetaTrader 4, MetaTrader 5 ve cTrader üzerindeki işlem hesapları arasında salt okunur bir köprü sağlar. Claude Desktop, Cursor, VS Code veya Claude Code kullanan geliştiriciler, yerel bir stdio sunucusu aracılığıyla agent'larını canlı finansal verilere bağlayabilirler. Sistem, bir API key kullanarak mesajları uzak bir uç noktaya ileterek çalışır; bu sayede yerel ayak izini küçük tutarken gerçek zamanlı piyasa bilgilerine erişim sağlar.
Kullanıcılar, performans analizi yapmak için list_accounts, get_open_positions ve get_trade_history gibi özel araçları kullanarak hesaplarıyla etkileşime girebilirler. Sunucu ayrıca get_quotes, get_symbol_info ve get_price_history aracılığıyla piyasa verileri sunar. Sistem kesinlikle salt okunur olduğu için agent; bakiyeleri, pozisyonları ve sembol özelliklerini görüntüleyebilir ancak herhangi bir işlemi yürütemez veya değiştiremez. Servis, kullanıcı başına dakikada 60 isteğe kadar destekler ve güvenli erişim için fxs_ro_ ön ekiyle başlayan salt okunur bir API key gerektirir.
Neler yapabilirsiniz
- 1İşlem performansını analiz edinMevcut kazanma oranınızı ve kâr veya zarar durumunuzu belirlemek için AI'dan kapalı işlemlerinizi incelemesini isteyin.
- 2Canlı piyasa verilerini izleyinBelirli bir döviz sembolü listesi için gerçek zamanlı alış (bid), satış (ask) ve spread bilgilerini talep edin.
- 3Hesap durumunu kontrol edinAgent'tan mevcut öz sermaye (equity) ve toplam bakiyeleriyle birlikte tüm mevcut hesapları listelemesini isteyin.
- 4Sembol özelliklerini araştırınBir sembol için sözleşme büyüklüğü, hacim limitleri ve işlem seansları gibi teknik detayları alın.
Projenin README dosyasından alınmıştır. Her kullanım durumu, oradaki bir alıntı ile kontrol edilir.
FxSocket MCP nasıl yüklenir
Biçimler 10 Kas 2026 tarihinde doğrulandıFxSocket MCP'yi Claude Code içine yükleyin
$ claude mcp add --env FXSOCKET_API_KEY=<YOUR_FXSOCKET_API_KEY> fxsocket-mcp -- docker run -i --rm docker.io/fxsocket/mcp:1.0.1FxSocket MCP'yi Cursor içine yükleyin
~/.cursor/mcp.json
{
"mcpServers": {
"fxsocket-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/fxsocket/mcp:1.0.1"
],
"env": {
"FXSOCKET_API_KEY": "<YOUR_FXSOCKET_API_KEY>"
}
}
}
}FxSocket MCP'yi VS Code içine yükleyin
.vscode/mcp.json
{
"servers": {
"fxsocket-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/fxsocket/mcp:1.0.1"
],
"env": {
"FXSOCKET_API_KEY": "<YOUR_FXSOCKET_API_KEY>"
}
}
}
}FxSocket MCP'yi Claude Desktop içine yükleyin
claude_desktop_config.json
{
"mcpServers": {
"fxsocket-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/fxsocket/mcp:1.0.1"
],
"env": {
"FXSOCKET_API_KEY": "<YOUR_FXSOCKET_API_KEY>"
}
}
}
}FxSocket MCP'yi Codex içine yükleyin
~/.codex/config.toml
[mcp_servers.fxsocket-mcp] command = "docker" args = ["run", "-i", "--rm", "docker.io/fxsocket/mcp:1.0.1"] [mcp_servers.fxsocket-mcp.env] FXSOCKET_API_KEY = "<YOUR_FXSOCKET_API_KEY>"
FxSocket MCP'yi Gemini CLI içine yükleyin
~/.gemini/settings.json
{
"mcpServers": {
"fxsocket-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"docker.io/fxsocket/mcp:1.0.1"
],
"env": {
"FXSOCKET_API_KEY": "<YOUR_FXSOCKET_API_KEY>"
}
}
}
}FxSocket MCP araçları 8
README dosyasından algılandılist_accountsget_accountget_open_positionsget_trade_historysearch_symbolsget_quotesget_symbol_infoget_price_history
| list_accounts | — | |
| get_account | — | |
| get_open_positions | — | |
| get_trade_history | — | |
| search_symbols | — | |
| get_quotes | — | |
| get_symbol_info | — | |
| get_price_history | — |
Yapılandırma
FXSOCKET_API_KEYGerekliGizliFxSocket API key. A read-only key (fxs_ro_...) is enough: https://app.fxsocket.com/dashboard/api-key
| Ad | Açıklama | Sunucu |
|---|---|---|
| FXSOCKET_API_KEY | FxSocket API key. A read-only key (fxs_ro_...) is enough: https://app.fxsocket.com/dashboard/api-key | GerekliGizli |
Otomatik kontroller
Çalıştırıldı 12 Kas 2026Tam rapor →Otomatik kontrollerimizden geçti. Bu bir güvenlik denetimi değildir: kodu okuyun ve sunucuya ihtiyaç duyduğu en dar erişimi verin. Kontroller nasıl çalışır
- Kaynak deposu bağlantılı ve erişilebilirGeçti
- Açık kaynak lisansı (OSI)Geçti
- Son bir yıl içinde commit veya sürüm mevcutGeçti
- Paket adı popüler bir pakete yakın değilKontrol edilmedi
- Uzak uç nokta HTTPS kullanıyorGeçti
- Yıkıcı araçlar etiketlenmişGeçti
- Modele yönelik gizli talimat yokGeçti
- Pakette ve bağımlılıklarında kritik uyarı yokKontrol edilmedi
FxSocket MCP
Lets Claude, Cursor, VS Code and other MCP clients read your MetaTrader 4, MetaTrader 5 and cTrader accounts on FxSocket: balances, open positions, closed trades with win rate and P/L, quotes, symbol specifications and price history. It is read-only. It cannot place, modify or close orders.
This image runs FxSocket's MCP server as a local stdio server, for
clients that start their servers themselves (Claude Desktop, Docker's MCP
Toolkit, or anything configured with a command). It relays each message
to https://mcp.fxsocket.com/mcp with your API key. The tools run on
FxSocket, next to the terminals your accounts are connected to, so the
image stays tiny and never needs updating when tools change.
If your client takes a remote server URL plus a header, you can skip the
image: point it at https://mcp.fxsocket.com/mcp with your key in an
X-API-Key header.
1. Get an API key
Create a read-only key (fxs_ro_...) at
app.fxsocket.com/dashboard/api-key.
A named key scoped to some of your accounts limits the agent to exactly
those. A full fxs_live_... key works too, but an agent has no use for one.
2. Add it to your client
Claude Desktop (Settings, Developer, Edit Config, then restart):
{
"mcpServers": {
"fxsocket": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "FXSOCKET_API_KEY", "fxsocket/mcp"],
"env": { "FXSOCKET_API_KEY": "fxs_ro_..." }
}
}
}
Claude Code:
claude mcp add fxsocket -e FXSOCKET_API_KEY=fxs_ro_... -- docker run -i --rm -e FXSOCKET_API_KEY fxsocket/mcp
Cursor (~/.cursor/mcp.json):
{
"mcpServers": {
"fxsocket": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "FXSOCKET_API_KEY", "fxsocket/mcp"],
"env": { "FXSOCKET_API_KEY": "fxs_ro_..." }
}
}
}
VS Code (.vscode/mcp.json, prompts for the key once):
{
"inputs": [
{ "type": "promptString", "id": "fxsocket-key", "description": "FxSocket API key", "password": true }
],
"servers": {
"fxsocket": {
"type": "stdio",
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "FXSOCKET_API_KEY", "fxsocket/mcp"],
"env": { "FXSOCKET_API_KEY": "${input:fxsocket-key}" }
}
}
}
-e FXSOCKET_API_KEY without a value passes the variable through from the
client's env, so the key never appears in the process list.
Without Docker: the relay is one file with no dependencies. Download
fxsocket_mcp.py and use python3 (3.10 or newer) as
the command with the file's path as the argument, keeping the same env.
Tools
| Tool | What it answers |
|---|---|
list_accounts |
Every account the key can see, optionally with balance, equity and totals per currency. Call first. |
get_account |
One account in full: summary, broker info and terminal status. |
get_open_positions |
Open positions and pending orders across accounts, with floating P/L and swap. |
get_trade_history |
Closed trades for a period, with wins, losses, win rate, net P/L and a per-symbol breakdown. |
search_symbols |
Find the broker's exact symbol name (EURUSD, EURUSD.sd, EURUSDm...). |
get_quotes |
Live bid/ask and spread for up to 20 symbols. |
get_symbol_info |
Contract specification: digits, contract size, volume limits, swaps, sessions. |
get_price_history |
OHLC candles for a symbol and timeframe. |
Amounts are in each account's deposit currency and are never summed across currencies. Times are broker server time.
Configuration
| Variable | Default | |
|---|---|---|
FXSOCKET_API_KEY |
(required) | Your FxSocket API key. |
FXSOCKET_MCP_URL |
https://mcp.fxsocket.com/mcp |
The server to relay to. Plain http is only allowed to localhost. |
FXSOCKET_MCP_TIMEOUT |
120 |
Seconds to wait for one reply. |
FXSOCKET_MCP_LOG |
info |
error, warning, info or debug. Logs go to stderr. |
FxSocket allows 60 MCP requests a minute per user.
How it works
The client writes newline-delimited JSON-RPC to the container's stdin. The relay POSTs each message to the MCP endpoint over a kept-alive HTTPS connection, adds the API key and the headers the protocol requires, and writes the replies to stdout. It handles both protocol eras:
- 2026-07-28: the protocol version travels in each request's
_meta, and the relay mirrors it into theMCP-Protocol-Version,Mcp-MethodandMcp-Nameheaders (plus anyx-mcp-headertool parameters). - 2025-03-26 to 2025-11-25: the client opens with
initialize, and the relay sends the negotiated version asMCP-Protocol-Versionfrom then on.
If FxSocket rejects the key, the relay still answers initialize and
tools/list from the server's public card
(https://mcp.fxsocket.com/.well-known/mcp/server-card.json), so
directories and inspectors that start it with a placeholder key can see
the tools. Every tool call still needs a valid key and otherwise returns
the rejection.
Requests run concurrently. A notifications/cancelled from the client
closes that request's connection, which is how Streamable HTTP cancels.
HTTP failures (bad key, rate limit, network) come back as JSON-RPC errors
with a sentence saying what to fix, rather than a hung client.
Development
python3 -m unittest discover -s tests
docker build -t fxsocket/mcp:dev .
The tests start the relay as a subprocess against a local stub server, so they cover the real stdio and HTTP paths.
To release, bump __version__ in fxsocket_mcp.py, then push a matching
tag (git tag v1.0.1 && git push --tags). The publish workflow builds
linux/amd64 and linux/arm64 and pushes fxsocket/mcp:<version>,
:<major>.<minor> and :latest, and the dockerhub-overview workflow
copies this README to the Docker Hub page.
License
FxSocket MCP soruları
FxSocket MCP'yi Claude Code'a nasıl eklerim?
Terminalinizde claude mcp add --env FXSOCKET_API_KEY=<YOUR_FXSOCKET_API_KEY> fxsocket-mcp -- docker run -i --rm docker.io/fxsocket/mcp:1.0.1 komutunu çalıştırın. Her projede kullanılabilir olması için --scope user ekleyin.
FxSocket MCP'yi Cursor'a nasıl eklerim?
~/.cursor/mcp.json dosyasını açın ve yukarıdaki yükleme bölümünde gösterilen Cursor yapılandırmasını kullanarak sunucuyu mcpServers altına ekleyin.
FxSocket MCP hangi araçları sunar?
8 araç sunar; bunlar arasında list_accounts, get_account, get_open_positions, get_trade_history, search_symbols yer alır.
Bu sunucu işlem açabilir veya mevcut işlemleri değiştirebilir mi?
Hayır, sunucu salt okunur (read-only) moddadır; emir veremez, değiştiremez veya kapatamaz.
Ne tür hesap verilerine erişebilirim?
Bakiyelere, açık pozisyonlara, kazanma oranı ve kâr/zarar (P/L) bilgisi içeren kapalı işlemlere, fiyat tekliflerine, sembol özelliklerine ve fiyat geçmişine erişebilirsiniz.
Dakikada kaç istek yapabilirim?
FxSocket, kullanıcı başına dakikada 60 MCP isteğine kadar izin verir.