CMP-server Pocket Option 2026
Optional integration with TradingView market data for real (non-OTC) pairs, enabling the AI to access TradingView data alongside PocketOption.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CMP-server Pocket Option 2026Check my account balance"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
A modern, async, fully-typed bridge between AI assistants and the PocketOption trading platform. Plug it into Claude Code, Claude Desktop, Cursor β or drive it from GPT / Grok β solo or as a coordinated team of analysts and traders. Your model can read balances, pull candles, screen assets, and place trades through clean MCP tools.
π Full guide (English + Π ΡΡΡΠΊΠΈΠΉ): GETTING_STARTED.md Β· βοΈ SETUP.md Β· π©Ί TROUBLESHOOTING.md
This is a terminal / developer tool β not a click-and-run desktop app. There's
nothing to double-click: no .exe, no installer, no window, no buttons. You set it up
from a terminal / command line (pip install, then run a command) and connect it to
an AI client (Claude Code, Claude Desktop, Cursor) by pasting a small block into that
client's config file. It has no GUI of its own. If you've never used a command line,
this isn't plug-and-play β start with GETTING_STARTED.md, which
walks through every step.
Trade responsibly. Binary options are negative-expectation by design, and OTC pairs use synthetic prices the broker controls β no bot changes that math. Real-money trading is off by default and only turns on when you explicitly set PO_ALLOW_REAL=1 / allow_real=True. Automated trading may also violate PocketOption's terms of service. Test on a demo account first; you use this at your own risk.
π― What it is β and what it isn't
It is clean, typed, tested infrastructure: a way to wire AI models into PocketOption over MCP, with real async plumbing, safety-first defaults, per-model memory, and multi-agent coordination. A solid base to build and learn on.
It isn't a profitable strategy or a "money-making bot." Binary options are negative-expectation, and this API is unofficial (reverse-engineered). The tooling makes agents disciplined and safe, not profitable β treat it as a framework and a learning / engineering showcase, and stay on demo.
Related MCP server: :GT Protocol MCP Server
β¨ Why this exists
Most PocketOption wrappers hand-roll the socket.io protocol, ship broken imports, disable TLS verification, and leak your session token into logs. This one doesn't.
π§ AI-native β exposes trading as first-class MCP tools, so any MCP host can use it with zero glue code.
β‘ Truly async & event-driven β built on
python-socketio; prices, fills and candles resolve on real events, no polling loops.π Secure by default β TLS verification on, session tokens redacted from every log and protocol dump, real-money trading gated behind an explicit flag.
π§© Model-agnostic core β the trading logic lives once in
client.py; Claude, GPT and Grok are thin facades over it.π§ͺ Actually tested β 72 offline tests (parsing, routing, safety guards, secret redaction) that need no network and no SSID.
π Typed & pinned β full type hints,
py.typed, and a pinned Python version so tools never silently "modernize" your project.
π οΈ What your AI can do through it
Tool | What it does |
π° | current balance, demo/live |
π | tradeable assets with payout % and allowed expirations |
π | one asset: payout, open/closed, expirations |
π―οΈ | OHLCV candles at any timeframe (60 / 300 / 900 / 3600 / 14400 sβ¦) |
πΉ | live price for an asset |
π― | open a trade (call/put, any amount, expiration in seconds) |
β±οΈ | wait for a trade to close β win/loss + profit |
π | trades currently open |
π§Ύ | recent closed trades |
π | win rate and net P&L this session |
The model computes its own indicators from get_candles β it never needs to read a chart image.
π€ One model β or a whole trading desk
Connect a single model, or run several at the same time. Every model gets the exact same PocketOption toolset, and an optional shared opinion board lets them operate as a team β analysts posting reads, a trader acting on the consensus.
Connect⦠| How | Name on the board |
Claude β Code / Desktop / Cursor | MCP config ( |
|
GPT β OpenAI |
|
|
Grok β xAI |
|
|
Any OpenAI-compatible β OpenRouter, Ollama, LM Studio, Mistralβ¦ |
| model name |
TradingView market data | add the | β |
Turn them into a desk. Run two or three models side by side and they coordinate through a shared, TTL-expiring opinion board (post_opinion / read_opinions): e.g. GPT and Grok each post an analyst read on EURUSD_otc, and Claude reads the board and only places the trade when they agree. They can also talk directly β send_message / read_messages, broadcast or addressed to one agent by name β to ask questions, agree a plan, or divide work. Each agent's role is just its name + instructions (drop a per-model manual in agent_manuals/) β so you decide who researches and who pulls the trigger.
%%{init: {'theme':'dark','themeVariables':{'primaryColor':'#0d1117','primaryTextColor':'#c9d1d9','primaryBorderColor':'#00ff88','lineColor':'#00ffcc','fontFamily':'monospace'}}}%%
flowchart TB
TV["π TradingView (optional data)"]
G["π€ GPT β analyst"]
K["π€ Grok β analyst"]
B["ποΈ opinions.json β shared board, TTL 15m"]
C["π€ Claude β trader"]
PO["π’ PocketOption"]
TV -.-> G
TV -.-> K
G -->|post_opinion| B
K -->|post_opinion| B
B -->|read_opinions| C
C -->|place_trade| PO
style TV fill:#11161d,stroke:#48b0ff,color:#c9d1d9
style G fill:#11161d,stroke:#00ff88,color:#c9d1d9
style K fill:#11161d,stroke:#00ff88,color:#c9d1d9
style B fill:#0d1117,stroke:#00ffcc,color:#00ffcc
style C fill:#11161d,stroke:#00ff88,color:#c9d1d9
style PO fill:#0d1117,stroke:#00ff88,color:#00ff88Roles aren't hardcoded β the board just lets agents post and read each other's views. Whether a model acts as an analyst, a risk-checker, or the one that trades is defined by the prompt/instructions you give it and its
AGENT_NAME.
ποΈ Architecture
%%{init: {'theme':'dark','themeVariables':{'primaryColor':'#0d1117','primaryTextColor':'#c9d1d9','primaryBorderColor':'#00ff88','lineColor':'#00ffcc','fontFamily':'monospace'}}}%%
flowchart LR
AI["π€ Claude / GPT / Grok"]
S["mcp_server.py β MCP facade"]
C["client.py β model-agnostic core"]
PO["π’ PocketOption"]
M["models.py β typed parsing"]
MEM["memory.py β strategies + opinions"]
TV["π TradingView MCP (optional)"]
AI -->|MCP tools| S
S --> C
C -->|socket.io / WSS| PO
C --> M
C --> MEM
TV -.->|real-pair data| AI
style AI fill:#11161d,stroke:#00ff88,color:#c9d1d9
style S fill:#11161d,stroke:#00ffcc,color:#c9d1d9
style C fill:#0d1117,stroke:#00ff88,color:#00ff88
style PO fill:#0d1117,stroke:#00ff88,color:#00ff88
style M fill:#11161d,stroke:#48b0ff,color:#c9d1d9
style MEM fill:#11161d,stroke:#48b0ff,color:#c9d1d9
style TV fill:#11161d,stroke:#48b0ff,color:#c9d1d9The core knows nothing about any LLM. New models plug in as thin facades over the same client.py β the trading logic is written once.
sequenceDiagram
participant AI as π€ AI model
participant S as mcp_server.py
participant C as client.py
participant PO as PocketOption
AI->>S: place_trade(EURUSD_otc, call, 60s)
S->>C: validated request (pydantic)
C->>PO: socket.io order
PO-->>C: fill event
C-->>S: trade opened
S-->>AI: trade_id
AI->>S: check_result(trade_id)
PO-->>C: close event
S-->>AI: win/loss + profitEverything resolves on real socket events β no sleep-and-poll loops anywhere in the pipeline.
π Quick start
# 1. install (registers the `pocketoption-mcp` command)
pip install .
# 2. grab your DEMO SSID from pocketoption.com
# F12 β Network β websocket β the 42["auth",{...}] frame with "session"/"isDemo"
# 3. point Claude at it β merge the mcpServers block from
# claude_config_example.json into your Claude / Cursor config, then restart.Then just ask your assistant:"What PocketOption tools do you have?" β "Show my balance and the top 5 OTC pairs by payout."
# bash / zsh
export PO_SSID='42["auth",{...}]'
pocketoption-mcp # or: python -m cmp_server_pocket_option_2026.mcp_server# PowerShell
$env:PO_SSID='42["auth",{...}]'
pocketoption-mcpIt should print Connected to β¦ (demo) and wait. Ctrl+C to stop.
Full step-by-step (installing Python, getting the SSID, config file locations) lives in GETTING_STARTED.md.
π Optional: TradingView for real (non-OTC) pairs
OTC pairs are synthetic, so outside data can't help there β the model reads them from candles alone. For real pairs you can run the third-party tradingview-mcp server alongside this one (needs uv, no TradingView account). The tradingview block in claude_config_example.json wires it up. Note: PocketOption's EURUSD maps to TradingView's FX:EURUSD β the two don't share a symbol namespace, so the model bridges them.
π§ͺ Development
pip install ".[dev]"
pytest # 72 offline tests β no network, no SSID
ruff check . # lint
mypy cmp_server_pocket_option_2026 # type-checkThe suite is deliberately offline: it swaps the transport for a fake and feeds captured-shape events into the client, validating parsing, routing, safety guards and secret-redaction without ever touching PocketOption. CI runs all three on Python 3.10 / 3.11 / 3.12 / 3.13.
Runtime artifacts (sessions/, strategies/, opinions.json, dump.jsonl) are git-ignored. sessions/ holds your account token β never commit or share it.
π§° Tech stack
β Support the project
If this saved you time or you find it interesting, give it a β β it's the single biggest thing that helps the project reach other traders and developers. Fork it, build on it, share it (it's MIT).
π Found a bug? π‘ Have an idea?
Contributions of every size are welcome β the project is actively developed and open to collaborators.
π Bug β open an issue with the Bug report template. Redact your SSID before pasting logs.
π‘ Feature or improvement β open an issue with the Feature request template.
π¬ Questions / open discussion β the Discussions tab.
π§ Want to code? β PRs welcome β read
CONTRIBUTING.mdfirst (it's short). Good first areas: new indicators, more model adapters, better desk coordination.
π Support development
Building and maintaining this is unpaid open-source work. If it's useful to you, a donation keeps it moving β completely optional, and thank you π
Bybit UID: 497849886
How to send: in the Bybit app, use Send / transfer by UID (Bybit Pay), enter UID 497849886, then pick the coin and amount. Bybit-to-Bybit transfers are instant and fee-free. (The QR just encodes the UID for quick copying β it doesn't auto-open a payment.)
π License
MIT Β© 2026 Rufus011 β see LICENSE. Build on it freely, trade at your own risk.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI agents to trade forex, metals, indices, and cryptocurrencies via the Model Context Protocol using the XBTFX Trading API. It provides comprehensive tools for managing account balances, retrieving market data, and executing trade operations like opening, modifying, or closing positions.Last updated157MIT
- FlicenseBqualityDmaintenanceConnects MCP-compatible AI agents to GT Protocol trading accounts, enabling natural language control of automated trading bots, strategy backtesting, deal execution, and balance monitoring on Binance and Hyperliquid exchanges.Last updated1
- Alicense-qualityAmaintenanceEnables AI assistants to trade on MetaTrader 5 using natural language, supporting account management, order placement, and real-time market data.Last updated1MIT
- Alicense-qualityDmaintenanceEnables AI agents to interact with Interactive Brokers through 48 tools for market data, orders, account management, and more, via the MCP protocol.Last updatedMIT
Related MCP Connectors
MCP server exposing the Backtest360 engine API as tools for AI agents.
MCP server for Gainium β manage trading bots, deals, and balances via AI assistants
No-KYC managed MCP for AI agents: sandboxed TypeScript trading SDK, isolated sub-accounts, futures.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Rufus011/CMP-server_Pocket-option-2026'
If you have feedback or need assistance with the MCP directory API, please join our Discord server