
MCP server to connect to the Alpha Vantage APIs
MCP server to connect to the Alpha Vantage APIs
·
A Model Context Protocol (MCP) tool for retrieving stock market data using the Alpha Vantage API. This tool provides access to daily stock market data for any stock symbol through a simple MCP interface.
Install dependencies
npm installCreate a .env file based on .env.example and add your Alpha Vantage API key
ALPHA_VANTAGE_API_KEY=your_api_key_hereYou can obtain a free API key from Alpha Vantage.
Build the project
npm run buildTo use this tool with your MCP client, you need to update your MCP server configuration. Add the following to your client's configuration:
{
"mcpServers": {
"stock-market": {
"command": "node",
"args": [
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/mcp-stock-market/build/index.js"
]
}
}
}Make sure to replace /ABSOLUTE/PATH/TO/PARENT/FOLDER with the actual absolute path to the parent directory containing this repository.
Retrieves daily stock market data for a specific stock symbol.
Parameters:
symbol: Stock symbol (e.g., IBM, AAPL, MSFT, GOOG, AMZN)Example usage in an MCP client:
@stock-market get-stock-data symbol=AAPLExample response:
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
---src/index.ts - Main application file with MCP server and tools implementationbuild/ - Compiled JavaScript output.env - Environment variables (API key)npm run build - Build the TypeScript codeThis tool uses the Alpha Vantage API to retrieve stock market data. The free tier of Alpha Vantage has the following limitations:
If you need more capacity, consider upgrading to their premium plans.
If you encounter issues:
.env filePick your client and paste the snippet. Each one is the same server, written the way that client expects it.
claude mcp add stock-market -- node /ABSOLUTE/PATH/TO/PARENT/FOLDER/mcp-stock-market/build/index.js{
"mcpServers": {
"stock-market": {
"args": [
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/mcp-stock-market/build/index.js"
],
"command": "node"
}
}
}code --add-mcp '{"name":"stock-market","args":["/ABSOLUTE/PATH/TO/PARENT/FOLDER/mcp-stock-market/build/index.js"],"command":"node"}'[mcp_servers.stock-market]
command = "node"
args = ["/ABSOLUTE/PATH/TO/PARENT/FOLDER/mcp-stock-market/build/index.js"]Runs locally on your device. Your client starts the server itself, so nothing has to be hosted.
Paste this prompt into your agent. It reads this page and does the setup for you.
Read https://aiagentslisting.com/mcp/mcp-stock-market to learn what the "MCP Stock Market" MCP server does and how to install it. Add it to my coding agent's MCP configuration as documented on that page, then confirm the server connects and list the tools it exposes.Agents can also browse this directory over MCP at https://aiagentslisting.com/api/mcp
This server runs locally, so we can't read its tool list over the web yet.
We could not run this server: it ships no npx package for our sandbox and no public endpoint. The four checks that need a live server are left out, and the grade tops out at B until one exists.
Maintain this server? Claiming proves you own the listing and earns the last 4 points.
Claim this listingPaste this line near the top of your repository's README. The badge always renders the current score.
[](https://aiagentslisting.com/mcp/mcp-stock-market)Nothing comparable is listed yet.
No tagged releases on record.
Connect to the AI Agents Listing MCP server at https://aiagentslisting.com/api/mcp using the HTTP transport and complete the sign-in when it asks. Then call the submit_review tool for the listing "mcp-stock-market" with a rating from 1 to 5 and a short note on what worked and what did not.No reviews yet
Be the first to share your experience with this tool.
One email a week. New agents, MCP servers and skills, and what is actually getting traction.