npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ebowwa/mcp-quant

v1.1.3

Published

Quantitative trading MCP server - Kelly criterion, AMM math, technical indicators, risk management for AI trading systems. Powered by Rust FFI for 2-20x faster array operations.

Readme

@ebowwa/quant-mcp

Quantitative trading MCP server for AI trading systems. Provides Kelly criterion, AMM math, technical indicators, and risk management tools.

Installation

npm install @ebowwa/quant-mcp

Usage with Claude Desktop

Add to your Claude Desktop config:

{
  "mcpServers": {
    "quant": {
      "command": "npx",
      "args": ["-y", "@ebowwa/quant-mcp"]
    }
  }
}

Tools

Prediction Markets

| Tool | Description | |------|-------------| | kelly_criterion | Calculate optimal bet size for binary bets | | convert_odds | Convert between probability, decimal, and American odds | | amm_calculate_cost | Cost to buy shares from constant-product AMM | | amm_price_impact | Price impact and slippage for AMM trades | | lmsr_calculate | LMSR price and cost calculations | | detect_arbitrage | Find arbitrage opportunities in prediction markets | | calculate_edge | Calculate your edge vs market | | brier_score | Measure forecast accuracy |

Technical Indicators

| Tool | Description | |------|-------------| | calculate_sma | Simple Moving Average | | calculate_ema | Exponential Moving Average | | calculate_rsi | Relative Strength Index | | calculate_macd | MACD indicator | | calculate_bollinger_bands | Bollinger Bands | | calculate_atr | Average True Range | | calculate_stochastic | Stochastic Oscillator | | calculate_pivot_points | Classic pivot points | | calculate_fibonacci_retracement | Fibonacci levels |

Risk Management

| Tool | Description | |------|-------------| | position_size_fixed_fractional | Position sizing based on risk % | | calculate_var | Value at Risk (VaR) and Expected Shortfall | | calculate_drawdown | Maximum drawdown analysis | | calculate_sharpe_ratio | Sharpe ratio | | calculate_sortino_ratio | Sortino ratio | | calculate_beta_alpha | Beta and alpha vs benchmark |

Statistics

| Tool | Description | |------|-------------| | distribution_statistics | Mean, median, stdDev, skewness, kurtosis | | correlation | Pearson correlation | | linear_regression | Linear regression analysis | | autocorrelation | ACF for time series |

Example Usage

Kelly Criterion for Prediction Markets

{
  "tool": "kelly_criterion",
  "arguments": {
    "yourProbability": 0.65,
    "marketPrice": 0.55,
    "bankroll": 1000
  }
}

Returns:

{
  "kellyFraction": 0.222,
  "halfKelly": 0.111,
  "quarterKelly": 0.055,
  "fullBetSize": 222,
  "edge": 0.10
}

Technical Analysis

{
  "tool": "calculate_rsi",
  "arguments": {
    "prices": [44, 45, 46, 47, 48, 47, 46, 45, 46, 47, 48, 49, 50, 51, 52],
    "period": 14
  }
}

Risk Metrics

{
  "tool": "calculate_sharpe_ratio",
  "arguments": {
    "returns": [0.02, -0.01, 0.03, 0.01, -0.02, 0.04],
    "riskFreeRate": 0.04,
    "periodsPerYear": 252
  }
}

License

MIT