概要
What is @qubaomingg/stock-mcp?
This is an MCP server that provides stock market data from the Alpha Vantage API. It allows Claude and other MCP clients to access real-time and historical stock data.
How to use @qubaomingg/stock-mcp?
Install Node.js 16+, clone the repository, run npm install, create a .env file with ALPHA_VANTAGE_API_KEY, then build with npm run build and run with npm start. Configure it in Claude for Desktop by editing claude_desktop_config.json with the path to dist/index.js and the API key.
Key features of @qubaomingg/stock-mcp
- Get intraday stock data with customizable intervals
- Get daily stock data
- Generate stock alerts based on price movements
- Access stock data as resources
- Choose between compact and full output sizes
Use cases of @qubaomingg/stock-mcp
- Real-time stock market analysis through Claude
- Historical stock data retrieval for research
- Automated price movement alerts based on thresholds
- Integration with MCP clients for financial workflows
FAQ from @qubaomingg/stock-mcp
What are the prerequisites for using @qubaomingg/stock-mcp?
Node.js 16 or higher and a free Alpha Vantage API key from alphavantage.co.
How do I install @qubaomingg/stock-mcp?
Clone the repository, install dependencies with npm install, create a .env file with your ALPHA_VANTAGE_API_KEY, then build with npm run build and start with npm start.
Which tools does @qubaomingg/stock-mcp provide?
It provides get-stock-data, get-daily-stock-data, and get-stock-alerts tools, each with configurable parameters like symbol, interval, output size, and threshold.
Does @qubaomingg/stock-mcp provide resources?
Yes, it provides a stock data resource accessible via the URI template stock://{symbol}/{interval}.
How do I configure @qubaomingg/stock-mcp with Claude for Desktop?
Add an entry to claude_desktop_config.json specifying command: "node", args with the absolute path to dist/index.js, and env with ALPHA_VANTAGE_API_KEY.