Bring PREX strategy research into your agent
Use one MCP endpoint for market analysis, factor discovery, strategy search, asynchronous backtesting, and pre-trade risk planning. Research remains separate from execution.
codex mcp add prex-strategy --url https://prex.best/api/mcp01 · QUICK START
Connect once, then work in natural language
PREX MCP can be used for research without sign-in and is rate-limited by client IP. Start with guidance, then move into analysis or backtesting.
Codex CLI
Recommended · Remote MCP
codex mcp add prex-strategy --url https://prex.best/api/mcp
codex mcp listJSON-RPC
Universal · Tool discovery
curl -X POST https://prex.best/api/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'Try this first
“Use PREX MCP to analyze Binance ETHUSDT on 1h and explain trend, RSI, support, resistance, and risk.”
02 · TOOL CATALOG
Nine tools across the research workflow
Tools are grouped by intent. Start broad requests with prex_get_started; call a specific tool directly when the request is already complete.
Guidance
Start broad requests with a short, parameter-preserving guide.
prex_get_startedRoutes analysis, strategy discovery, backtest, and trade-plan requests to the right PREX workflow.
Read onlyMarket intelligence
Read market structure for one instrument or compare a universe.
prex_get_market_contextReturns price, momentum, RSI, moving averages, volatility, volume, support, resistance, and risk context.
Read onlyprex_rank_market_momentumRanks a multi-asset universe by cross-sectional momentum and liquidity context.
Read onlyprex_analyze_equityAnalyzes A-share or Hong Kong equity price structure, risk, catalysts, filings, and research context.
Read onlyStrategy research
Discover strategies and factors, then create reproducible research jobs.
prex_list_public_strategiesFinds published PREX strategies without exposing private factor formulas or source code.
Read onlyprex_list_backtest_factorsSearches categorized cross-sectional and causality-checked time-series factors.
Read onlyprex_create_backtestCreates an asynchronous backtest from natural language or a complete structured strategy.
Creates research jobprex_get_backtest_resultReads job progress, metrics, report links, and optional full backtest output.
Read onlyExecution preparation
Normalize an intended trade and check its risk before a separate execution step.
prex_prepare_binance_trade_planValidates a USD-M perpetual plan and estimates margin, stop distance, reward, and risk/reward. It never submits an order.
Plan only03 · ASYNC BACKTESTS
Create a job, then read the result
Backtests run asynchronously. Jobs and results are scoped to the MCP client that created them and expire after their retention window.
Complete the idea
Preserve supplied parameters and ask for one missing requirement at a time.
Create the backtest
Use natural language or a complete strategy on 1h, 4h, or 1d.
Read and share
Poll status, then receive returns, drawdown, curves, and a report URL.
04 · REST API
Stable endpoints for application integration
REST and MCP expose the same PREX research foundation. Anonymous traffic is rate-limited by IP; an optional Bearer API key identifies a developer quota.
/api/v1/symbolsBacktest symbols
Crypto and stock-perpetual universes
/api/v1/backtestsCreate backtest
Natural language or structured strategy · returns 202
/api/v1/backtests/:jobIdRead backtest
Job state, metrics, results, and report URL
/api/v1/backtests/:jobId/reportShareable report
Token-scoped HTML report generated for the job
/api/v1/equitiesEquity discovery
A-share and Hong Kong equity listings and search
/api/v1/equities/overviewMarket overview
Breadth, indices, and market state
/api/v1/equities/candlesEquity candles
15m, 1h, and 1d delayed market data
/api/v1/equities/analysisEquity analysis
Technical structure, risks, catalysts, and disclosures
Only stable public research endpoints are listed. Credential storage, internal sync, cron, and product-internal order relay routes are not published as developer APIs.
05 · SAFETY
Open research, isolated trading authority
The MCP does not carry user trading identity. Analysis, strategy discovery, and backtesting cannot publish a strategy, create a live deployment, or send an order.
No private keys
Never place private keys, seed phrases, or exchange secrets in prompts, tool arguments, or logs.
Research is not execution
The trade-plan tool validates intent only. Orders require a separate, explicitly confirmed execution flow.
Scoped access
Backtest jobs are scoped to their MCP client, and public strategy responses omit private factors and source code.