MCP Stock Market
Mercado de valores de MCP
Una herramienta de Protocolo de Contexto de Modelo (MCP) para recuperar datos bursátiles mediante la API Alpha Vantage. Esta herramienta proporciona acceso a datos bursátiles diarios de cualquier símbolo bursátil mediante una sencilla interfaz MCP.
Requisitos
Node.js v18 o superior
Una clave API de Alpha Vantage (nivel gratuito disponible)
Related MCP server: Stock Ticker MCP Server
Configuración
Instalar dependencias
npm installCree un archivo
.envbasado en.env.exampley agregue su clave API de Alpha VantageALPHA_VANTAGE_API_KEY=your_api_key_herePuede obtener una clave API gratuita de Alpha Vantage .
Construir el proyecto
npm run build
Configuración del cliente MCP
Para usar esta herramienta con su cliente MCP, debe actualizar la configuración de su servidor MCP. Agregue lo siguiente a la configuración de su cliente:
{
"mcpServers": {
"stock-market": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/mcp-stock-market/build/index.js"
]
}
}
}Asegúrese de reemplazar /ABSOLUTE/PATH/TO/PARENT/FOLDER con la ruta absoluta real al directorio principal que contiene este repositorio.
Herramientas disponibles
obtener datos de stock
Recupera datos diarios del mercado de valores para un símbolo de acciones específico.
Parámetros:
symbol: Símbolo bursátil (por ejemplo, IBM, AAPL, MSFT, GOOG, AMZN)
Ejemplo de uso en un cliente MCP:
@stock-market get-stock-data symbol=AAPLEjemplo de respuesta:
Stock: AAPL
Last Updated: 2025-03-12
Time Zone: US/Eastern
Daily Prices:
Date: 2025-03-12
Open: $178.35
High: $180.13
Low: $177.53
Close: $179.63
Volume: 58,492,206
---
Date: 2025-03-11
Open: $177.99
High: $179.70
Low: $176.86
Close: $178.95
Volume: 62,630,570
---Desarrollo
Estructura del proyecto
src/index.ts- Archivo de la aplicación principal con la implementación del servidor MCP y las herramientasbuild/- Salida de JavaScript compilada.env- Variables de entorno (clave API)
Comandos
npm run build- Construye el código TypeScript
Notas de uso de la API
Esta herramienta utiliza la API de Alpha Vantage para recuperar datos del mercado bursátil. La versión gratuita de Alpha Vantage tiene las siguientes limitaciones:
25 llamadas API por día
5 llamadas API por minuto
Si necesita más capacidad, considere actualizar a sus planes premium.
Solución de problemas
Si encuentra problemas:
Asegúrese de que su clave API de Alpha Vantage esté configurada correctamente en el archivo
.envComprueba que estás utilizando la versión 18 o superior de Node.js
Verifique que la ruta en la configuración de su cliente MCP sea correcta
Reinicie su cliente MCP
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseDqualityDmaintenanceAllows Claude and other MCP clients to access real-time and historical stock market data from Alpha Vantage API, including intraday and daily stock data with customizable intervals.366MIT
- -licenseNot gradedqualityDmaintenanceProvides real-time and historical stock market data through the Alpha Vantage API. Enables users to get current stock prices and retrieve historical stock data for any major stock symbol via natural language queries.
- AlicenseCqualityDmaintenanceProvides access to real-time and historical stock market data through the Alpha Vantage API, enabling financial analysis and market data queries through natural language.10074Apache 2.0
- FlicenseBqualityCmaintenanceProvides a suite of stock analysis tools for Claude, enabling real-time price tracking, financial data retrieval, and technical indicator calculations like RSI and MACD. It leverages Finnhub and Alpha Vantage APIs to deliver comprehensive market insights through the Model Context Protocol.8
Related MCP Connectors
Alpha Vantage MCP — Stock market data, fundamentals, and earnings
Twelve Data MCP: real-time & historical market data (stocks, crypto, forex, etc).
Live financial data MCP: FX, crypto, stocks, news, URL reader. x402 on Base: $0.001/call.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ctoouli/mcp-stock-market'
If you have feedback or need assistance with the MCP directory API, please join our Discord server