quantum_mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
quantum engine
Quantum computing, optimization, and quantitative trading platform. Provides quantum_engine as a standalone Python library for QUBO solvers and quantum feature generation, plus an MCP server for Claude Code integration via the Model Context Protocol.
What It Does
Quantum Optimization -- D-Wave annealing and Qiskit simulation for QUBO problems (portfolio selection, alert triage ordering, model routing, room scheduling)
Quantum Feature Generation -- HSBC-style parameterized circuits (RY+CX) that produce probability distributions as ML features for classical classifiers
Equity Trading Pipeline -- End-to-end from IBKR data fetch through quantum/classical backtesting to paper trading with 3-gate scientific validation
Prediction Markets -- Kalshi market analysis, portfolio optimization, SVM classification
Multi-Agent Orchestration -- Routing, consensus, and decomposition across agent types
Related MCP server: genpark-quantum-qubit-state-vector-simulator-skill
Project Status
Component | Focus | Tests |
quantum_engine | QUBO solvers, backends, feature generation | ~450 |
Quantum Foundation | VQE, QAOA, Kernels, Q# | ~174 |
Multi-Agent Orchestration | Routing, consensus, decomposition | ~180 |
Trading v2 | Kalshi, IBKR, classifiers, risk, backtesting | ~378 |
Equity Pipeline | Backtest -> Paper -> Live | ~132 |
Benchmarks | D-Wave vs scipy, IBM kernel noise, Kalshi features | ~32 |
Total: 1551 tests passing (27 skipped) | 44 MCP tools
Architecture
quantum_engine (standalone library) MCP Server (44 tools)
+-----------------------------------+ +-------------------------+
| Backends | | Tool Handlers |
| DWaveBackend (Advantage2) | | quantum, trading, |
| AerBackend (Qiskit simulator) | | kalshi, ibkr, |
| IBMQuantumBackend (Heron QPU) | | risk, ensemble |
| ScipyAnnealingBackend | +-------------------------+
| | |
| QUBO Solvers | Claude Code / Richard
| PortfolioQUBO (finance) |
| RoutingQUBO (model-to-domain) |
| TriageQUBO (alert ordering) |
| SchedulingQUBO (room/time) |
| |
| Feature Generation |
| QuantumFeatureGenerator |
| (6-qubit RY+CX, 64 features) |
+-----------------------------------+Requirements
Python 3.13+
uv package manager
D-Wave Leap account (optional, for quantum annealing)
IBM Quantum Open Plan (optional, for Heron QPU)
IB Gateway (optional, for live equity trading)
Installation
git clone https://github.com/ryanmat/quantum_mcp.git
cd quantum_mcp
uv sync --all-extrasFor specific features:
uv sync --extra dwave # D-Wave annealing
uv sync --extra ibkr # IBKR trading
uv sync --extra data # Parquet persistence
uv sync --extra trading # Full trading pipelineConfiguration
Copy .env.example to .env:
cp .env.example .envD-Wave Quantum Annealing
DWAVE_API_TOKEN=DEV-xxx...
DWAVE_SOLVER=Advantage2_prototype2.6IBM Quantum (Optional)
IBM_QUANTUM_TOKEN=your-token
IBM_QUANTUM_INSTANCE=ibm_fezIBKR (Interactive Brokers)
IBKR_HOST=127.0.0.1
IBKR_PORT=4002 # 4002=paper (gateway), 7497=paper (TWS)
IBKR_CLIENT_ID=1Running the Server
uv run python -m quantum_mcpquantum_engine Library
The core quantum functionality is available as a standalone Python library:
from quantum_engine.solvers import TriageQUBO, RoutingQUBO, SchedulingQUBO
from quantum_engine.backends import ScipyAnnealingBackend, DWaveBackend
from quantum_engine.features import QuantumFeatureGenerator
# Optimize alert investigation order
triage = TriageQUBO(alerts, operator_capacity=1)
solution = triage.solve(backend=ScipyAnnealingBackend())
# Generate quantum features for classical ML
gen = QuantumFeatureGenerator(n_qubits=6, circuit_depth=2)
features = gen.generate_features(metric_values) # 64 featuresMCP Tools (44 total)
Quantum Computing (8)
Tool | Description |
| List available quantum backends |
| Estimate job cost before submission |
| Local Qiskit simulation (bell, ghz, qft, custom) |
| Variational Quantum Eigensolver for ground state energy |
| QAOA for combinatorial optimization (MaxCut) |
| Quantum kernel matrix for ML classification |
| Execute Q# quantum programs |
| Solve QUBO via D-Wave quantum annealing (deprecated, use library) |
Kalshi Prediction Markets (12)
Tool | Description |
| List available Kalshi prediction markets |
| Get details for a specific market |
| Get order book depth |
| Place an order (requires confirm=true) |
| Cancel an existing order |
| Get current positions |
| Get portfolio summary |
| Get orders with optional status filter |
| Get recent trades |
| Get account balance |
| QUBO portfolio optimization on current markets |
| Estimated probability edge for a market |
IBKR Equity Trading (8)
Tool | Description |
| Real-time equity quote |
| Historical OHLCV bars |
| Place equity order (requires confirm=true) |
| Current equity positions |
| Account summary |
| Technical indicators (EMA, RSI, Bollinger, ATR) |
| Volatility regime detection |
| Quantum-enhanced equity feature classification |
Backtesting, Risk & ML (11)
Tool | Description |
| Risk assessment on a proposed order |
| Current risk manager state |
| Validation gate check on backtest results |
| Market event classification with quantum kernel SVM |
| Retrain classifier on settled data |
| Multi-agent ensemble prediction |
| Ensemble agent accuracy statistics |
| Scan for arbitrage opportunities |
| Detailed arbitrage analysis |
| Quantum vs classical backtest with Gate 1 validation |
| Paper trading session with risk management |
Equity Trading Pipeline
3-gate scientific validation process:
E1: Parquet Data Offline OHLCV storage (AAPL, MSFT, JPM, XOM, UNH + SPY)
|
E2: Strategy QuantumEquityStrategy + ClassicalEquityStrategy
|
E3: Backtest Gate 1: 50+ trades, Sharpe >= 1.0, max DD <= 25%
|
E4: Paper Trade Gate 2: 30+ trades, Sharpe >= 0.8, degradation <= 25%
|
E5: Live Trade Gate 3: 20+ trades, Sharpe >= 0.7, $500 cap (Decimal)Safety layers for live trading (all must pass):
confirm=truerequired for order placementRiskManager.assess_order()must return allowed=trueTrade value must not exceed $500.00 (Decimal, hard cap)
PDP Architecture
quantum_mcp is part of the Parallel Distributed Processing (PDP) platform, orchestrated by Richard (openclaw). TriageQUBO is wired into the enrichment orchestrator for alert processing order. RoutingQUBO is wired into the pdp-orchestrator for model-to-domain assignment.
Peer PDP units:
Precursor -- Temporal state classification, forecasting, drift detection
Testing
uv run pytest tests/ -v # All tests
uv run pytest tests/unit -v # Unit tests only
uv run pytest tests/ -v -k "qubo" # QUBO solver tests
uv run pytest tests/ --cov=quantum_mcp # With coverageLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
The full TraderMatrix market-data connector for Claude, Cursor and any MCP client. 51 tools: scored and tiered unusual options activity, dealer gamma (GEX), Apex levels and gamma pockets, IV rank, sector flow, dark-pool net-notional rollups, market health and macro regime, gap-continuation and breakout signals, wheel and CSP screeners, a one-call ticker snapshot, and your own watchlists. Needs a TraderMatrix API key (OAuth sign-in works for Claude web and mobile). A free, no-key connector with the gapper scanner and Market Health tools is listed separately as TraderMatrix Free.
Research-only MCP server: your AI as a quant research desk. 90 tools, no trades, no brokers.
Free, no-key MCP connector for market data in Claude, Cursor and any Streamable HTTP client. Six tools: a pre-market and after-hours gapper scanner (get_premarket_gappers: top 10 names up 10% or more, $1-$100, float under 100M, with premarket relative volume, ATR, RSI and a news-catalyst flag), plus the Market Health desk: S&P 500 valuation verdict (get_market_valuation), Fed liquidity and yield-curve series (get_macro_liquidity), cross-asset regime (get_cross_asset_regime), market breadth (get_market_breadth) and risk-score history (get_market_health_history). Ships with a ready-made prompt, premarket_gappers_brief. Nothing to sign up for. Built by TraderMatrix. The full TraderMatrix connector has 51 tools, adding options flow, dealer gamma and Apex levels, unusual activity, sector flow, wheel screeners and your own watchlists.
Connect ChatGPT and Claude to your Mac, Windows or Linux with secure MCP remote access.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceImplements 41 tools from Claude Code, including bash, file operations, web search, task management, and more, all accessible via MCP protocol.-
- AlicenseNot gradedqualityNot gradedmaintenanceEnables users to simulate multi-qubit quantum circuits through an MCP interface, including unitary gates, entanglement, Born-rule measurement sampling, fidelity/probability calculations, and Grover amplitude amplification. Integrates with Claude Desktop, Cursor, and Windsurf via JSON-RPC stdio.MIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables zero-dependency quantum circuit simulation with state-vector evolution, Hadamard/CNOT entanglement, Born-rule measurement, EPR Bell pair generation, and Grover amplitude amplification, exposed natively over MCP for Claude Desktop, Cursor, and Windsurf.MIT
- AlicenseAqualityDmaintenanceEnables advanced mathematical computation through MCP tools, including safe expression evaluation, symbolic solving and calculus, statistics, matrix and vector operations, and headless function plotting. It supports integration with MCP hosts such as Claude Desktop for natural-language math workflows.23MIT