Skip to main content

Overview

The Wavelet Mean Reversion Server fetches market data, analyzes returns or signals with wavelet decomposition, and generates synthetic data for experiments.

Connection

Add this server to your MCP client configuration.
{
  "mcpServers": {
    "wavelet-mean-reversion": {
      "url": "https://wavelet-mean-reversion-production.up.railway.app/mcp/waveletmeanreversion"
    }
  }
}
Restart the client after changing MCP configuration. The server tools appear automatically after the connection is established.

Transport

PropertyValue
ProtocolMCP over Streamable HTTP
MCP URLhttps://wavelet-mean-reversion-production.up.railway.app/mcp/waveletmeanreversion
Health URLhttps://wavelet-mean-reversion-production.up.railway.app/health
MCP path/mcp/waveletmeanreversion
Request envelope{"request": {...}}
AuthOptional bearer token when enabled for the endpoint

Best-Fit Workflows

  • Fetch Yahoo market data.
  • Compute returns for a ticker.
  • Run wavelet decomposition and mean reversion analysis.
  • Generate synthetic mean-reverting or trending data.
  • Backtest simple wavelet mean-reversion strategies.
  • yahoo-data-fetcher-fetch
  • yahoo-data-fetcher-fetch-returns
  • wavelet-analyzer-analyze
  • wavelet-analysis-result-summary
  • wavelet-analysis-result-get-statistics-dataframe

Tools

