sachinjhamb/stockMcpServerAQnpm
3.2
If you are the rightful owner of stockMcpServerAQnpm and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to dayong@mcphub.com.
A Model Context Protocol server providing stock market data tools.
Tools
3
Resources
0
Prompts
0
Stocks MCP Server
A Model Context Protocol server providing stock market data tools.
Tools
- get_trending_stocks - Fetch trending stocks by market
- get_stock_details - Get detailed stock information
- get_market_sentiment - Analyze market sentiment
Setup
npm install
# Local stdio server
npm start
# Remote HTTP server
npm run start:http
Usage
The server now uses real APIs:
- Yahoo Finance - Free, no API key needed (primary data source)
- RSS News Feeds - Free sentiment analysis
- Optional APIs - Copy
.env.exampleto.envand add keys for enhanced data
API Sources
Free (No API Key Required):
- Yahoo Finance API - Stock quotes and market data
- Yahoo Finance RSS - News headlines for sentiment
Optional (Free Tier Available):
- Alpha Vantage - 25 requests/day
- Financial Modeling Prep - 250 requests/day
- News API - 1000 requests/month
Connection Methods
Local (stdio):
node index.js
Remote (HTTP/SSE):
node server-http.js
# Server runs on http://localhost:3020
# SSE endpoint: http://localhost:3020/sse
GUI Client:
cd gui-client
npm install
npm start
# GUI runs on http://localhost:3011
Security
- No API keys required for basic functionality
- Environment variables for optional keys
- Input validation and error handling
- CORS enabled for remote access
- No CVEs in dependencies