Skip to main content
Glama
market-pulse

market-pulse

by venkatk1801

mcp-market-pulse

A Model Context Protocol server that gives Claude live market-data superpowers — plus a Claude-powered CLI client that answers natural-language questions about stocks.

Ask things like "is AAPL trending up? check the RSI" and watch Claude call real tools, read real prices, and reason over them.

You: is AAPL trending up? check the RSI
  [tool] indicator({"symbol": "AAPL", "kind": "rsi"})
  [tool] get_history({"symbol": "AAPL", "days": 30})
AAPL's RSI(14) is 62.4 — bullish momentum but not overbought (overbought is 70+).
Over the last 30 trading days it closed at $239.80, up from $219.00, with higher
highs through the window. Trend: up, momentum: strong but not extreme.

Tools

Tool

What it does

get_quote(symbol)

Latest price, day change vs previous close, OHLC, volume

get_history(symbol, days=30)

Daily OHLCV bars (up to 365 trading days)

indicator(symbol, kind)

rsi (RSI-14), sma (SMA-20), ema (EMA-20) — math implemented from scratch in indicators.py

market_status()

Whether the NYSE is open right now (ET, weekends + 2026 holidays)

Symbol handling: bare US tickers (AAPL), index aliases (^GSPC, DJI, ^IXIC), and crypto (BTC, ETH) all resolve to the right Stooq ticker.

Related MCP server: Finance MCP Server

Architecture

┌──────────┐   tool calls    ┌────────────┐   JSON-RPC    ┌────────────┐   HTTPS   ┌───────┐
│  Claude  │ ◄─────────────► │ MCP client │ ◄───────────► │ MCP server │ ◄───────► │ Stooq │
│ (Sonnet) │  Messages API   │ (client.py)│     stdio     │ (server.py)│   CSV API │       │
└──────────┘                 └────────────┘               └────────────┘           └───────┘

The server speaks MCP over stdio (any MCP host — Claude Desktop, Claude Code — can use it). The bundled CLI client spawns the server itself and runs an agentic loop: Claude decides which tools to call, reads the results, and answers.

Install

Requires Python 3.10+.

git clone https://github.com/venkatk1801/mcp-market-pulse
cd mcp-market-pulse
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"

Use with Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows):

{
  "mcpServers": {
    "market-pulse": {
      "command": "/absolute/path/to/mcp-market-pulse/.venv/bin/market-pulse-server"
    }
  }
}

Restart Claude Desktop and the four tools appear in the 🔌 menu.

Use the CLI client

The client needs an Anthropic API key:

cp .env.example .env   # then put your key in .env
# or: export ANTHROPIC_API_KEY=sk-ant-...
market-pulse "is NVDA overbought right now?"
market-pulse --interactive          # REPL mode
market-pulse --model claude-sonnet-4-5 "compare AAPL and MSFT this month"

Example session

$ market-pulse "is AAPL trending up? check RSI"
  [tool] indicator({'symbol': 'AAPL', 'kind': 'rsi'})
  [tool] get_quote({'symbol': 'AAPL'})
  [tool] market_status({})
AAPL is at $239.80 (+2.3% on the day) with RSI(14) at 62.4. The market is
currently open. Price is above its 20-day average and momentum is bullish
without being overbought — the trend is up.

Development

pytest            # 28 tests, no network (httpx is mocked)

Project layout:

src/market_pulse/
  server.py       MCP server (MCPServer from the official MCP Python SDK, stdio)
  client.py       agentic CLI client (Messages API tool-use loop over stdio)
  indicators.py   SMA / EMA / Wilder RSI, from scratch
  market_hours.py NYSE hours in America/New_York
tests/            indicator math, CSV parsing (mocked), market-hours logic

Data source & limits

  • Prices come from Stooq's free CSV endpoints — real market data, no API key. Quotes may be delayed ~15 minutes; daily bars are end-of-day.

  • get_quote uses Stooq's quote endpoint and falls back to the latest daily bar if it's unreachable (the source field tells you which served the data).

  • Change is measured against the previous daily close; after-hours quotes may look "stale" — that's the last print, not a bug.

  • market_status covers regular NYSE hours 09:30–16:00 ET, weekends, and a static 2026 holiday list. Early closes (e.g. day after Thanksgiving) are not modeled.

  • Not investment advice. This is a data pipe with a chatbot on top — do your own diligence.

License

MIT — see LICENSE.

Available Tools

4 tools
get_historyA

Daily OHLCV bars for a symbol, most recent days trading days.

days is clamped to 1-365.

Inputs: symbol (required), days.

get_quoteA

Latest quote for a symbol: price, day change, OHLC and volume.

Accepts US tickers (AAPL), index aliases (^GSPC, DJI, ^IXIC) and crypto pairs (BTC, ETH). Change is measured against the previous daily close. If Stooq's live quote endpoint is unreachable, falls back to the latest daily bar (noted in the source field).

