spark-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@spark-mcpLog outcome for trial_123 and run significance gate."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
spark-mcp
Creativity and institutional-learning MCP for quant research organizations. Spark remembers what a research organization has tried (including failures), counts every trial so statistical verdicts are deflated rather than lucky, points at unexplored regions of research space, and turns validated trajectories into replay-gated skills. It never backtests and never owns market data — a peer engine computes, Spark judges.
Install
uv venv .venv --python 3.12
uv pip install -e '.[dev]'Requires Python ≥3.11. The [qd] extra needs pyribs (optional).
Related MCP server: TapeDeck
Quick start
spark init-db # create ~/.spark/spark.db (schema migrations)
spark doctor # capability report (degraded mode, FTS5, sqlite-vec)
spark serve # MCP server over stdio (equivalent: python -m spark_mcp)
python -m pytest -q # test suite incl. the independence gateConfiguration
Copy config.example.yaml to your SPARK_CONFIG path or rely on
defaults (DB at ~/.spark/spark.db). Secrets are environment-variable
references only — never values in files:
Setting | Env var | Purpose |
LLM key |
| scoring / judging calls |
Gateway token |
| skill-promotion manifest POST |
Without an LLM key Spark runs in degraded mode (lexical novelty proxy, deterministic exploration) — fully usable, no network needed.
Use as an MCP server
Any MCP-capable agent or harness can spawn it over stdio:
{ "command": "<venv>/bin/python",
"args": ["-m", "spark_mcp"],
"env": { "SPARK_CONFIG": "/path/to/spark.yaml" } }28 tools, highlights:
Ledger & memory:
register_hypothesis,hypothesis_propose,log_outcome,memory_recall,memory_promote,research_historyExploration:
explore_methods,suggest_next,archive_status,find_analogies,combine_methodsGates & evidence:
significance_gate,check_novelty,backtest_run,causal_check,risk_decomposeSkill evolution:
distill_skill,propose_skill_challenger,run_replay,decide_skill_promotion,approve,retire_skillPeer seam:
run_summary_ingest(QuantFlow Tier-2 hook),report_write,consolidate,generate_exercise,spark_health,spark_doctor
Layout
src/spark_mcp/— package (config, storage, llm protocols+fakes, server, cli, gates, QD archive, skill evolution)tests/— unit tests +tests/independence/(blocking gate: no third-party research repos imported, read, or required at runtime)
Conventions
Time fields are ISO-8601 UTC text; IDs are ULIDs with type prefixes (
hyp_,ep_,trial_,belief_).Storage is SQLite WAL with
PRAGMA user_versionmigrations.Every data-dependent row carries
as_of/data_through; retrieval filters before ranking (no leakage).Trial rows are inserted before dispatch; retries never double-count.
License
MIT — see pyproject.toml.
This server cannot be deployed
Maintenance
Related MCP Connectors
Live trading-pipeline intelligence for AI agents: signal scoring, calibration, recorded outcomes.
- memoricOAuthio.memoric
Provenance-first database for teams and agents: every value carries sources, rules and coverage.
Validated trading edges across futures, equities, crypto. Live signals, full audit trail.
- CPZAIOAuthcom.cpz-lab.mcp
Build, backtest, and deploy quantitative trading strategies from your AI agent.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables quantitative trading research by providing tools to backtest strategies, list market datasets, review forward-test logs, and search previously rejected hypotheses, all through an MCP interface.MIT
- AlicenseNot gradedqualityCmaintenanceEnables market-data analysis and quantitative research over a local Parquet lake with tools for bars, indicators, scans, backtests, and safe SQL queries.MIT
- AlicenseNot gradedqualityBmaintenanceProvides a zero-dependency SQLite memory layer for AI agents, letting them record lessons and work state, automatically test recurring patterns as hypotheses, and surface proven preferences during each session.36 PyPIMIT
- AlicenseAqualityAmaintenanceEnables AI coding agents to retrieve relevant execution context before a task, compare candidate paths, log outcomes, and search past experiences stored locally in SQLite. It lets agents reuse what worked on similar tasks and get live alerts when a run stagnates or repeats failures.4141,011 PyPI2MIT