Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"mcp-server-alphavantage": {
"args": [
"mcp"
],
"command": "uvx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
This project implements a Model Context Protocol (MCP) server designed for stock market analysis. It provides real-time stock price data, calculates key technical indicators like moving averages and RSI, and enables trend detection using AlphaVantage API. The server can be integrated with LLMs like Claude for enhanced financial insights.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
uvx 'mcp' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default
### Description The Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default for HTTP-based servers. When an HTTP-based MCP server is run on localhost without authentication using `FastMCP` with streamable HTTP or SSE transport, and has not configured `TransportSecuritySettings`, a malicious website could exploit DNS rebinding to bypass same-origin policy restrictions and send requests to the local MCP server. This could allow an attacker to invoke tools or ac
MCP Python SDK vulnerability in the FastMCP Server causes validation error, leading to DoS
A validation error in the MCP SDK can cause an unhandled exception when processing malformed requests, resulting in service unavailability (500 errors) until manually restarted. Impact may vary depending on the deployment conditions, and presence of infrastructure-level resilience measures. Thank you to Rich Harang for reporting this issue.
MCP Python SDK has Unhandled Exception in Streamable HTTP Transport, Leading to Denial of Service
If a client deliberately triggers an exception after establishing a streamable HTTP session, this can lead to an uncaught ClosedResourceError on the server side, causing the server to crash and requiring a restart to restore service. Impact may vary depending on the deployment conditions, and presence of infrastructure-level resilience measures. Thank you to Rich Harang for reporting this issue.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in finance / analytics
MCP Server for GCP environment for interacting with various Observability APIs.
⚡ A Simple / Speedy / Secure Link Shortener with Analytics, 100% run on Cloudflare.
Real-time financial market data: stocks, forex, crypto, commodities, and economic indicators
A Model Context Protocol server for building an investor agent
MCP Security Weekly
Get CVE alerts and security updates for MCP Server AlphaVantage and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
This project implements a Model Context Protocol (MCP) server designed for stock market analysis. It provides real-time stock price data, calculates key technical indicators like moving averages and RSI, and enables trend detection using AlphaVantage API. The server can be integrated with LLMs like Claude for enhanced financial insights.
I developed this MCP server to simplify stock market analysis by automating data fetching and technical indicator calculations. The goal is to help traders and investors make data-driven decisions by leveraging AI-assisted insights. By using MCP, this server can seamlessly connect with LLMs, allowing them to retrieve financial data and perform analysis in real time.
Before getting started, ensure you have the following:
To set up the project, follow these steps:
Using uv (recommended):
uv add mcp[cli] httpx
Using pip:
pip install mcp httpx
git clone https://github.com/your-username/mcp-stock-analysis.git
cd mcp-stock-analysis
Create a .env file and add your AlphaVantage API key:
ALPHA_VANTAGE_API_KEY=your_api_key_here
To start the server, run:
python server.py
Or using MCP:
mcp install server.py
For development mode:
mcp dev server.py
The server fetches real-time stock price data from AlphaVantage:
@mcp.tool()
def fetch_intraday_data(symbol: str, interval: str = "5min") -> dict:
"""Fetches intraday stock price data."""
url = f"https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol={symbol}&interval={interval}&apikey={API_KEY}"
response = httpx.get(url)
return response.json()
Moving averages help smooth out price data to identify trends:
@mcp.tool()
def calculate_moving_averages(prices: list[float], short_window: int = 50, long_window: int = 200) -> dict:
"""Calculates short-term and long-term moving averages."""
short_ma = sum(prices[-short_window:]) / short_window
long_ma = sum(prices[-long_window:]) / long_window
return {"short_ma": short_ma, "long_ma": long_ma}
@mcp.tool()
def detect_trend_crossover(short_ma: float, long_ma: float) -> str:
"""Detects if a Golden Cross or Death Cross has occurred."""
if short_ma > long_ma:
retur
... [View full README on GitHub](https://github.com/Hasan-Syed25/MCP-Server-AlphaVantage#readme)