Newcontext-mode—Save 98% of your AI coding agent's context windowLearn more
MCP Directory
ServersClientsBlog

context-mode

Save 98% of your AI coding agent's context window. Works with Claude Code, Cursor, Copilot, Codex, and more.

Try context-mode
MCP Directory

Model Context Protocol Directory

MKSF LTD
Suite 8805 5 Brayford Square
London, E1 0SG

MCP Directory

  • About
  • Blog
  • Documentation
  • Contact

Menu

  • Servers
  • Clients

© 2026 model-context-protocol.com

The Model Context Protocol (MCP) is an open standard for AI model communication.
Powered by Mert KoseogluSoftware Forge
  1. Home
  2. Clients
  3. alpaca-market-mcp

alpaca-market-mcp

GitHub

MCP server for technical analysis with Alpaca market data. Computes Bollinger Bands, Moving Averages, Stochastics, candlestick patterns, and evaluates 11 trading strategies - all server-side, no Python execution needed on the client.

0
0

alpaca-market-mcp

MCP server for technical analysis with Alpaca market data. Computes Bollinger Bands, Moving Averages, Stochastics, candlestick patterns, and evaluates 11 trading strategies - all server-side, no Python execution needed on the client.

Installation

# Via uvx (recommended)
uvx alpaca-market-mcp

# Via pip
pip install alpaca-market-mcp

Configuration

Claude Desktop / Claude.ai

Add to your MCP config:

{
  "mcpServers": {
    "alpaca-market": {
      "command": "uvx",
      "args": ["alpaca-market-mcp"],
      "env": {
        "ALPACA_API_KEY": "your-api-key",
        "ALPACA_SECRET_KEY": "your-secret-key"
      }
    }
  }
}

Claude Code

Add to .mcp.json:

{
  "mcpServers": {
    "alpaca-market": {
      "command": "uvx",
      "args": ["alpaca-market-mcp", "--feed", "iex"],
      "env": {
        "ALPACA_API_KEY": "your-api-key",
        "ALPACA_SECRET_KEY": "your-secret-key"
      }
    }
  }
}

Environment Variables

VariableRequiredDescription
ALPACA_API_KEYYesAlpaca API key
ALPACA_SECRET_KEYYesAlpaca secret key

CLI Options

alpaca-market-mcp [OPTIONS]

Options:
  --transport [stdio|streamable-http|sse]  Transport protocol (default: stdio)
  --host TEXT                               Host to bind (HTTP only)
  --port INTEGER                            Port to bind (HTTP only)
  --feed [iex|sip|otc]                      Data feed (default: iex)
  --env-file PATH                           Load env vars from file

Tools

analyze_ticker

Full multi-timeframe technical analysis (15min, 1h, 1d). Returns Bollinger Bands, Moving Averages (SMA 20/40/100/200), candlestick patterns, volume, and Stochastics.

check_strategy

Evaluate the 11 trading strategies from the options course. Returns condition-by-condition pass/fail with CUMPLIDA/PARCIAL/NO CUMPLIDA status.

get_indicators

Get a specific indicator's values for a single timeframe. Supports: bb, sma, ema, stoch, rsi, macd, atr, volume, candles.

scan_tickers

Scan multiple tickers for trading signals and active strategies.

get_stock_bars_with_indicators

Historical OHLCV bars with indicator columns attached.

Indicators

IndicatorWeightParameters
Bollinger Bands50%Period 20, Std 2.0
Moving Averages25%SMA 20, 40, 100, 200
Candlestick Patterns15%Body ratio classification
Volume5%SMA(20) ratio
Worden Stochastics5%K=14, D=3, Smooth=3

11 Trading Strategies

#StrategyAction
1Cambio tendencia al alza (BB Hora)CALL
2Cambio tendencia a la baja (BB Hora)PUT
3Rebote punto medio bajista (BB Dia)PUT
4Rebote punto medio alcista (BB Dia)CALL
5Salido BB sin volatilidad al alza (15 Min)PUT
6Efecto iman bajista (MA Hora + BB 15 Min)CALL
7Efecto iman alcista (MA Hora + BB 15 Min)PUT
8Cambio tendencia al alza (BB 15 Min)CALL
9Cambio tendencia a la baja (BB 15 Min)PUT
10Lateral a alcista mediano plazo (MAs)CALL
11Lateral a bajista mediano plazo (MAs)PUT

Development

# Install dev dependencies
uv pip install -e ".[dev]"

# Run tests
uv run pytest

# Lint
uv run ruff check src/

License

MIT

Repository

HA
hachecito

hachecito/alpaca-market-mcp

Created

April 12, 2026

Updated

April 13, 2026

Language

Python

Category

Developer Tools