sip-advisor-mcp
Market-Aware SIP Timing Advisor — FastMCP (воркшоп)
Python MCP-сервер примерно на 180 строк, который превращает живые данные индекса NSE в рекомендацию по увеличению / паузе SIP. Создан для вебинара mfAPIs × SunitechAI.
Дизайн: сервер не владеет данными. Сырые строки PE и OHLC для NIFTY 50 приходят из REST API MF Engine; логика процентиля оценки, ценового тренда и правил SIP живёт здесь, в Python. Именно это разделение — главный учебный момент.
Инструмент | Что делает |
| текущий PE + процентиль + z-score относительно 10-летней истории → дёшево / справедливо / дорого |
| DMA50/200, расстояние от 52-недельного максимума/минимума, доходность за 1/3/6 мес. → восходящий / боковой / нисходящий тренд |
| band (+ trend) → pause / continue / step_up + предлагаемая новая сумма |
Настройка
cd workshop/sip-advisor-mcp
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
cp .env.example .env # then paste MFAPI_TOKENMFAPI_TOKEN — это JWT access-token для пользователя с ролью партнёра / инвестора / администратора. Получите его из браузерной сессии zinni-app (DevTools → Application → Local Storage или вкладка Network) или через login API. Это не статический токен MCP — REST-эндпоинты используют обычную пользовательскую авторизацию.
Related MCP server: Upstox MCP Server
Запуск
# stdio — for Claude Desktop
python server.py
# HTTP — for ChatGPT developer mode / remote clients (serves :8000/mcp)
MCP_TRANSPORT=http python server.pyБыстрая проверка без LLM:
pip install fastmcp # includes the CLI
fastmcp run server.py --transport http &
npx @modelcontextprotocol/inspector # connect to http://localhost:8000/mcpПодключение к Claude
Claude Desktop — объедините claude_desktop_config.example.json с ~/Library/Application Support/Claude/claude_desktop_config.json (исправьте абсолютный путь + токен), перезапустите Claude Desktop.
Claude Code
claude mcp add sip-advisor -- python /abs/path/workshop/sip-advisor-mcp/server.py
# set MFAPI_TOKEN in the shell that launches claude, or via --envПодключение к ChatGPT
Запустите в HTTP-режиме, откройте доступ (cloudflared tunnel --url http://localhost:8000 или ngrok http 8000), затем Settings → Connectors → Advanced → Developer mode → Add добавьте URL https://…/mcp. Обычным коннекторам ChatGPT требуются инструменты search/fetch; этот сервер работает только через developer mode или Responses API.
Демонстрационный сценарий
«Я делаю SIP в NIFTY 50 на ₹10,000 в месяц. Учитывая текущее состояние рынка, стоит ли увеличить сумму, продолжить или поставить на паузу?»
Модель последовательно вызывает get_nifty_valuation_context → get_nifty_trend → recommend_sip_action(band, trend, 10000) и объясняет вызов через процентиль PE, тренд и дату as_of.
Примечание о свежести данных
Продовые таблицы OHLC / оценки NSE могут отставать от живого рынка на недели. Инструменты возвращают as_of — всегда озвучивайте это значение в демо и исправьте загрузку данных в репозитории данных перед запуском.
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 Connectors
Portfolio analytics + US-equity market research for AI clients. ChatGPT deep-research compat.
Analyze any Nifty 500 stock with AI — price action, demand zones, technicals & screener.
Real-time news with bias scoring, live market data, and AI-powered options pricing
13-model stock valuation engine for AI agents - fair values for 5,900+ US stocks, updated daily.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables quantitative trading analysis with 12 tools for real-time market data, 28+ technical indicators, FinBERT-powered news sentiment analysis, and automated trading signal generation for stocks and forex.1
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered trading and portfolio management through Upstox API integration. Supports portfolio rebalancing strategies with LLM inference for automated trading decisions.
- FlicenseNot gradedqualityCmaintenanceReal-time Indian stock market sentiment intelligence. Provides NSE/BSE news sentiment, aggregated stock & sector signals, and technical analysis.1
- AlicenseNot gradedqualityDmaintenanceConnects AI assistants to real-time Indian stock market data with 34 tools for search, screening, analysis, portfolio tracking, and market insights across all NSE and BSE stocks.12962MIT
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/girishgupta211/sip-advisor-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server