flox-mcp
OfficialThe flox-mcp server gives AI agents grounded, tool-driven access to the FLOX trading framework—covering discovery, strategy development, backtesting, live engine control, and DeFi analytics—without relying on training data.
Discovery & Documentation
flox_overview– High-level toolkit orientation and canonical workflowsdocs_search– Full-text search across all FLOX documentationlist_indicators/suggest_indicator– Browse or find indicators by descriptionlookup_symbol– Resolve symbols across all language bindings (Python, Node, C-API, etc.)list_bindings/list_capi_functions– Browse exports and C-API surfacelookup_error_code/explain_event– Resolve error codes and event struct fields
Strategy Development & Validation
scaffold_strategy– Generate starter strategy classes (bar-driven, trade-driven, or hybrid) in Python, Node, Codon, or QuickJSinit_project– Create a new FLOX project from a templateget_example– Retrieve CI-validated example code (backtest, connector, indicator, etc.)validate_strategy– Static AST analysis for hooks and forbidden patternsvalidate_strategy_no_lookahead– Detect lookahead bias before trusting backtest results
Data & Backtesting
record_data– Capture live or historical market data into a.floxlogtaperun_backtest– Run a Python strategy against a CSV in a sandboxed subprocesscompute_indicator– Run a single indicator over a price array
Live Engine Inspection (Read-Only)
get_positions,get_open_orders,get_pnl– Read runtime state snapshotsget_kill_switch– Check if trading is halted and whylist_strategies/get_strategy_state– List strategies and inspect their stateget_indicator_values– Live indicator readings inside a running strategyget_event_log/explain_decision– Query events and trace causal chains (e.g., why a fill happened)
Live Engine Control (Write, dry-run by default)
place_order,cancel_order,cancel_all– Order managementflatten_positions– Close all open positions with market ordersset_kill_switch– Halt or resume all trading
Replay & Counterfactuals
replay_window– Sandbox replay over a time window with optional param overrideswhatif– Counterfactual replay to test "what if" parameter scenarios
DeFi / AMM Analytics
price_amm_swap– Price a DEX swap (Uniswap v2/v3, Raydium CP) at wei-level precisionroute_amm_swap– Find best execution across multiple AMM venuesamm_price_impact– Generate a slippage/depth table across trade sizesreplay_pool_tape– Backtest a DEX LP position by replaying recorded swap history
Implement and run trading strategies via the embedded JavaScript (QuickJS) binding of the FLOX framework. Includes scaffolding support.
Develop and execute trading strategies using Node.js bindings of the FLOX framework. Supports scaffolding and strategy execution.
Run and backtest trading strategies using Python bindings of the FLOX framework. Provides tools for scaffolding strategies, running sandboxed backtests on CSV data, and executing live strategies.
FLOX
FLOX is an AI-native framework for building trading systems.
Strategies, backtests, paper trading, and live execution sit behind one toolkit. AI agents discover the surface and drive it end-to-end through an MCP control plane. One strategy class runs backtest, paper, and live. Bindings for Python, Node.js, Codon, embedded JavaScript, and a stable C API.
Documentation is available at flox-foundation.github.io/flox
Related MCP server: tradingview-mcp
Language bindings
Language | Install | Docs |
Python |
| |
Node.js |
| |
Codon | build from source | |
JavaScript (embedded) | bundled with C++ build | |
C API |
|
All bindings expose the same strategy API, indicators, order books, backtesting, and data I/O. The C API is the integration point for adding support for any other language.
AI companion
flox-mcp is a Model Context Protocol server that gives AI coding agents (Cursor, Claude Code, Cline) grounded access to the FLOX surface — symbol lookups across bindings, scaffolders, indicator and backtest tools, full-text doc search.
pip install flox-mcpSee the package README for setup and the full tool list.
Connectors
Native exchange connectors (Bybit, Bitget, Hyperliquid, Polymarket) live under connectors/ and build with -DFLOX_BUILD_CONNECTORS=ON. The flag defaults to OFF so a backtest-only or research build doesn't pay the dependency cost. See the connectors README for adapter notes and the optional Polymarket Rust toolchain step.
Venue
Beyond trading on a market, FLOX can be one: the optional venue/ module adds a matching engine and the machinery around it, so many participants can trade against a single order book. See the venue docs.
Build options
The CMake options that gate every optional artefact (bindings, demo, tools, tests, benchmarks, connectors) are catalogued in docs/build/feature-flags.md. Defaults are OFF so a bare cmake -B build produces only the core C++ static library.
Commercial Services
For commercial support, enterprise connectors, and custom development, visit floxlabs.dev.
Contributing
Contributions are welcome via pull requests.
Please follow the existing structure and naming conventions.
Tests, benchmarks, and documentation should be included where appropriate.
Code style is enforced via clang-format. See contributing guide.
License
FLOX is licensed under the MIT License. See LICENSE for details.
Disclaimer
FLOX is provided "as is" without warranty of any kind, express or implied. The authors are not liable for any damages or financial harm arising from its use, including trading losses or system failures. This software is intended for educational and research purposes. Production use is at your own risk. See DISCLAIMER.md for full legal notice.
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
- Flicense-qualityDmaintenanceFull-lifecycle algorithmic trading MCP server. AI strategy generation from plain English, backtesting, live bot deployment to 10+ brokers, portfolio monitoring, and prediction markets. Stocks, options, crypto, futures. 32 tools. Free tier.Last updated
- AlicenseBqualityAmaintenanceAI-powered trading toolkit with backtesting, live sentiment, Yahoo Finance data, and 30+ technical analysis tools, integrated as an MCP server for Claude and other AI clients.Last updated373,733MIT
- Alicense-qualityBmaintenanceThe most complete AI-powered trading toolkit for Claude and MCP clients, offering backtesting, live sentiment, Yahoo Finance, and 30+ technical analysis tools in one MCP server.Last updatedMIT
- Alicense-qualityCmaintenanceMCP server that provides AI agents with financial tools including real-time quotes, backtesting, technical analysis, and multi-exchange data via a simple CLI interface.Last updated1MIT
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
Hosted MCP for stocks, options, Greeks, brokers, order previews, alerts, and workflows.
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/FLOX-Foundation/flox'
If you have feedback or need assistance with the MCP directory API, please join our Discord server