Inputs: symbol (required).

indicatorB

Technical indicator for a symbol.

kind: "rsi" (RSI-14), "sma" (SMA-20) or "ema" (EMA-20). Returns the latest value plus the data window used.

Inputs: symbol (required), kind.

market_statusA

Whether the US stock market (NYSE) is open right now, in ET.

Returns open/closed plus the reason (regular session 09:30-16:00 ET, pre-market, after-hours, weekend or market holiday).

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool targets a distinct data need: current quote, historical bars, computed indicator, and market hours. No tool's purpose overlaps with another, even though indicator and history both use price data.

    Naming Consistency3/5

    get_quote and get_history follow a clear get_<noun> pattern, but indicator and market_status are bare nouns without the get_ prefix. The snake_case style is uniform, yet the verb-prefix inconsistency makes the set feel mixed.

    Tool Count5/5

    Four tools is a compact, purposeful set for a market-data server. Each tool covers a distinct read-only concern without redundancy or bloat.

    Completeness4/5

    The server covers the core market-data needs: snapshot, historical daily data, derived indicators, and market hours. It lacks batch quotes, intraday bars, or symbol search, but these are optional extras rather than workflow-breaking gaps.

    Maintenance

    ActivityStale
    ResponsivenessNo recent community issues

    Related MCP Connectors

    • Financial data MCP server for Claude, ChatGPT, Cursor and Codex. Real-time stock quotes, financial statements, options flow, SEC filings, insider trades, 13F holdings, macro data and market news from gloom.sh, the open-source Bloomberg Terminal alternative.

      https://api.gloom.sh/mcp
    • Live stock quotes, a stock screener, crypto prices and FX rates as agent tools.

    • Free, no-key MCP connector for market data in Claude, Cursor and any Streamable HTTP client. Six tools: a pre-market and after-hours gapper scanner (get_premarket_gappers: top 10 names up 10% or more, $1-$100, float under 100M, with premarket relative volume, ATR, RSI and a news-catalyst flag), plus the Market Health desk: S&P 500 valuation verdict (get_market_valuation), Fed liquidity and yield-curve series (get_macro_liquidity), cross-asset regime (get_cross_asset_regime), market breadth (get_market_breadth) and risk-score history (get_market_health_history). Ships with a ready-made prompt, premarket_gappers_brief. Nothing to sign up for. Built by TraderMatrix. The full TraderMatrix connector has 51 tools, adding options flow, dealer gamma and Apex levels, unusual activity, sector flow, wheel screeners and your own watchlists.

    • Your agent needs markets — prices and fundamentals for listed companies, the filings behind them, crypto, and what the prediction markets put the odds at. **What you can ask for** • "Pull this company's income statement, cash flow and balance sheet for the last 8 quarters." • "What did insiders buy or sell, and when?" • "Snapshot prices for these 50 tickers, then the OHLC history for the three that moved." • "What are the current odds on this event across Kalshi and Polymarket?" • "Screen for companies matching these financial criteria." **How to use it** Point any MCP client at https://mcp.aisa.one/finance/mcp and sign in with OAuth — there is no key to create or paste. 49 tools: prices and snapshots, income statements, balance sheets and cash flows, metrics and ratios, earnings and analyst estimates, filings and line-item search, insider trades, macro interest rates, news, a screener; CoinGecko spot prices, market tables, OHLC, per-venue tickers and trending; Kalshi and Polymarket markets and trades; plus EDINET filings for Japan. **Why this rather than the source** Equities, crypto and event markets behind one account, so a cross-asset question is one conversation. **It is also a door to the rest** The same login reaches 26 sources and 580+ operations. Read the number here, then ask the same agent what X is saying about the ticker today — without adding a second server. **What it costs** Finding and inspecting an operation is free. Running one is billed per call at API prices, with no seat and no monthly minimum, and every call takes max_price_usd so an agent cannot overspend by accident. **Where else it reaches** https://mcp.aisa.one/marketpulse/mcp · /crypto-market-data/mcp · /prediction-market-data/mcp · /stock-pulse/mcp for one slice each.

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Provides real-time stock market data for Claude Desktop and MCP-compatible clients, enabling natural language queries for quotes, historical prices, company profiles, financial statements, analyst ratings, comparisons, news, options, holdings, dividends, estimates, symbol search, and market status.
      18
      441 npm
      27
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides comprehensive stock market data and technical analysis tools via the MCP protocol, enabling real-time quotes, historical data, and professional indicators like RSI and MACD for Claude Desktop and other clients.
      5
      Apache 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI models to access real-time financial market data including stock quotes, fundamentals, daily prices, symbol search, and market status via the Alpha Vantage API. Works with any MCP-compatible client like Claude Desktop for natural language interaction.
      -