market-data-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| ALPACA_API_KEY | No | Alpaca API key for broker positions (optional). Get from Alpaca paper trading account. | |
| FINNHUB_API_KEY | Yes | Your Finnhub API key for market data. Get it at https://finnhub.io/register | |
| ALPACA_SECRET_KEY | No | Alpaca secret key for broker positions (optional). |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| market_quoteA | Get a real-time stock quote: price, % change, day high/low, and previous close. Backed by Finnhub free tier. Returns 'no data' for unknown/delisted symbols (Finnhub returns zeros for unknowns — we treat that as no data, never fabricate). Args: params: symbol (str) and response_format ('markdown'|'json'). Examples: - "What is Apple's current stock price?" -> symbol='AAPL' - "How much is NVIDIA up today?" -> symbol='NVDA' - "Get me a quote for Tesla" -> symbol='TSLA' |
| market_newsA | Fetch the latest market news — company-specific or general market headlines. With a symbol: returns top 5 news items for that ticker from the past 7 days. Without a symbol: returns top 5 general market headlines. Backed by Finnhub free tier. Args: params: symbol (optional ticker) and response_format ('markdown'|'json'). Examples: - "What's the latest news about Microsoft?" -> symbol='MSFT' - "Give me today's market news" -> (no symbol) - "Any news on Amazon this week?" -> symbol='AMZN' |
| market_calendarA | Fetch the earnings calendar for the next N days. Returns upcoming earnings reports with estimated EPS and revenue where available. NOTE: This endpoint may be premium-gated on the Finnhub free tier. If so, it degrades gracefully with an honest 'no data' message rather than fabricating events. Args: params: days (int, 1-30, default 7) and response_format. Examples: - "Which companies report earnings this week?" -> days=7 - "Show me earnings for the next 2 weeks" -> days=14 - "What's reporting tomorrow?" -> days=1 |
| market_scanA | Scan a watchlist of stocks and rank them by absolute % change (biggest movers first). Accepts up to 25 symbols. Unknown or delisted tickers are skipped gracefully. Useful for monitoring a portfolio or sector basket for unusual activity. Args: params: symbols (comma-separated string, max 25) and response_format. Examples: - "Which of AAPL, MSFT, GOOGL, AMZN, META is moving most today?" -> symbols='AAPL,MSFT,GOOGL,AMZN,META' - "Scan my tech watchlist: NVDA,AMD,INTC,TSM,AVGO" -> symbols='NVDA,AMD,INTC,TSM,AVGO' - "Show biggest movers in AAPL TSLA MSFT today" -> symbols='AAPL,TSLA,MSFT' |
| market_analyzeA | Composite market analysis: momentum score, news catalyst, and earnings proximity. Combines real-time quote (momentum), latest news headline (catalyst), and earnings calendar (risk flag) into a single scored verdict. Each component degrades gracefully — if news or calendar are unavailable, only quote is used. Score: -100 (strong selling pressure) to +100 (strong upward momentum). Args: params: symbol (str) and response_format ('markdown'|'json'). Examples: - "Give me a full read on Apple" -> symbol='AAPL' - "What's the momentum on NVIDIA right now?" -> symbol='NVDA' - "Analyze Tesla for me" -> symbol='TSLA' |
| broker_positionsA | Read open positions from an Alpaca paper trading account. OPTIONAL — requires ALPACA_API_KEY and ALPACA_SECRET_KEY in .env. If keys are absent, returns a graceful 'no data' message with setup instructions. Read-only: never places orders or moves money. Args: params: response_format ('markdown'|'json'). Examples: - "What positions do I have open in my paper account?" -> (no ticker needed) - "Show me my paper portfolio" -> (no ticker needed) |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cstamigo-droid/market-data-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server