StockMcp
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., "@StockMcpGet company details for RELIANCE"
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 Analysis using MCP Local LLM (Ollama Qwen3) with LangChain
This project demonstrates how to build a fully local AI assistant that provides detailed stock analysis using:
MCP (Model Context Protocol): Enables structured tool usage by the language model.
Ollama: A tool for running large language models locally.(Qwen3)
LangChain: A framework for developing applications powered by language models and run as MCP Client
BeautifulSoup: For web scraping financial data from Screener.in.
š¦ Features
š Company Details: Retrieve company name, current price, market cap, PE ratio, ROE, ROCE, and more.
š Profit Analysis: Extract quarterly and yearly net profit data.
š„ Shareholding Patterns: Analyze holdings by promoters, DIIs, FIIs, and the public.
š§ Tool Integration: Seamless integration with MCP tools for enhanced functionality.Related MCP server: stock-rag-mcp
āļø Configuration
MCP Server Setup
The MCP server is defined in mcp_config.json.
{
"mcpServers": {
"stock": {
"command": "python",
"args": ["StockMcp.py"],
"transport": "stdio"
}
}
}
Give me the company details of CREDITACC.NSš ļø Project Structure
āāā StockMcp.py # MCP server with tool definitions
āāā requirements.txt # Python dependencies
āāā README.md # Project documentationš Resources
MCP Github
Ollama Documentation
LangChain MCP Documentation
BeautifulSoup DocumentationThis server cannot be deployed
Maintenance
Related MCP Connectors
NSE/BSE stock data via Tickertape as JSON: index lists, screener, 10-year fundamentals.
1Analyze any Nifty 500 stock with AI ā price action, demand zones, technicals & screener.
SEC EDGAR fundamentals as agent tools: look up or screen US public companies. Free, no key, CC0.
SEC filings and financial data for AI agents: 59 tools for statements, valuation and supply chains.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides financial data for Indian listed companies from screener.in, enabling users to search companies and fetch financial statements, ratios, and peer comparisons.27 npm1MIT
- FlicenseNot gradedqualityDmaintenanceEnables RAG-based querying of local stock company data using a local LLM and vector database, providing tools to ask questions, search raw chunks, and list documents.-
- AlicenseBqualityBmaintenanceExposes Screener.in data for Indian stocks (NSE/BSE) ā fundamentals, financial statements, peers, and price/EPS time-series ā as tools any MCP client can call.47 npm5MIT
- AlicenseAqualityBmaintenanceEnables LLM clients to perform fundamental analysis of NSE/BSE-listed Indian stocks, covering financial statements, ratios, valuation, screening, and investment memos using Yahoo Finance data.281MIT