Skip to main content
Glama
Stock Price MCP Server

Stock Price MCP Server

by sleepysoong

Stock Price MCP Server

MCP (Model Context Protocol) server that provides real-time stock price information using Yahoo Finance API.

Features

  • πŸ“ˆ Real-time stock price data

  • πŸ• Price update timestamps

  • 🏦 Market state information (PRE, REGULAR, AFTER, POST, CLOSED)

  • πŸ’± Multi-currency support

  • 🌍 Global market coverage

  • πŸ†“ Completely free with no rate limits

Related MCP server: Stock Data MCP Server

Installation

npm install
npm run build

Usage

As an MCP Server

Add to your MCP client configuration:

{
  "mcpServers": {
    "stock-price": {
      "command": "node",
      "args": ["/path/to/stock-price-mcp/dist/index.js"]
    }
  }
}

Available Tools

get_stock_price

Get real-time stock price information for a ticker symbol.

Input:

{
  "ticker": "AAPL"
}

Output:

{
  "ticker": "AAPL",
  "last_price": 150.25,
  "timestamp": "2024-01-15T16:00:00.000Z",
  "market_state": "CLOSED",
  "currency": "USD"
}

Market States

  • PRE - Pre-market trading

  • REGULAR - Regular trading hours

  • AFTER - After-hours trading

  • POST - Post-market trading

  • CLOSED - Market closed

Supported Markets

  • US Stocks: AAPL, TSLA, MSFT

  • Korean Stocks: 005930.KS (Samsung)

  • European Stocks: BMW.DE

  • And many more global exchanges

Development

npm run dev

License

MIT

Available Tools

1 tool
get_stock_priceA

Get real-time stock price information for a given ticker symbol. Returns last price, timestamp, market state (PRE/REGULAR/AFTER/POST/CLOSED), and currency.

Inputs: ticker (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool 'get_stock_price' has a clearly distinct purpose that cannot be confused with any other tool in this set.

    Naming Consistency5/5

    The naming pattern cannot be inconsistent when there is only one tool. The tool name 'get_stock_price' follows a clear verb_noun convention that would be consistent if more tools existed.

    Tool Count2/5

    A single tool is generally too few for a server's purpose unless it's extremely narrow. For a stock price server, one might expect additional tools like historical data, multiple tickers, or market indicators, making this feel thin and limited in scope.

    Completeness2/5

    The server is severely incomplete for a stock price domain. While it provides real-time prices, it lacks essential operations such as historical price data, volume information, company details, or batch queries for multiple stocks, which are common in financial applications.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides real-time stock market data and financial analysis through Yahoo Finance integration. Enables users to get quotes, historical prices, fundamentals, dividends, analyst forecasts, and growth projections for any stock symbol.
      4
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides real-time stock market data through Yahoo Finance without requiring an API key. Get quotes, historical data, company information, financial statements, and ticker search capabilities.
      -
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides real-time financial data from Yahoo Finance, enabling stock price lookups, historical data analysis, company information retrieval, and multi-stock comparisons through natural language queries.
      -
    • A
      license
      A
      quality
      D
      maintenance
      Provides access to Yahoo Finance data including real-time stock quotes, historical prices, financial statements, company info, symbol search, and news.
      6
      46 npm
      1
      MIT