etmoney-lyr
ET Money には公開APIがありません。エージェントはそれを求めています。 etmoney-lyr は ET Money のリサーチサーフェスをリバースエンジニアリングし、ローカルMCPサーバーとして提供します: 67カテゴリすべての投資信託、株式スクリーニング、NIFTY指数とセクター構成銘柄を、JSON構造化出力の 型付きツール10本 として。読み取り専用、ログイン不要、APIキー不要です。
実物を確認する
実際のセッションで、実際の数字が、ツールからそのまま出力されています ― 手で書いたものではありません:
// mf_search {"query": "parag parikh"}
{ "total": 7, "results": [ { "scheme_id": 19230, "name": "Parag Parikh Flexi Cap Fund Regular-Growth", ... } ] }
// mf_detail {"scheme_id": 19230}
{
"name": "Parag Parikh Flexi Cap Fund Regular-Growth",
"riskometer": "Very High",
"nav": 82.81,
"expense_ratio_total_pct": 1.29,
"trailing_returns": [ { "period": "1 Year", "fund_pct": -2.02, "category_avg_pct": 1.58 }, "...9 more horizons" ],
"holdings": [ { "name": "HDFC Bank Ltd.", "bucket": "EQUITY", "pct": 7.55 }, "...84 more" ],
"sectors": [ { "name": "Financial", "pct": 25.69 }, "...17 more" ],
"risk_ratios_fund": { "sharpeRatio": 0.76, "beta": 0.60, "alpha": 3.48 },
"risk_ratios_category": { "sharpeRatio": 3.54, "beta": 0.57 },
"managers": [ "Raj Mehta", "Rajeev Thakkar", "+4" ]
}
// mf_compare {"scheme_ids": [19230, 25643]}
{ "funds": [ { "name": "Parag Parikh Flexi Cap...", "etm_rank": 9, "rating": 5, "sharpe": 0.76 },
{ "name": "Motilal Oswal Flexi Cap...", "etm_rank": 7, "rating": 3, "sharpe": 0.75 } ] }上記の数字はすべてET Moneyのページからパースされたもので、手入力ではありません。
検証済み: 取得済みフィクスチャに対するオフラインテスト195件・全ツールとパラメータの境界をカバーするライブ/一気通貫テスト54件・実挙動のstdioバイナリとDockerイメージを通じたプロトコルハンドシェイクをテスト済みです。
Related MCP server: financial-datasets
このツールでできること
ツール | エージェントができる質問 | |
数字 投信 |
| 大規模株 → ゴールド → インデックスファンド → リタイアメントまで全67カテゴリのスクリーニング、保有銘柄とリスク比率付きの「レポートカード」、最大4ファンドの縦検討 |
株式 |
| 値上がり・値下がり・52週高安・マルチバッガーのスクリーニング、NIFTY 50–500半年確報、セクター別リスト、銘柄ごとのファンダメンタルズ |
つまり: mf_search("small cap") → mf_detail(6558) → mf_compare([6558, 11077]) で完結します。
インストール
# uv from GitHub — the one-liner
uv tool install git+https://github.com/ishan-parihar/etmoney-lyr.git
# or the bootstrapping installer (installs uv if missing; pipx/pip fallbacks)
curl -sSL https://raw.githubusercontent.com/ishan-parihar/etmoney-lyr/main/install.sh | bash
# upgrade anytime
uv tool upgrade etmoney-lyrPython 3.11+ が必要です — uv が自動で用意します。
エージェントからの接続
{
"mcpServers": {
"etmoney": {
"command": "etmoney-lyr",
"args": []
}
}
}以上です。同じバイナリは2つのモードを持ちます: 対話型ターミナルを起動するとヘルプのホームビューが表示され、パイプされたstdinはMCPサーバーとして動作します。
etmoney-lyr search "hdfc small cap" # TOON output built for agents
etmoney-lyr fund 19230 --full # full report card
etmoney-lyr stocks top_gainers # market screens
etmoney-lyr categories # category id reference
etmoney-lyr --list-tools --fields stock # tool inventory
docker build -t etmoney-lyr .
docker run -i --rm etmoney-lyr # stdio MCP server in a containerCLI の出力はデフォルトで TOON(トークン効率重視)、必要に応じて --json で生データを出力します。エラーは機械判読可能(error: / help: 行)で、終了コードは常に2です。
仕組み
ET Money のWebアプリは、3つの経路でデータを外部へ露出しています。それぞれに専用パーサーをあてかねられ、壊れやすいHTMLスクレイパーは使っていません:
JSON APIs スクリーナーと検索(同サイトのXHR契約)
埋め込み JS DTO ファンドページで
<script>var compSchemeDTO = …の中にレポートカードが完成済みJSONとして入っています。HTMLテーブルを解析するよりはるかに良い方法ですNext.js RSC flight payload 株価ページで
self.__next_f.push()チャンクから再構築
パーサーは実際のページのコミット済みフィクスチャコピーに固定されているため、マークアップがずれても黙って数字を壊すことはなく、テストで明確に検出できます。インド式の数値表記(₹1,48,429 Cr、13 yrs 3 m)はすべて float に正規化します。
正直な制限
リサーチ専用。 注文・SIP・KYC・ポートフォリオの書き込みは意図的にできません。ポートフォリオトラッキングと Genius のインサイトはログインの先にありスコープ外です。
アプリ限定データ(インタラクティブな ET Money Rank スコアカード・Genius 判定)は公開しません。公開ページに含まれるランク コメント は対象としています。
上流の変更: ET Money はいつでもページを変更できます。フィクスチャテストで構造崩れを検知します。パーサーを変えたら
python scripts/live_check.pyを実行しましょう。
開発
git clone https://github.com/ishan-parihar/etmoney-lyr && cd etmoney-lyr
uv sync --dev
uv run pytest # 195 tests, fully offline via fixtures
uv run ruff check . # lint
uv run python scripts/live_check.py # optional: 54 checks against live site-lyr ファミリー(twitter-lyr、reddit-lyr、swiggy-lyr)の一部です。「1プラットフォーム、1つのMCPサーバ、1つのAXI準拠CLI」という設計を共通です。
ライセンス
MIT — 詳しくは LICENSE を参照してください。ET Money / 360 ONE とは一切関係ありません。データは公開されたリサーチ情報です。ここにある内容は投資助言ではありません。
Available Tools
10 toolsindex_stocksC
Constituents of major NSE indices with live metrics.
Inputs: index (required), limit. Returns: object
mf_categoriesA
All fund categories with ids (use with mf_list's category param).
Inputs: no named parameters. Returns: object
mf_compareA
Side-by-side compare of 2-4 funds (returns, risk ratios, expense, rank).
Inputs: scheme_ids (required). Returns: object
mf_detailA
Full fund report card by scheme id: NAV, returns vs category, expense breakdown, holdings, sectors, risk ratios, peers, managers, tax treatment.
Inputs: scheme_id (required). Returns: object
mf_featuredD
ET Money curated lists: best_mutual_funds, best_sip_funds, best_index_funds, best_gold_funds, low_risk, high_return, retirement, beginners, better_than_fd...
Inputs: theme (required). Returns: object
mf_listB
Browse/screen funds across all 67 categories (index, gold, silver, FoF, sectoral, debt durations, hybrid, retirement, international...).
Inputs: page, size, group, sort_by, +4 more. Returns: object
mf_searchB
Search mutual funds by name (e.g. 'parag parikh flexi', 'small cap').
Inputs: query (required), limit. Returns: object
sector_stocksC
Stocks grouped by ET Money sector pages.
Inputs: sector (required), limit. Returns: object
stock_detailB
Stock overview by numeric id or '/stocks//' path: price, day change, returns across horizons, scores, peer fundamentals.
Inputs: stock_ref (required). Returns: object
stock_screenC
ET Money market-data screens (gainers/losers/52w extremes/multibagger/ bluechip/most active/dividend yield) with price, PE, market cap per stock.
Inputs: screen (required), limit. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool targets a distinct resource and operation. Mutual fund tools (mf_*) are separated by action (search, detail, list, compare, featured, categories) and stock tools (stock_screen, index_stocks, sector_stocks, stock_detail) cover distinct data views. No two tools appear to do the same thing.
Mutual fund tools share a consistent 'mf_' prefix pattern. Stock tools are slightly inconsistent: 'stock_screen' and 'stock_detail' use 'stock_', while 'index_stocks' and 'sector_stocks' embed the resource type before 'stocks'. This is a minor deviation from a uniform pattern but still predictable and readable.
With 10 tools, the server is well-scoped for covering two asset classes (mutual funds and stocks). Each tool serves a clear purpose, and the count is within the optimal 3-15 range, neither bloated nor insufficient.
Mutual fund coverage is strong (search, detail, list, compare, featured, categories), but stock coverage has a notable gap: no tool for searching stocks by name, requiring users to already know stock IDs or slugs. This limits discovery and may cause agent failures when trying to locate a specific stock.
Maintenance
Related MCP Connectors
Real SEC, 13F, insider, congress & macro data your AI agent can cite. Hosted MCP, 24 tools.
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.
Web search, structured extraction, page monitor, link check & CVE scan for AI agents over MCP.
100+ MCP tools for AI agents: content metadata, trade intelligence, business-expertise analysis.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables AI agents to fetch Indian mutual-fund NAVs and NSE market data, calculate GST and income-tax amounts, and look up RBI policy rates, with provenance blocks for citations. Works with any MCP client over stdio or HTTP.1722 PyPIMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to query financial datasets, including institutional holders, insider transactions, investor portfolios, and SEC filings, via MCP tools.77 npmMIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to research Indian stock markets by accessing NSE/BSE corporate filings with measured price reactions, fundamentals, a 108-metric screener, IPO pipeline, FPI flows, results calendar, and daily market briefings through MCP tools.2MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to search, screen, and analyze 8,200+ NSE and BSE listed stocks through 55 tools covering live quotes, quarterly financials, technical indicators, a 326-ratio screener, FII/DII flows, option chains and IV, corporate filings, IPOs, bulk deals, and portfolio P&L. It can be connected remotely over OAuth or locally via npx/uvx from Claude, ChatGPT, Cursor, VS Code, Codex, Gemini CLI, and other MCP clients.MIT