Overview
The Statistical Factor Models Server fits statistical factor models from numeric panel matrices. It covers Stock-Watson EM, complete-panel Bai-Ng style extraction, and Banbura-Modugno dynamic factor extraction.Connection
Add this server to your MCP client configuration.- Cursor
- Bearer auth
Transport
Best-Fit Workflows
- Fit a balanced panel with no missing values.
- Fit a missing-value panel with Stock-Watson EM.
- Fit a missing-value panel with a dynamic/state-space factor model.
- Use explicit mixed-frequency mappings for Stock-Watson runs.
Recommended Tools
- complete-panel-factor-extractor-fit
- swfactor-extractor-create -> swfactor-extractor-fit
- bmfactor-extractor-fit
Tools
Examples
Fit a balanced panel directly
Create a Stock-Watson extractor
Fit the created Stock-Watson extractor
n8n Workflow
This server can be exposed as an n8n Webhook for panel factor extraction. The workflow can accept JSON or uploaded CSV, validate rank settings, build the numeric panelX, route by algorithm, call the MCP tool, and respond with a compact fit summary.
Recommended n8n MCP chain:
- Normalize webhook body or uploaded CSV into a numeric panel with rows as series and columns as observations.
- Validate the selected algorithm:
complete-panel,stock-watson, orbanbura-modugno. - For complete-panel runs, call
complete-panel-factor-extractor-fitdirectly or create a handle first withcomplete-panel-factor-extractor-create. - For Stock-Watson, call
swfactor-extractor-createwith explicitflow_seriesandflow_series_diff, thenswfactor-extractor-fit. - For Banbura-Modugno, call
bmfactor-extractor-create/bmfactor-extractor-fitwhen a configured handle is needed, or callbmfactor-extractor-fitdirectly for the simple path. - If the fit returns
result_id, callresult_getbefore responding from n8n.
- Statistical Factor Models User Workflow JSON - public panel-fit webhook at
POST https://n8n.limex.pro/webhook/stat-factor-model-fit.
Notes
- Primary fitting tools expect
Xas a JSON array of arrays with shape(N, T): rows are series, columns are time points. - Input rows should already be stationary /
I(0). - Use
nullfor missing observations in the Stock-Watson and dynamic factor tools. - For Stock-Watson mixed-frequency work, create a handle with explicit
flow_seriesandflow_series_difffirst.
Client setup
Configure this endpoint in Cursor, Claude Desktop, or a generic MCP client.
n8n workflows
Build webhook and scheduled factor-model flows around this MCP endpoint.
Shared tools
Use health, result, artifact, environment, and table helper tools.
Other Servers
Dataloader
Market-data retrieval, TA-Lib indicators, and dataframe exports.
Fama-French Replicate
Official and replicated Fama-French factors plus loadings and alpha estimation.
Jump Models
JumpModel and SparseJumpModel regime fitting, online prediction, and backtesting.
Wavelet Mean Reversion
Wavelet-based mean reversion analysis for financial time series.
Parallax ExtremeHurst
ExtremeHurst signal generation from OHLCV data.
EP Ratio Screener
Fundamental stock screening based on earnings yield and balance-sheet quality.
Volatility Scaling Lab
Volatility targeting, EWMA volatility, Monte Carlo bands, and risk diagnostics.