Skip to main content

QuantDataForge MCP servers — StrategyCreator + Open Cockpit, run locally via uvx with one API token.

Project description

qdf-mcp

Two MCP servers that let a QuantDataForge subscriber drive the platform from their own Claude Code / Claude Desktop:

  • qdf-mcp-strategyStrategyCreator: author trading strategies in Python, backtest them against QDF's 5-year 1-minute futures history (ES, NQ), and read the metrics + equity curve back — all in your Claude session.
  • qdf-mcp-cockpitOpen Cockpit: a live, read-only window into the open — which levels are armed, how each is defended tick-by-tick, plus market-state, options and catalyst reads.

Both are thin HTTPS clients. All the heavy lifting (data, backtest engine, sandbox) runs on the QDF server. Each server scopes everything to your personal API token.

Setup

1. Install uv (one time)

uvx runs the servers in an isolated environment and pulls all dependencies automatically — you do not need to install any Python packages by hand.

  • Windows: powershell -ExecutionPolicy Bypass -c "irm https://astral.sh/uv/install.ps1 | iex"
  • macOS / Linux: curl -LsSf https://astral.sh/uv/install.sh | sh

(Or pip install uv if you already have Python.)

2. Get your token

On the website, open Strategy Lab → API Tokens, click Generate, and copy the qdf_sk_… token (shown once). The same token works for both servers.

3. Add the servers to your Claude config

Paste this into your MCP client config — Claude Desktop's claude_desktop_config.json, or a project .mcp.json for Claude Code — with your token in both places:

{
  "mcpServers": {
    "strategy-creator": {
      "command": "uvx",
      "args": ["--from", "qdf-mcp", "qdf-mcp-strategy"],
      "env": {
        "QDF_API_TOKEN": "qdf_sk_…your token…",
        "QDF_API_URL": "https://quantdataforge.com"
      }
    },
    "qdf-cockpit": {
      "command": "uvx",
      "args": ["--from", "qdf-mcp", "qdf-mcp-cockpit"],
      "env": {
        "QDF_API_BASE": "https://quantdataforge.com",
        "COCKPIT_READ_TOKEN": "qdf_sk_…your token…"
      }
    }
  }
}

Don't need both? Keep just the block you want — they're independent and the same token authorizes either.

4. Restart your client and ask Claude

  • "Scaffold a breakout strategy and backtest it on ES 1m."
  • "Watch the cockpit and tell me when a level breaks."

The cockpit's live tools only return data during the watch window (~08:00–10:30 ET) with the feed up; outside that they report the feed is offline rather than erroring.

Requirements

Python ≥ 3.10 (uv manages this for you). The only dependencies are mcp and httpx, installed automatically by uvx.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qdf_mcp-0.3.0.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qdf_mcp-0.3.0-py3-none-any.whl (16.1 kB view details)

Uploaded Python 3

File details

Details for the file qdf_mcp-0.3.0.tar.gz.

File metadata

  • Download URL: qdf_mcp-0.3.0.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for qdf_mcp-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d0577dd0ecb2e147e0159dd10b838e0e4b06f2f92bde6cbc60afffa803fd7bf8
MD5 7edf651cfd4402e41d53013f02f9b3b7
BLAKE2b-256 4fcdc7cb50d9a6eefcc6f5cd674cd1611380686ecad776d34b7b766f55fd05e3

See more details on using hashes here.

File details

Details for the file qdf_mcp-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: qdf_mcp-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 16.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for qdf_mcp-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a396253b5d89efd45e577fb3344932d5e89d54a2e36c696352369b2e04730be8
MD5 c5aed37581ec9ef5addb48fa0d2548a5
BLAKE2b-256 9a2d9927f354490f2e8ba17369ddde967948ffc95bad2001075ea994cec2dbc3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page