Stock Data MCP Server

Stock Data MCP Server

MaverickTopG

Research & Data
Visit Server

README

Stock Data MCP Server

An AI-powered financial data provider that delivers real-time stock market information through the Model Context Protocol (MCP). This tool enables AI systems to retrieve live prices, trading volumes, and market data directly from Alpha Vantage.

Features

  • 📈 Real-Time Market Data: Access minute-by-minute stock prices and volumes
  • 🤖 AI Integration: Structured interface for financial AI applications
  • 🔌 MCP Compatibility: Works with any MCP-enabled AI system
  • 🔒 Reliable Data: Powered by Alpha Vantage's market infrastructure

Quick Start

Installation

git clone https://github.com/MaverickTopG/Stock_MCP_Server.git
npm install

Running the MCP Server

node stock-data-server.js

Running the MCP Client for Testing

node stock-data-client.js

Supported Tools

  1. get-stock-data
    Retrieve real-time trading data for any stock symbol.

    // Example response
    {
      "symbol": "AAPL",
      "price": 172.34,
      "timestamp": "2024-03-15 15:59:00",
      "volume": 7845123,
      "currency": "USD"
    }
    

Example Client Usage

const { Client } = require("@modelcontextprotocol/sdk/client/index.js");
const { StdioClientTransport } = require("@modelcontextprotocol/sdk/client/stdio.js");

// Create client transport
const transport = new StdioClientTransport({
  command: "node",
  args: ["stock-data-server.js"]
});

// Initialize client
const client = new Client(
  { name: "stock-client", version: "1.0.0" },
  { capabilities: { tools: ["get-stock-data", "help"] } }
);

// Connect and use tools
await client.connect(transport);

// Get stock data
const response = await client.callTool({
  name: "get-stock-data",
  arguments: { symbol: "AAPL" }
});

console.log(`Current AAPL price: $${response.data.price}`);

Use Cases

  • AI Trading Systems: Integrate real-time data into algorithmic trading strategies
  • Portfolio Monitoring: Track investments through AI assistants
  • Financial Research: Automate market data collection for analysis
  • News Correlation: Combine price data with news sentiment analysis

Requirements

  • Node.js 18+
  • @modelcontextprotocol/sdk (^1.8.0)
  • axios
  • zod
  • Alpha Vantage API key (free tier available)

Upcoming Integrations

  • Cryptocurrency market data support
  • Historical price analysis tools
  • Earnings report integration
  • Market alert systems

Recommended Servers

mixpanel

mixpanel

Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.

Featured
TypeScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Featured
Python
MCP PubMed Search

MCP PubMed Search

Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.

Featured
Python
dbt Semantic Layer MCP Server

dbt Semantic Layer MCP Server

A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.

Featured
TypeScript
Crypto Price & Market Analysis MCP Server

Crypto Price & Market Analysis MCP Server

A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.

Featured
TypeScript
Nefino MCP Server

Nefino MCP Server

Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.

Official
Python
Vectorize

Vectorize

Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.

Official
JavaScript
Excel Reader Server

Excel Reader Server

A Model Context Protocol (MCP) server that provides tools for reading Excel (xlsx) files, enabling extraction of data from entire workbooks or specific sheets with results returned in structured JSON format.

Local
Python
MATLAB MCP Server

MATLAB MCP Server

Integrates MATLAB with AI to execute code, generate scripts from natural language, and access MATLAB documentation seamlessly.

Local
JavaScript
Macrostrat MCP Server

Macrostrat MCP Server

Enables Claude to query comprehensive geologic data from the Macrostrat API, including geologic units, columns, minerals, and timescales through natural language.

Local
JavaScript