Skip to main content

What is QuantSpace?

QuantSpace is a Model Context Protocol server that exposes an end-to-end ML trading pipeline as a set of tools callable by any MCP-compatible client (Cursor, Claude Code, or custom agents). Each tool triggers a pipeline job, waits for it to complete, and returns an output blob URL — ready to pass directly to the next step.

Architecture


Pipeline at a Glance

QuantSpace provides 9 tools. The core pipeline has 5 sequential stages, and 3 analytics/reporting tools are available after portfolio optimization:
StepToolInputOutput prefix
1run_data_extractionconfigdata_extractor_
2run_feature_workerinput_url (data_extractor_)feature_engine_
3arun_ml_jobfeature_url + data_extractor_urlml_engine_
3brun_dl_jobfeature_url + data_extractor_urlnn_engine_
4run_po_jobinput_url (ml_engine_ or nn_engine_)portfolio_optimization_
5run_trading_jobinput_url (portfolio_optimization_)trading_report_
6run_plot_jobinput_url (any prior stage output) + plot configplot_
7run_st_jobinput_url (portfolio_optimization_) + stress configstress_test_
8run_risk_jobinput_url (portfolio_optimization_) + risk configrisk_

Key Design Principles

Synchronous by design

Every tool blocks until the pipeline job reaches a terminal state (Succeeded, Failed, Stopped). No separate polling needed.

URL chaining

Each tool returns output_url — pass it directly as input_url to the next tool. The LLM handles the chain automatically.

Open access

Authentication is currently disabled. Any MCP-compatible client can connect without a token or login.

Tracing

Every tool call emits a custom mcp_tool_called event with user ID, duration, and success flag.

Transport

QuantSpace is deployed as an SSE/HTTP server:
https://mcp-fabric-server.blackmushroom-7d2b97e6.eastus2.azurecontainerapps.io/sse
Any MCP-compatible client connects over SSE — no local installation required.