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

finance-mcp-server

v1.0.1

Published

MCP server for financial data - stock quotes, crypto prices, portfolio tracking, and market analysis

Readme

Finance MCP Server

A Model Context Protocol (MCP) server providing real-time financial data for stocks, cryptocurrencies, and market analysis. Seamlessly integrates with Claude and other MCP-compatible AI assistants.

npm version License: MIT

Features

📈 Stock Data (Yahoo Finance)

  • Real-time stock quotes with price, change, volume
  • Historical OHLCV data with customizable ranges
  • Stock search by company name or ticker
  • Market indices tracking (S&P 500, DOW, NASDAQ)
  • Sector performance analysis

🪙 Cryptocurrency Data (CoinGecko)

  • Real-time crypto prices with 24h change
  • Top cryptocurrencies by market cap
  • Historical price data
  • Crypto search functionality

📊 Advanced Analytics (Alpha Vantage)

  • Company fundamentals (PE ratio, EPS, dividends)
  • Technical indicators (SMA, EMA, RSI, MACD, BBANDS)
  • Analyst price targets

🏛️ Economic Data (FRED)

  • Federal Reserve economic indicators
  • GDP, inflation, unemployment data
  • Interest rates and monetary policy

💼 Portfolio Management

  • Track stock and crypto holdings
  • Real-time portfolio valuation
  • Gain/loss calculations
  • Cost basis tracking

Installation

# Using npx (recommended)
npx @anthropic/finance-mcp-server

# Or install globally
npm install -g @anthropic/finance-mcp-server

Configuration

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "finance": {
      "command": "npx",
      "args": ["-y", "@anthropic/finance-mcp-server"],
      "env": {
        "ALPHA_VANTAGE_KEY": "your_key_here",
        "FRED_API_KEY": "your_key_here"
      }
    }
  }
}

API Keys (Optional)

The server works out of the box with Yahoo Finance and CoinGecko (no keys required). For advanced features:

| API | Free Tier | Get Key | |-----|-----------|---------| | Alpha Vantage | 25 calls/day | alphavantage.co | | FRED | Unlimited | fred.stlouisfed.org |

Available Tools

Stock Tools

| Tool | Description | |------|-------------| | get_stock_quote | Real-time stock price and metrics | | get_stock_history | Historical OHLCV data | | search_stocks | Search stocks by name/ticker | | get_company_overview | Fundamentals and analyst data | | get_technical_indicator | Technical analysis (SMA, RSI, etc.) |

Crypto Tools

| Tool | Description | |------|-------------| | get_crypto_price | Real-time crypto price | | get_crypto_list | Top cryptos by market cap | | get_crypto_history | Historical price data | | search_crypto | Search cryptocurrencies |

Market Tools

| Tool | Description | |------|-------------| | get_market_overview | Major indices snapshot | | get_sector_performance | S&P 500 sector analysis | | get_economic_indicator | FRED economic data |

Portfolio Tools

| Tool | Description | |------|-------------| | add_to_portfolio | Add position to portfolio | | remove_from_portfolio | Remove position | | get_portfolio_value | Portfolio valuation with P&L |

Usage Examples

Get Stock Quote

"What's the current price of AAPL?"
→ Uses get_stock_quote with symbol: "AAPL"

Crypto Analysis

"Compare Bitcoin and Ethereum prices over the last month"
→ Uses get_crypto_history for both coins

Portfolio Tracking

"Add 10 shares of NVDA at $450 to my portfolio"
→ Uses add_to_portfolio with type: "stock"

Market Overview

"How are the major indices performing today?"
→ Uses get_market_overview

Technical Analysis

"What's the RSI for Tesla?"
→ Uses get_technical_indicator with indicator: "RSI"

Rate Limits

The server implements automatic rate limiting to respect API limits:

| API | Rate Limit | |-----|-----------| | Yahoo Finance | 1 req/sec | | CoinGecko | 10-50 req/min | | Alpha Vantage | 5 req/min | | FRED | 120 req/min |

Development

# Clone and install
git clone https://github.com/anthropics/finance-mcp-server
cd finance-mcp-server
npm install

# Development mode
npm run dev

# Build
npm run build

# Run
npm start

Roadmap

  • [ ] Polygon.io integration for premium users
  • [ ] Watchlist management
  • [ ] Price alerts
  • [ ] Options chain data
  • [ ] News sentiment analysis
  • [ ] Earnings calendar

Support

License

MIT © Anthropic


Disclaimer: This tool provides financial data for informational purposes only. Not financial advice. Always verify data before making investment decisions.