Skip to main content
Glama
panther-mcp

panther-mcp

Official
by PantherWatch

Panther MCP Server

Backtest any trading strategy by describing it to Claude, ChatGPT, or Gemini.

Panther gives your AI assistant the tools to fetch market data, run backtests, and show you the results — no code required. Just describe your strategy in plain English.

Quick Start

1. Get your API key

Sign up free at panther.watch and copy your API key.

2. Install

Claude Desktop — add to your claude_desktop_config.json:

{
  "mcpServers": {
    "panther": {
      "command": "uvx",
      "args": ["panther-mcp"],
      "env": {
        "PANTHER_API_KEY": "pthr_your_key_here"
      }
    }
  }
}

Claude Code:

claude mcp add panther -e PANTHER_API_KEY=pthr_your_key -- uvx panther-mcp

ChatGPT (Pro/Team/Enterprise — Developer Mode):

Add as custom MCP server: https://panther.watch/mcp/

Gemini CLI:

{"mcpServers": {"panther": {"command": "uvx", "args": ["panther-mcp"], "env": {"PANTHER_API_KEY": "pthr_..."}}}}

Any MCP client (Cline, Cursor, VS Code Copilot, etc.):

uvx panther-mcp

3. Start backtesting

Just tell your AI what strategy you want to test:

"Backtest a golden cross strategy (SMA 50/200) on BTC/USDT over 2024"

You'll get results including return, Sharpe ratio, drawdown, every trade, and a shareable link to the full report.

Related MCP server: ai-trader

Available Tools

Tool

Description

list_available_assets

Browse 30+ tradeable assets (crypto, forex, commodities)

get_price_data

Fetch historical OHLCV price data with summary stats

run_backtest

Define strategy with indicators + conditions, execute backtest

get_backtest_status

Poll running backtest status + progress

get_backtest_results

Get performance metrics + shareable panther.watch link

list_backtests

View your backtest history

optimize_strategy

Run parameter sweeps across combinations

get_optimization_status

Poll optimization progress

get_optimization_results

Get ranked parameter results

list_optimizations

View optimization history

run_portfolio_backtest

Test a strategy across multiple weighted assets

get_portfolio_backtest_status

Poll portfolio backtest progress

get_portfolio_backtest_results

Get portfolio + per-asset results

Supported Assets

Type

Source

Examples

Crypto

Binance (CCXT)

BTC/USDT, ETH/USDT, SOL/USDT + 17 more

Forex

IC Markets (cTrader)

EUR/USD, GBP/USD, USD/JPY + 7 more

Commodities

IC Markets (cTrader)

XAU/USD (Gold), XAG/USD (Silver)

Features

  • 25 indicators — SMA, EMA, RSI, MACD, BB, VWAP, ATR, Stochastic, ADX, OBV, Supertrend, Ichimoku, and 13 more

  • Short selling — Long, short, or bidirectional strategies

  • Strategy optimization — Parameter sweeps with constraints and ranking by any metric

  • Portfolio backtesting — Test across multiple weighted assets with portfolio-level metrics

Example Strategies

Golden Cross:

"Backtest SMA 50/200 crossover on BTC/USDT daily for 2024"

RSI Mean Reversion:

"Buy when RSI(14) drops below 30, sell above 70 on EUR/USD daily with 5% stop loss"

MACD Crossover:

"Enter when MACD line crosses above signal line, exit on reverse, on ETH/USDT daily"

Portfolio:

"Backtest RSI strategy on a portfolio of 60% BTC and 40% ETH over 2024"

Optimization:

"Optimize the SMA crossover on BTC — try fast period 10-50 step 10, slow period 50-200 step 50"

Shareable Results

Every backtest gets a public URL you can share on Twitter, Discord, or with your trading community:

https://panther.watch/backtests/<backtest-id>

Results include performance metrics, equity curve chart, and full trade list.

Development

git clone https://github.com/PantherWatch/panther-mcp.git
cd panther-mcp
uv sync
PANTHER_API_KEY=pthr_... uv run panther-mcp

License

MIT

Available Tools

13 tools
tool_get_backtest_resultsA

Get the results of a completed backtest.

Returns:

  • summary: Key metrics (total return, Sharpe ratio, max drawdown, win rate, etc.)

  • trades_preview: First 10 trades with entry/exit dates and P&L

  • full_results_url: Link to full results data

  • results_url: Shareable link to view results on panther.watch

IMPORTANT: Always share the results_url link with the user so they can view the full results with equity curve and trade details on panther.watch.

Inputs: backtest_id (required). Returns: object

tool_get_backtest_statusA

Check the status of a running backtest.

Returns status (queued, running, completed, failed) and progress percentage.

Inputs: backtest_id (required). Returns: object

tool_get_optimization_resultsA

Get the results of a completed optimization.

Returns:

  • best: The best parameter combination with its summary metrics

  • results: All combinations ranked by the chosen metric

  • total_combinations: How many combinations were tested

  • rank_by: The metric used for ranking

Inputs: optimization_id (required). Returns: object

tool_get_optimization_statusB

Check the status of a running optimization.

Returns status, progress percentage, total and completed combinations.

Inputs: optimization_id (required). Returns: object

tool_get_portfolio_backtest_resultsB

Get the results of a completed portfolio backtest.

Returns:

  • summary: Portfolio-level metrics (total return, Sharpe ratio, max drawdown, total trades)

  • per_asset_results: Performance breakdown per asset

  • trades_preview: Recent trades across all assets

  • results_url: Shareable link to view results on panther.watch

