Skip to main content
Glama
etmoney-lyr

etmoney-lyr

YET Money no tiene ninguna API pública. Tu agente quiere una. ethernet-lyr» aplica ingeniería inversa a las superficies de investigación de ET Money para convertirlas en un servidor MCP local: las 67 categorías de fondos de inversión, pantallas de filtrado de acciones y, los constituyentes del índice de NIFTY y de los sectores — presentados como 10 herramientas tipadas con salida JSON estructurada. Solo lecturas, sin credenciales, sin claves.


Compruébalo en acción

Una sesión real, cifras reales, directamente de las herramientas:

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

Junto cifra anterior se extrae de las propias páginas de ET Money, no está escrita a mano.

Verificado: 195 pruebas sin conexión contra fixtures capturados · 54 comprobaciones en vivo de punta a punta en todas las herramientas y casos límites de parámetros · el protocolo de connexión (handshake) probado a través del binario stdio real y la imagen contenedor de Docker.

Related MCP server: financial-datasets

Qué abarca

Herramientas

Lo que tu agente puede consultar

Fondos de inversión

mf_search mf_list mf_detail mf_compare mf_categories mf_featured

Filtrar cualquiera de las 67 categorías (large cap → oro → return → fondos indexados → jubilación), fichas completas con tenencias y ratios, comparativas lado a lado de hasta 4 fondos

Acciones

stock_screen index_stocks sector_stocks stock_detail

Pantallas de ganadores/perdedores/extremos de 52 semanas/multibagger, constituyentes del NIFTY 50-500 y del sector? índices sectoriales, listas por sector, fundamentales de cada acción

Flujo habitual: mf_search("small cap") → mf_detailexport(6558) → mf_compare([6558, 11077]).

Instalación

# 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

Requer external durable 3.11+? uv se encarga de ello automends.

Enrúza tu agente hacia el

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

Eso es todo. El mismo binario es de doble modo: como interactivo, la terminal muestra una superficie principal de ayuda; y el stdin de entrada estándar actúa como servidor 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

La salida del CLI es TOON por config,tilde (eficiente en tokens), con --json cuando quieras el resultado sin tratar. Los peligro detectan cómo XML / "help:"...) y siempre devuelven el código de proceso 2.

Cómo funciona

La web de ET Money expone sus datos por tres mecanismos distintos — cada uno con su propio parser dedicado, en lugar de un único «raspador» de HTML frágil:

  • APIs JSON para la ficha de valores y la búsqueda (el contrato XHR del propio sitio)

  • DTOs JS integradas en páginas de fondos — las fichas completas llegan como JSON listo para usar en el <script>var compSchemeDTO =…; (un parser de tablas HTML sería de peor quality)

  • Payloads RSC de Next.js flight en las páginas de acciones, reconstruido de piezas de self.__next_f.push()

Los parsers van fijiados a copias de fixtures reales fijadas en el repositorio, de forma que un deriva del markup construye tests que fallando tan boosting, en lugar de corromper los número en silencio. Los formatos numéricos en la India (₹1,48,429 Cr, 13 yrs 3 m) están normalizados en todas los sitios al tipo float.

Límites, con honestidad

  • Solo finalidad de investigación. No hay órdenes, SIPs, KYC ni escritos de operación — por diseño. El seguimiento de carteras y los insights de Genius los dejamos behind de login (autenticación) y no se en tego.

  • Datos exclusivos de la app (el marcador interactivo del ET Money Rank, los veredictos de Genie Genius? no se exponen; anda el compatibly sobre rank que llega a las páginas públicas.

  • Cambios de upstream: ET Money puede cambiar sus páginas siempre que quiera. Las pruebas con fixtures detectan roturas estructurales; ejecutar python scripts/live_check.py después de cada cambio del parser.

Desarrollo

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

Parte de la familia Theme de la -lyr (twitter-lyr, reddit-lyr, swiggy-lyr): una única plataforma, un servidor MCP, un CLI compatible con AXI.

Licencia

MIT — consorcio LICENCE. No está monetáneamente afiliado a ET Money / 360 ONE; los datos son información pública para investigación. Nothing lo que encontré aquí se le debe dar asesoramiento de inversión.

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.

    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.
      59 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