ToolDescriptionReturns
mainMain example demonstrating wavelet mean reversion analysis and trading strategy.Any
yahoo-data-fetcher-fetchFetches historical stock data from Yahoo Finance for one or more tickers. Params: ticker (str or list): stock symbol(s); start_date (str, optional): start date; end_date (str, optional): end date; period (str, default=‘max’): time period; interval (str, default=‘1d’): data frequencyAny
wavelet-mean-reversion-strategy-generate-signalsGenerate trading signals.Any
wavelet-analyzer-decomposeDecomposes a signal into wavelet components for mean reversion analysis. Params: signal: np.ndarray (input signal to decompose)Any
wavelet-analyzer-analyzeAnalyzes a signal using wavelet decomposition to detect mean reversion patterns. Outputs analysis results for further processing in trading strategies. Params: signal: np.ndarray - input signal data to analyze (no default provided)Any
yahoo-data-fetcher-fetch-returnsFetches historical stock returns from Yahoo Finance for a given ticker symbol, supporting optional date ranges, return period, and log return calculation. Params: ticker (str), start_date (str, optional), end_date (str, optional), period (str, default=‘max’), log_returns (bool, default=True)Any
yahoo-data-fetcher-fetch-multiple-seriesFetches historical stock price data for multiple tickers from Yahoo Finance, returning the specified column over the given date range. Params: tickers (list of str), start_date (str, optional), end_date (str, optional), period (str, default=‘max’), column (str, default=‘Close’)Any
wavelet-mean-reversion-strategy-backtest-simpleSimple backtest of the strategy.Any
config-from-dictCreate configuration from dictionary.Any
wavelet-mean-reversion-strategy-fitFit the strategy by analyzing the signal.Any
synthetic-data-generator-generate-mean-revertingGenerates synthetic mean-reverting time series data using Ornstein-Uhlenbeck process parameters. Params: N (default: 1000): number of data points; theta (default: 0.1): mean reversion speed; mu (default: 0.0): long-term mean; sigma (default: 1.0): volatility; seed (default: 42): random seed for reproducibilityAny
synthetic-data-generator-generate-trendingGenerates synthetic trending financial data using a mean-reverting model with configurable parameters for length, drift, and volatility. Params: Inputs: N (int, default 1000), drift (float, default 0.01), volatility (float, default 1.0), seed (Optional[int], default 42)Any
wavelet-visualizer-plot-trading-signalsPlot trading signals on price chart.Any
wavelet-visualizer-plot-backtest-resultsPlot backtest performance.Any
synthetic-data-generator-generate-complex-signalGenerates a synthetic complex signal for wavelet analysis, producing N data points with optional random seed and component breakdown. Params: N (int, default=2000): number of data points; seed (int, optional, default=42): random seed; include_components (bool, default=False): whether to return individual signal componentsAny
synthetic-data-generator-add-noiseAdds random noise to a signal array using a configurable noise level and optional seed for reproducibility. Params: signal (np.ndarray): input signal to add noise to; noise_level (float, default 0.1): amplitude of added noise; seed (Optional[int], default None): random seed for reproducibilityAny
config-to-dictConvert configuration to dictionary.Any
wavelet-visualizer-plot-complete-analysisCreate comprehensive analysis visualization.Any
wavelet-visualizer-plot-acf-analysisPlot autocorrelation function for each scale.Any
wavelet-visualizer-plot-monte-carlo-resultsPlot Monte Carlo simulation results.Any
wavelet-decomposition-result-get-scale-signalExtracts the signal for a specific wavelet scale from decomposition results. Params: scale_name (str): name of the wavelet scale to extract signal from (e.g., ‘D1’, ‘D2’)Any
trading-signal-to-dataframeConvert signals to DataFrame.Any
wavelet-analysis-result-summaryGenerates a concise summary of wavelet analysis results, providing key metrics and insights from the wavelet decomposition and mean reversion analysis. Params: noneAny
wavelet-analysis-result-get-statistics-dataframeRetrieves statistical data from wavelet analysis results as a pandas DataFrame, providing summary metrics for mean reversion analysis. Params: noneAny
main-mainRun all examples.Any
validate-time-seriesValidates and converts time series data to a 1D numpy array, ensuring it has at least 4 points and contains no NaN or inf values. Params: data (Union[np.ndarray, pd.Series]): Time series data to validatenp.ndarray
compare-with-bollinger-bandsCompares a wavelet-based mean-reverting component with traditional Bollinger Bands, returning metrics for both approaches. Params: signal: Original signal array; wavelet_mr_component: Wavelet-derived mean-reverting component; window: Bollinger Band window (default 20); num_std: Std deviation multiplier (default 2.0)Dict[str, np.ndarray]
example-synthetic-dataExample using synthetic data.Any
example-real-market-dataExample using real market data.Any
example-monte-carlo-backtestExample with Monte Carlo backtesting.Any
example-multiple-tickersExample analyzing multiple tickers.Any
example-custom-configurationExample using custom configuration.Any
default-configPreset factory: create Config via ObjectStore (handles) with default deps (none); returns a handle.object
monte-carlo-defaultPreset factory: create MonteCarloBacktester via ObjectStore (handles) with default deps (none); returns a handle.object
statistical-analyzer-defaultPreset factory: create StatisticalAnalyzer via ObjectStore (handles) with default deps (none); returns a handle.object
wavelet-analyzer-defaultPreset factory: create WaveletAnalyzer via ObjectStore (handles) with default deps (none); returns a handle.object
wavelet-strategy-defaultPreset factory: create WaveletMeanReversionStrategy via ObjectStore (handles) with default deps (analyzer); returns a handle.object
wavelet-visualizer-defaultPreset factory: create WaveletVisualizer via ObjectStore (handles) with default deps (none); returns a handle.object
yahoo-fetcher-defaultPreset factory: create YahooDataFetcher via ObjectStore (handles) with default deps (none); returns a handle.object

Examples

Fetch returns for one ticker

{
  "request": {
    "ticker": "AAPL",
    "start_date": "2024-01-01",
    "end_date": "2024-06-30",
    "period": "1y",
    "log_returns": true
  }
}

Analyze a signal

{
  "request": {
    "signal": [
      101.0,
      100.5,
      100.9,
      100.1,
      99.8,
      100.2
    ]
  }
}

Notes

  • Instance-style tools can use handles when you need configured analyzers or strategies.
  • Use Parallax ExtremeHurst when you need the ExtremeHurst signal engine rather than wavelet decomposition.

Client setup

Configure this endpoint in Cursor, Claude Desktop, or a generic MCP client.

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.

Statistical Factor Models

Stock-Watson, complete-panel, and dynamic statistical factor extraction.

Jump Models

JumpModel and SparseJumpModel regime fitting, online prediction, and backtesting.

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.