Back to Home
alphavantage icon

alpha_vantage_mcp

Verified Safe

by alphavantage

Overview

Enables LLMs and agentic workflows to seamlessly interact with real-time and historical stock market data through the Model Context Protocol (MCP).

Installation

Run Command
uvx av-mcp YOUR_API_KEY

Environment Variables

  • ALPHA_VANTAGE_API_KEY
  • DOMAIN_NAME
  • CDN_BUCKET_NAME
  • CDN_DOMAIN
  • MAX_RESPONSE_TOKENS

Security Notes

The OAuth 2.1 implementation in `server/src/oauth.py` is simplified for statelessness. It embeds the user's Alpha Vantage API key directly within base64-encoded authorization codes and uses the API key itself as the client secret for the client_credentials grant. This approach is not a robust OAuth implementation and could expose the Alpha Vantage API key if authorization codes are intercepted or if the client secret is compromised. While `base64` is not encryption, it is used for short-lived codes. Additionally, API keys can be passed via query parameters, increasing the risk of exposure in server logs. The core server application in the `server/` directory does not contain obvious malicious patterns like `eval` or command injection, and uses standard, well-maintained libraries. However, it's important to note that the companion web UI component (`web/components/Markdown.tsx`) present in the same repository utilizes `eval(onClick)` which represents a severe Cross-Site Scripting (XSS) vulnerability if user-supplied content is rendered via this component. This vulnerability is not within the server's core functionality but exists in a part of the repository.

Similar Servers

Stats

Interest Score50
Security Score6
Cost ClassLow
Avg Tokens750
Stars62
Forks15
Last Update2026-01-19

Tags

Financial DataLLM IntegrationAPI ServerMCPStock Market