IndiaQuant MCP
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., "@IndiaQuant MCPget live price of RELIANCE.NS"
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.
IndiaQuant MCP – AI Stock Market Assistant
IndiaQuant MCP is a real-time Indian stock market assistant built using Python and Model Context Protocol (MCP). It integrates with Claude Desktop to provide live stock market intelligence such as stock prices, trading signals, options data, sentiment analysis, and portfolio tracking.
The system uses only free APIs and open-source libraries.
Project Overview
Normally AI assistants like Claude do not have access to live stock market data.
This project solves that problem by building an MCP server that connects Claude to a stock market backend.
Architecture:
Claude Desktop
MCP Server (mcp_server.py)
FastAPI Backend (main.py)
Free Market APIs (yfinance, NewsAPI, Alpha Vantage)
Claude can then call the MCP tools and receive real-time market data.
Features
This project implements the following capabilities:
Fetch live stock prices from NSE
Generate AI trading signals (BUY / SELL / HOLD)
Analyze options chain data
Calculate option Greeks (Delta, Gamma, Theta, Vega)
Detect unusual options activity
Scan the market for opportunities
Analyze news sentiment
Show sector performance heatmap
Maintain a virtual trading portfolio
Calculate real-time portfolio profit and loss
All tools return live market data using free APIs.
Technologies Used
Python
FastAPI
yfinance
pandas
numpy
pandas-ta
SQLite
Model Context Protocol (MCP)
Claude Desktop
Project Structure
indiaquant-project
main.py # FastAPI backend server mcp_server.py # MCP server exposing tools to Claude requirements.txt # Python dependencies README.md # Project documentation
Installation
cd indiaquant-mcp Install dependencies
pip install -r
requirements.txt
fastapi uvicorn yfinance pandas numpy pandas-ta requests mcp scipy sqlite-utils python-dotenv newsapi-python alpha_vantage
Running the Backend
Start the FastAPI server: uvicorn main:app --reload
This starts the API that provides market data and analysis.
MCP Configuration
To connect the project with Claude Desktop, create the following configuration file:
C:\Users\MY_USERNAME\AppData\Roaming\Claude\claude_desktop_config.json
Add this configuration:
{
"mcpServers": {
"indiaquant": {
"command": "C:/Users/USERNAME/AppData/Local/Programs/Python/Python314/python.exe",
"args": [
"C:/Users/USERNAME/Desktop/indiaquant-project/mcp_server.py"
]
}
}
}
After adding the configuration, restart Claude Desktop.
Claude will automatically start the MCP server.
Example Queries in Claude
After connecting the MCP server, Claude can call the tools.
Example queries:
Use indiaquant to get live price of RELIANCE.NS
Use indiaquant to generate signal for HDFCBANK.NS
Use indiaquant to detect unusual options activity on INFY.NS
Use indiaquant to scan the market
Claude will call the MCP tools and return live market data.
APIs Used
This project only uses free APIs.
yfinance – live stock prices and options chain
NewsAPI – news sentiment analysis
Alpha Vantage – macro indicators
pandas-ta – technical indicators
No paid APIs are used.
Design Decisions
FastAPI was chosen for building a lightweight backend API.
yfinance provides free access to NSE stock data.
SQLite is used for storing virtual portfolio data because it is simple and portable.
The MCP layer allows Claude to communicate with the backend using tools.
Future Improvements
Possible future enhancements include:
• Deploy the server to cloud for 24/7 availability
• Add Redis caching for faster market data access
• Improve trading signals using machine learning
• Integrate real brokerage APIs for real trading
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server for Indian NSE/BSE stock research: 59 tools for quotes, financials and ratios, peers, shareholding and pledge, filings with extracted facts, screens, F&O and FII/DII context. Source and freshness on every answer; no buy/sell calls.
Market forecasts with their own track record, inside Claude, ChatGPT and other MCP apps.
Stock analysis MCP: 38 indicators, 7 optimizers, 8 backtests, US + India sectors.
> TradingMCP puts a market analyst inside your AI assistant. Paste one URL into Claude, ChatGPT, Cursor, VS Code or any MCP client and ask in plain language: screen for breakouts, run a multi-timeframe analysis, backtest a strategy with walk-forward validation, scan for smart-money and volume signals, or get a one-prompt morning market brief. In clients that support MCP Apps, price charts and the Markets panel are drawn right in the chat. > 40+ tools covering crypto (real-time), stocks, ETFs, FX, futures and commodities across major global exchanges. > Hosted, nothing to install: Pro $9/month (2,500 tool calls) or Pro+ $29/month (10,000). Paid upfront with a 14-day money-back guarantee; your API key arrives right after checkout. > Built on the open-source tradingview-mcp core (MIT, ~5k GitHub stars): self-host it free, or use the hosted version with zero ops. > For research and education, not financial advice. Not affiliated with TradingView
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceMCP Server for Indian Options — Real-time option chains, Greeks, 34+ strategies, OI analysis, IV smile, Max Pain. Works with Claude Desktop. Replaces Sensibull.22 npm14MIT
- FlicenseNot gradedqualityDmaintenanceReal-time Indian stock market assistant with virtual trading, technical analysis, options chain, and portfolio management, using free APIs and integrated with Claude Desktop via MCP.-
- AlicenseNot gradedqualityDmaintenanceMCP server providing real-time Indian stock market data through 15 tools, including stock details, historical data, market overview, and news. Works with Claude Desktop, Claude Code, Cursor, Windsurf, and other MCP clients using an API key from IndianAPI.in.MIT
- AlicenseBqualityCmaintenanceComprehensive MCP server for Indian stock market with 60 tools covering NSE/BSE, derivatives, mutual funds, technicals, and more, requiring no API keys. Enables users to access live market data, analyze indicators, and manage investments through natural language.4601MIT