IMPORTANT: Always share the results_url link with the user so they can view the full results with equity curve, per-asset breakdown, and trade details on panther.watch.

Inputs: portfolio_backtest_id (required). Returns: object

tool_get_portfolio_backtest_statusB

Check the status of a running portfolio backtest.

Returns status (queued, running, completed, failed) and progress percentage.

Inputs: portfolio_backtest_id (required). Returns: object

tool_get_price_dataA

Fetch historical OHLCV price data for an asset.

Returns summary statistics and a preview of the data (not the full dataset). Use this to examine price history before defining a backtest strategy.

Timeframes: 1m, 5m, 15m, 1h, 4h, 1d, 1w

Inputs: symbol (required), timeframe (required), start_date (required), end_date. Returns: object

tool_list_available_assetsA

List tradeable assets available for backtesting.

Filter by asset type (crypto, forex, commodity) and/or search by symbol or name.

Inputs: search, asset_type. Returns: object

tool_list_backtestsA

List your previous backtests with summary info.

Use this to review past experiments and compare strategies.

Inputs: limit, symbol. Returns: object

tool_list_optimizationsA

List your previous optimizations / parameter sweeps.

Use this to review past optimization runs and their best parameters.

Inputs: limit, symbol. Returns: object

tool_optimize_strategyA

Run a strategy optimization / parameter sweep.

Tests multiple parameter combinations and ranks results by a metric.

param_ranges: List of parameter ranges to sweep. Each has:

  • rule_path: Path to the parameter, e.g. "entry_rules[0].params.period"

  • start: Start value (inclusive)

  • end: End value (inclusive)

  • step: Step size

constraints: Optional list of cross-parameter constraints, e.g. [{"left": "entry_rules[0].params.period", "op": "<", "right": "exit_rules[0].params.period"}]

rank_by: Metric to rank results by (default "sharpe_ratio"). Options: total_return, sharpe_ratio, max_drawdown, win_rate, profit_factor, total_trades

Returns an optimization_id. Use get_optimization_status to poll, then get_optimization_results for ranked results.

Inputs: symbol (required), strategy (required), timeframe (required), start_date (required), +6 more. Returns: object

tool_run_backtestA

Define and execute a trading strategy backtest.

The strategy object must include:

  • name: Strategy name

  • direction (optional): "long" (default), "short", or "both"

    • "long": entry_rules trigger buys, exit_rules trigger sells

    • "short": entry_rules trigger short entries, exit_rules trigger short covers

    • "both": uses entry_rules/exit_rules for longs, plus short_entry_rules/short_exit_rules for shorts

  • entry_rules: List of rules that trigger entry

  • exit_rules: List of rules that trigger exit

  • short_entry_rules (required when direction="both"): Rules for short entries

  • short_exit_rules (required when direction="both"): Rules for short exits

  • stop_loss (optional): Stop loss as fraction (0.05 = 5%)

  • take_profit (optional): Take profit as fraction (0.15 = 15%)

Each rule has:

  • indicator: SMA, EMA, RSI, MACD, or BB

  • params: Indicator parameters (e.g. {"period": 50})

  • condition: crosses_above, crosses_below, greater_than, less_than, equals

  • compare_to: Another indicator object or a numeric value

Returns a backtest_id. Use get_backtest_status to poll for completion, then get_backtest_results for the full results.

Inputs: symbol (required), strategy (required), timeframe (required), start_date (required), +3 more. Returns: object

tool_run_portfolio_backtestA

Run a portfolio backtest across multiple assets with weighted allocation.

Test how a strategy performs across a diversified portfolio. Each asset gets a weighted allocation of the total capital.

assets: List of asset allocations. Each has:

  • symbol: Asset symbol (e.g. "BTC/USDT", "ETH/USDT")

  • weight: Portfolio weight from 0 to 1. All weights must sum to 1.0.

Example: [{"symbol": "BTC/USDT", "weight": 0.6}, {"symbol": "ETH/USDT", "weight": 0.4}]

The same strategy is applied to all assets. Returns a portfolio_backtest_id. Use get_portfolio_backtest_status to poll, then get_portfolio_backtest_results for results.

Inputs: assets (required), strategy (required), timeframe (required), start_date (required), +3 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4/5.0

    Scored across 13 tools

    Disambiguation5/5

    Each tool targets a distinct resource or lifecycle stage: asset discovery, price data retrieval, backtest execution/status/results, optimization execution/status/results, and portfolio backtest execution/status/results. Run versus optimize versus list versus get operations are clearly separated, and the three status/result pairs are unambiguous.

    Naming Consistency5/5

    All tools follow a consistent verb_prefix + resource pattern such as list_, get_, run_, and optimize_, with the shared tool_ prefix applied uniformly. Related workflows use parallel naming, e.g. get_backtest_status/get_backtest_results and get_optimization_status/get_optimization_results, making the API predictable.

    Tool Count5/5

    13 tools is well-scoped for a backtesting platform, covering asset exploration, single backtests, parameter optimization, portfolio backtests, and result/history retrieval. Each tool serves a distinct purpose without unnecessary sprawl or redundancy.

    Completeness5/5

    The toolset covers the full backtesting lifecycle: discover assets, inspect price data, run and monitor backtests, run and monitor optimizations, run portfolio backtests, retrieve detailed results, and list historical runs. No critical dead ends are apparent for the stated domain.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants like Claude to run backtests, fetch market data, list strategies, and analyze trading algorithms via natural language.
      58 PyPI
      1,143
      GPL 3.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables quant research, strategy development, backtesting, and paper trading through natural language prompts, integrated with 20+ AI agents.
      134
      -