Overview
Stock Analysis MCP is a Model Context Protocol (MCP) server that provides real-time and historical stock market data using the Alpha Vantage API.
To use Stock Analysis MCP, clone the repository, install the dependencies, set up your Alpha Vantage API key in a .env file, and run the server. You can then access stock data through various endpoints.
- Retrieve intraday stock data with customizable intervals. - Access daily stock data. - Generate alerts based on stock price movements. - Direct access to stock data as resources.
- Analyzing stock performance over different time intervals.
- Setting up alerts for significant price changes in stocks.
- Integrating with other applications for real-time stock data.
Add to your AI client
Use these steps to connect @qubaomingg/stock-mcp in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"stock-analysis-mcp-qubaomingg": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-stock-analysis-mcp-qubaomingg"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"stock-analysis-mcp-qubaomingg": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-stock-analysis-mcp-qubaomingg"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"stock-analysis-mcp-qubaomingg": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-stock-analysis-mcp-qubaomingg"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"stock-analysis-mcp-qubaomingg": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-stock-analysis-mcp-qubaomingg"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"stock-analysis-mcp-qubaomingg": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-stock-analysis-mcp-qubaomingg"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"stock-analysis-mcp-qubaomingg": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-stock-analysis-mcp-qubaomingg"
]
}
}
}FAQ
What is required to run Stock Analysis MCP?
You need Node.js 16 or higher and an Alpha Vantage API key.
How do I get an Alpha Vantage API key?
You can obtain a free API key from the Alpha Vantage website.
Can I use this with other applications?
Yes, it can be integrated with applications like Claude for Desktop.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2729,"uuid":"e7775d8f-ad69-4a0b-9128-0eb41e5c7af5","name":"stock-analysis-mcp","title":"@qubaomingg/stock-mcp","description":"股票查询","avatar_url":null,"created_at":"2025-03-13T13:08:59.974Z","updated_at":"2025-03-13T13:10:08.539Z","status":"created","author_name":"qubaomingg","author_avatar_url":null,"tags":"stock-analysis,stock-data,financial-tools","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/qubaomingg/stock-analysis-mcp","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":"f7edfabf-30b6-49e7-baa7-662388e33663","tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]