Skip to main content
Glama
etmoney-lyr

etmoney-lyr

ET Money에는 공개 API가 없습니다. 그런데 당신의 에이전트는 API가 필요합니다. etmoney-lyr는 ET Money의 리서치 서피스(research surfaces)를 리버스 엔지니어링해서 로컬 MCP 서버로 만들어 줍니다: 67개 뮤추얼 펀드 카테고리 전체, 주식 시장 스크리너, NIFTY 지수 및 섹터 구성종목을 모아 구조화된 JSON 출력을 반환하는 10개의 타입화된 도구로 제공합니다. 읽기 전용이며 로그인도 키도 필요 없습니다.


실제 동작 모습

실제 세션, 실제 숫자 — 도구에서 그대로 가져온 결과입니다.

// 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

다루는 범위

도구

에이전트가 요청할 수 있는 것

뮤추얼 펀드

mf_search mf_list mf_detail mf_compare mf_categories mf_featured

67개 카테고리(대형주 → 골드 → 인덱스 펀드 → 퇴직)를 골라 검색하고, 보유 종목·위험 비율 등을 담은 전체 리포트 카드를 확인하며, 최대 4개 펀드를 나란히 비교합니다.

주식

stock_screen index_stocks sector_stocks stock_detail

상승·하락 종목, 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-lyr

Python 3.11+이 필요하며 — uv가 알아서 준비합니다.

에이전트 연결 설정

{
  "mcpServers": {
    "etmoney": {
      "command": "etmoney-lyr",
      "args": []
    }
  }
}

그게 전부입니다. 이 바이너리는 두 가지 모드로 동작합니다: 대화형 터미널에서는 도움말 홈 화면을 보여주고, 파이프된 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 container

CLI 출력은 기본적으로 TOON(토큰 효율적) 방식이며, 원본 데이터가 필요하면 --json을 사용합니다. 오류는 머신이 읽기 좋은 error: / help: 줄로 나오며 항상 exit code 2를 반환합니다.

작동 방식

ET Money 웹 앱은 세 가지 서로 다른 메커니즘으로 데이터를 노출합니다. 그래서 유연한 HTML 스크레이퍼 하나만 쓰는 대신, 각 메커니즘에 전용 파서를 둡니다:

  • JSON API — 스크리너와 검색용 (사이트 자체 XHR 계약)

  • 임베디드 JS DTO — 펀드 페이지의 완전한 리포트 카드가 <script>var compSchemeDTO = …</script>에 완성된 JSON으로 그대로 들어 있습니다. 따라서 HTML 테이블을 파싱하는 방식보다 훨씬 낫습니다.

  • Next.js RSC flight payload — 주식 페이지의 self.__next_f.push() 청크 데이터를 조합한 것입니다.

파서는 실서버 페이서를 커밋해 둔 픽스처 복사본에 고정되어 있어서, 마크업이 바뀌면 숫자가 조용히 깨지지 않고 테스트가 크게 실패합니다. 인도식 숫자 표기(₹1,48,429 Cr, 13 mins 3 m)는 어디서든 float로 정규화합니다.

한계 (솔직하게)

  • 리서치 전용. 주문·SIPA·KYC·포트폴리워리 등은 없습니다 — 이것은 의도된 설계입니다. 포트폴리오 추적과 Genius 인사이트는 로그인 뒤에 있는 상위기 서비스이므로 범위 밖입니다.

  • 앱 전용 데이터 (인터랙티브 ET Money Rank scorecard, Genius 판정)는 공개하지 않습니다. 공개 페이지에 있는 점수 코멘트리는 포함됩니다.

  • Upstream drift: 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) 하나의 플랫폼·하나의 MCP 서버·하나의 AXI-호환 CLI라는 철학을 공유합니다.

라이선스

MIT — LICENSE 참조. ET Money / 360 ONE와는 아무런 관련이 없습니다. 이 데이터는 공개된 리서치 정보입니다. 여기 있는 어떤 것도 투자 조언이 아닙니다.

Available Tools

10 tools
index_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_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

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

    B3.1/5.0

    Scored across 10 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    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.

    Completeness3/5

    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

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables 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.
      17
      22 PyPI
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to query financial datasets, including institutional holders, insider transactions, investor portfolios, and SEC filings, via MCP tools.
      77 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables 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.
      2
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables 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