MCP server providing real-time stock market data via Alpha Vantage API. Deploy to Railway for remote access from claude.ai scheduled tasks.
| Tool | Description | Rate |
|---|---|---|
get_full(ticker) |
All data in one call (price, PE, EPS, RSI, SMA, MACD, analyst ratings) | 6 API calls, ~75s |
get_quote(ticker) |
Current price, volume, change | 1 call |
get_overview(ticker) |
Fundamentals (PE, EPS, margins, market cap, analyst ratings) | 1 call |
get_rsi(ticker, period) |
RSI indicator (default 14-day) | 1 call |
get_sma(ticker, period) |
Simple Moving Average (50 or 200) | 1 call |
get_macd(ticker) |
MACD indicator | 1 call |
get_news(ticker) |
News sentiment for a ticker | 1 call |
get_news_general() |
General market news | 1 call |
pip install -r requirements.txt
python server.py # stdio (for Claude Code)
python server.py --remote # HTTP (for remote access)- Push this repo to GitHub
- Go to railway.com → New Project → Deploy from GitHub
- Set environment variable:
ALPHA_VANTAGE_API_KEY(or use the default) - Railway gives you an HTTPS URL like
https://mcp-server-xyz.railway.app
- Go to claude.ai → Settings → Connectors → Add custom connector
- Paste:
https://your-railway-url.railway.app/mcp - Done — scheduled tasks can now call the tools
claude mcp add market-data -- python /path/to/server.pyAlpha Vantage free tier: 5 API calls/minute, 25/day. get_full() uses 6 calls per ticker, so max ~4 tickers per day on free tier. Upgrade at alphavantage.co/premium for higher limits.