stock-mcp-server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@stock-mcp-serveranalyze profitability turnaround for TSLA"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Stock MCP Server
A Model Context Protocol (MCP) server that provides real-time stock price information and profitability analysis using Yahoo Finance API.
Features
Get real-time stock prices for individual symbols
Fetch multiple stock prices at once
Comprehensive financial data and fundamental analysis
Profitability turnaround analysis - Identify stocks that have turned from loss to profit
Profit turnaround screening - Screen multiple stocks for recent profitability improvements
Returns comprehensive stock data including price, change, volume, and market cap
Built with TypeScript and Zod for type safety
Related MCP server: Financial Data MCP Server
Installation
npm install
npm run buildUsage
Development
npm run devProduction
npm startTools Available
get_stock_price
Get real-time stock price information for a single stock symbol.
Parameters:
symbol(string): Stock symbol (e.g., "AAPL", "GOOGL", "TSLA")
get_multiple_stock_prices
Get real-time stock price information for multiple stock symbols.
Parameters:
symbols(array): Array of stock symbols (e.g., ["AAPL", "GOOGL", "TSLA"])
get_financial_data
Get comprehensive financial data and fundamental analysis metrics for a stock.
Parameters:
symbol(string): Stock symbol (e.g., "AAPL", "GOOGL", "TSLA")
analyze_profitability_turnaround
Analyze whether a stock has turned from loss to profit in recent quarters.
Parameters:
symbol(string): Stock symbol (e.g., "TSLA", "UBER")
Returns:
turnAroundStatus: "profit_turnaround", "loss_turnaround", "continued_profit", or "continued_loss"currentQuarterNetIncome: Latest quarter's net incomepreviousQuarterNetIncome: Previous quarter's net incomequarterlyChange: Percentage change in net incomeCompany and market data
screen_profit_turnaround_stocks
Screen multiple stocks to find those that have recently turned profitable.
Parameters:
symbols(array): Array of stock symbols to analyzeminMarketCap(number, optional): Minimum market capitalization filtermaxMarketCap(number, optional): Maximum market capitalization filter
Returns:
Array of stocks with turnAroundStatus: "profit_turnaround", sorted by quarterly improvement percentage.
Testing
# Test profitability analysis functionality
node test_profitability.jsConfiguration for Claude Desktop
Add the following to your Claude Desktop configuration file:
{
"mcpServers": {
"stock-server": {
"command": "node",
"args": ["/path/to/stock-mcp-server/dist/index.js"]
}
}
}Project Structure
stock-mcp-server/
├── src/
│ ├── services/
│ │ └── stockService.ts # Stock price service
│ ├── types/
│ │ └── schema.ts # Zod schemas and types
│ └── index.ts # MCP server entry point
├── dist/ # Compiled JavaScript output
├── package.json
├── tsconfig.json
└── README.mdDependencies
@modelcontextprotocol/sdk: MCP SDK for server implementationyahoo-finance2: Yahoo Finance API clientzod: Runtime type validation and schema definition
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityFmaintenanceProvides real-time stock market data and financial analysis through Yahoo Finance integration. Enables users to get quotes, historical prices, fundamentals, dividends, analyst forecasts, and growth projections for any stock symbol.Last updated4
- Flicense-qualityDmaintenanceProvides real-time stock data analysis, portfolio management, technical analysis with EMA/MACD indicators, and automated trading recommendations with confidence levels using Yahoo Finance API.Last updated
- Alicense-quality-maintenanceProvides real-time financial data from Yahoo Finance, enabling stock price lookups, historical data analysis, company information retrieval, and multi-stock comparisons through natural language queries.Last updated
- AlicenseAqualityDmaintenanceProvides comprehensive financial analysis and real-time market data including stock information, options chains, technical indicators, financial statements, earnings calendars, and market sentiment indicators through integration with yfinance and other financial APIs.Last updated14MIT
Related MCP Connectors
Real-time stock quotes and technical signals: RSI, MACD, SMA crossovers via Yahoo Finance.
Provide real-time cryptocurrency price data and market analysis.
Look up the latest stock prices by ticker symbol across global markets. Get current price and esse…
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/makiichikawa/stock-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server