Indian Stock Analysis MCP Server
Overview
The Indian Stock Analysis MCP Server is a Model Context Protocol server designed to interact with MongoDB stock data, providing portfolio recommendations and market insights specifically for the Indian stock market (NSE/BSE).
To use the server, clone the repository, install the required dependencies, configure the environment variables, and start the server. Then, connect it to the Claude Desktop app to analyze your stock portfolio.
- Exclusive focus on NSE and BSE listed stocks. - Direct access to MongoDB for stock data. - Integration with Alpha Vantage API for real-time market data. - Knowledge graph for persistent stock analysis. - Modular architecture for maintainability. - Rate limiting to handle API limitations.
- Analyzing Indian stock portfolios for performance insights.
- Providing personalized stock recommendations based on financial metrics.
- Monitoring market trends and identifying potential investment opportunities.
- Conducting technical analysis on Indian stocks.
Add to your AI client
Use these steps to connect Indian Stock Analysis MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"stock-mcp-server-ingpoc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-stock-mcp-server-ingpoc"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"stock-mcp-server-ingpoc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-stock-mcp-server-ingpoc"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"stock-mcp-server-ingpoc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-stock-mcp-server-ingpoc"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"stock-mcp-server-ingpoc": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-stock-mcp-server-ingpoc"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"stock-mcp-server-ingpoc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-stock-mcp-server-ingpoc"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"stock-mcp-server-ingpoc": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-stock-mcp-server-ingpoc"
]
}
}
}FAQ
Can this server analyze stocks from markets other than India?
No, it is exclusively designed for the Indian stock market (NSE/BSE).
Is there a cost associated with using the Alpha Vantage API?
The server supports the free tier of the Alpha Vantage API, which has limitations on the number of calls.
How can I troubleshoot connection issues?
Check the MongoDB connection settings and ensure the server is running properly.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2616,"uuid":"cad4c2ef-42a1-40e3-9c82-1229052c54e0","name":"stock_mcp_server","title":"Indian Stock Analysis MCP Server","description":"","avatar_url":"https://avatars.githubusercontent.com/u/32293006?v=4","created_at":"$D2025-03-13T09:12:32.182Z","updated_at":"$D2025-03-13T09:41:06.604Z","status":"created","author_name":"ingpoc","author_avatar_url":"https://avatars.githubusercontent.com/u/32293006?v=4","tags":"stock-analysis,mcp-server,portfolio-recommendations","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/ingpoc/stock_mcp_server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-03-11 00:06:45\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]