Stock Assistant MCP Server
Click on "Deploy 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 Assistant MCP ServerWhat's the current price of AAPL?"
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 Assistant MCP Server
This project implements a simple Model Context Protocol (MCP) server that provides real-time stock data, historical analysis, and stock comparisons using the Yahoo Finance API.
This MCP server uses SSE transport and is authenticated with an API key.
Running locally
Prerequisites:
Python 3.13 or later
Run the server locally:
uv venv
uv sync
# linux/macOS
export API_KEYS=<AN_API_KEY>
# windows
set API_KEYS=<AN_API_KEY>
uv run fastapi dev main.pyVS Code MCP configuration (mcp.json):
{
"inputs": [
{
"type": "promptString",
"id": "my-api-key",
"description": "Stock Assistant API Key",
"password": true
}
],
"servers": {
"stock-mcp-sse": {
"type": "sse",
"url": "http://localhost:8000/sse",
"headers": {
"x-api-key": "${input:my-api-key}"
}
}
}
}Related MCP server: Yahoo Finance MCP Server
Deploy to Azure Container Apps
az containerapp up -g <RESOURCE_GROUP_NAME> -n stock-mcp --environment mcp -l westus --env-vars API_KEYS=<AN_API_KEY> --source .If the deployment is successful, the Azure CLI returns the URL of the app. You can use this URL to connect to the server from Visual Studio Code.
This server cannot be deployed
Maintenance
Related MCP Connectors
Scrape stock quotes, historical prices, and financial statements from Yahoo Finance.
Fetch current stock prices and key data for symbols across global markets. Look up companies like…
Analyze stocks with summaries, price targets, and analyst recommendations. Track SEC filings, divi…
Live market data, financial analysis, and portfolio research tools across 10,000+ tickers.
Related MCP Servers
- FlicenseNot gradedqualityFmaintenanceProvides 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.4-
- AlicenseNot gradedqualityDmaintenanceProvides real-time stock quotes, historical price data, financial news, and multi-stock comparisons using Yahoo Finance data. Enables users to access comprehensive financial market information through natural language queries.541MIT
- AlicenseNot gradedqualityNot gradedmaintenanceProvides 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.-
- AlicenseNot gradedqualityDmaintenanceProvides real-time and historical financial market data from Yahoo Finance, including stock prices, options chains, and company news. It also enables technical analysis calculations like moving averages and RSI for comparing or analyzing stock performance.3MIT