Skip to main content
Glama

🇮🇳 mftool-mcp

MCP-сервер для общедоступных данных о взаимных фондах Индии
Работает на базе mftool · Совместим с Claude, Cursor и любым MCP-совместимым LLM-клиентом

PyPI Python 3.10+ License: MIT MCP


Что это такое?

mftool-mcp — это сервер Model Context Protocol (MCP), который предоставляет любому LLM-клиенту доступ к данным об индийских взаимных фондах.

Задавайте своему ИИ-ассистенту вопросы, например:

  • "Какова текущая стоимость чистых активов (NAV) SBI Bluechip Direct Growth?"

  • "Покажи доходность за 3 года для фонда HDFC Midcap Opportunities Fund"

  • "Перечисли все схемы Mirae Asset AMC"

  • "Найди все фонды flexi cap и сравни их доходность за 5 лет"


Related MCP server: Daito

Доступные инструменты

Инструмент

Описание

get_scheme_quote

Актуальный NAV для любой схемы по коду AMFI

get_bulk_quotes

Актуальный NAV для нескольких схем одновременно (параллельно)

get_scheme_historical_nav

Полная история NAV для схемы (все доступные даты)

get_scheme_historical_nav_for_dates

История NAV, отфильтрованная по диапазону дат (ДД-ММ-ГГГГ)

get_scheme_history

История NAV через код BSE/YFinance с периодом или диапазоном дат

get_scheme_codes

Все коды и названия схем AMFI

get_available_schemes

Все схемы в рамках конкретной AMC

get_scheme_details

Управляющая компания, тип, категория, дата запуска (код AMFI)

get_scheme_info

Расширенная информация о схеме — AUM, доходность, рейтинги (код BSE/YFinance)

is_valid_scheme_code

Проверка числового кода схемы AMFI

is_valid_new_scheme_code

Проверка кода схемы в формате BSE/новом формате

search_schemes

Поиск схем по ключевому слову в названии с ранжированием по релевантности

search_schemes_by_amc

Поиск схем внутри конкретной AMC

search_schemes_by_type

Поиск схем по типу/категории (акции, облигации, ELSS и т.д.)

get_average_aum

Средний AUM (внутренний и зарубежный) для всех AMC по кварталам

get_equity_scheme_performance

Ежедневная доходность для всех фондов акций (доходность за 1г/3г/5л)

get_debt_scheme_performance

Ежедневная доходность для всех фондов облигаций (доходность за 1г/3г/5л)

get_hybrid_scheme_performance

Ежедневная доходность для всех гибридных фондов (доходность за 1г/3г/5л)

get_solution_scheme_performance

Ежедневная доходность для специализированных фондов (пенсионные, детские)

get_other_scheme_performance

Ежедневная доходность для индексных фондов и фондов фондов

calculate_returns

Расчет доходности SIP — абсолютная доходность в % и годовая IRR

get_cache_stats

Просмотр статистики попаданий/промахов для кэшей NAV и кодов схем

clear_cache

Очистка всех кэшированных данных для принудительного обновления

set_cache_enabled

Глобальное включение или отключение кэширования mftool


Быстрый старт

Использование uvx (Рекомендуется — установка не требуется)

uvx mftool-mcp

Использование pip

pip install mftool-mcp
mftool-mcp

Настройка Claude Desktop

Добавьте это в ваш claude_desktop_config.json:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "mftool-mcp": {
      "command": "uvx",
      "args": ["mftool-mcp"]
    }
  }
}

Перезапустите Claude Desktop. Вы увидите mftool-mcp в списке подключенных инструментов.


Cursor / Другие MCP-клиенты

В настройках вашего MCP-клиента добавьте:

{
  "mftool-mcp": {
    "command": "uvx",
    "args": ["mftool-mcp"]
  }
}

Примеры диалогов

Поиск фонда:

Вы: "Найди все коды схем взаимных фондов SBI midcap" Claude: вызывает search_schemes_by_amc(amc_name='sbi', query='midcap') Claude: "Вот схемы SBI midcap: SBI Magnum Midcap Fund - Direct Growth (код: 125497)..."

Актуальный NAV:

Вы: "Какой текущий NAV у схемы 125497?" Claude: вызывает get_scheme_quote(scheme_code='125497') Claude: "SBI Magnum Midcap Fund - Direct Growth: NAV ₹234.56 (по состоянию на 05-апр-2025)"

Сравнение доходности:

Вы: "Сравни доходность за 5 лет для фондов акций large cap" Claude: вызывает get_equity_scheme_performance() Claude: "Вот сравнение доходности за 5 лет для фондов Large Cap: ..."


Источник данных

Все данные получены через библиотеку mftool. Точность данных зависит от опубликованных показателей. Этот инструмент предназначен только для информационных целей и не является финансовой консультацией.


Разработка

git clone https://github.com/NayakwadiS/mftool-mcp
cd mftool-mcp
pip install -e ".[dev]"

# Run the server locally
python -m mftool_mcp.server

Благодарности

  • mftool — базовая библиотека данных

Связанные инициативы

Available Tools

12 tools
get_available_schemesA

Get all mutual fund schemes available under a specific AMC (Asset Management Company).

Args: amc_name: Partial or full name of the AMC (case-insensitive). Examples: 'hdfc', 'sbi', 'axis', 'icici', 'mirae', 'parag', 'dsp'.

Returns: Dictionary mapping scheme codes (str) to scheme names (str) for the given AMC.

Inputs: amc_name (required).

get_debt_scheme_performanceA

Get daily performance data for all open-ended DEBT mutual fund schemes. Includes Liquid, Overnight, Short Duration, Corporate Bond, Gilt funds, etc. Shows latest NAV (Regular & Direct plans) and 1Y/3Y/5Y returns.

Returns: Dictionary categorized by debt fund type with performance metrics.

Inputs: no named parameters.

get_elss_scheme_performanceA

Get daily performance data for ELSS (Equity Linked Savings Scheme) mutual funds. ELSS funds offer tax benefits under Section 80C with a 3-year lock-in period. Shows latest NAV (Regular & Direct plans) and 1Y/3Y/5Y returns.

Returns: Dictionary with ELSS fund performance metrics.

Inputs: no named parameters.

get_equity_scheme_performanceA

Get daily performance data for all open-ended EQUITY mutual fund schemes. Includes Large Cap, Mid Cap, Small Cap, Flexi Cap, ELSS, Sectoral, etc. Shows latest NAV (Regular & Direct plans) and 1Y/3Y/5Y returns.

Returns: Dictionary categorized by equity fund type with performance metrics.

Inputs: no named parameters.

get_hybrid_scheme_performanceA

Get daily performance data for all open-ended HYBRID mutual fund schemes. Includes Balanced Advantage, Aggressive Hybrid, Conservative Hybrid, Arbitrage, etc. Shows latest NAV (Regular & Direct plans) and 1Y/3Y/5Y returns.

Returns: Dictionary categorized by hybrid fund type with performance metrics.

Inputs: no named parameters.

get_scheme_codesA

Get a dictionary of ALL mutual fund scheme codes and names available on AMFI. Returns a large dataset with scheme_code -> scheme_name mappings. Use this to discover scheme codes for funds you want to query.

Returns: Dictionary mapping scheme codes (str) to scheme names (str).

Inputs: no named parameters.

get_scheme_detailsA

Get detailed metadata for a mutual fund scheme including fund house, type, category, and scheme start date.

Args: scheme_code: AMFI numeric scheme code (e.g., '119597').

Returns: Dictionary with fund_house, scheme_type, scheme_category, scheme_code, scheme_name, scheme_start_date.

Inputs: scheme_code (required).

get_scheme_historical_navA

Get the full historical NAV data for a mutual fund scheme (all available dates).

Args: scheme_code: AMFI numeric scheme code (e.g., '119597').

Returns: Dictionary with fund metadata and a 'data' list of {date, nav} entries, sorted latest first.

Inputs: scheme_code (required).

get_scheme_historical_nav_for_datesA

Get historical NAV for a mutual fund scheme within a specific date range.

Args: scheme_code: AMFI numeric scheme code (e.g., '119597'). start_date: Start date in 'DD-MM-YYYY' format (e.g., '01-01-2023'). end_date: End date in 'DD-MM-YYYY' format (e.g., '31-12-2023').

Returns: Dictionary with fund metadata and filtered NAV data for the date range.

Inputs: scheme_code (required), start_date (required), end_date (required).

get_scheme_quoteA

Get the latest NAV (Net Asset Value) quote for a mutual fund scheme.

Args: scheme_code: AMFI numeric scheme code (e.g., '119597' for an SBI fund). Use get_scheme_codes or search_scheme_by_name to find codes.

Returns: Dictionary with scheme_code, scheme_name, last_updated, nav.

Inputs: scheme_code (required).

is_valid_scheme_codeA

Check whether a given scheme code is a valid AMFI scheme code.

Args: scheme_code: Numeric scheme code to validate (e.g., '119597').

Returns: Dictionary with 'valid' (bool) and 'scheme_code' fields.

Inputs: scheme_code (required).

search_scheme_by_nameA

Search for mutual fund schemes by name keyword. Optionally filter by AMC. Use this when you know a fund name but not its scheme code.

Args: query: Keyword to search in scheme names (e.g., 'midcap', 'bluechip', 'flexi'). amc_name: Optional AMC filter (e.g., 'hdfc', 'sbi'). Leave empty to search all.

Returns: Dictionary mapping scheme codes to matching scheme names.

Inputs: query (required), amc_name.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 12 tools

    Disambiguation4/5

    Most tools have distinct purposes, but get_available_schemes and get_scheme_codes both return scheme codes and names, causing potential confusion. The rest are clearly differentiated by function.

    Naming Consistency5/5

    All tool names follow a consistent snake_case verb_noun pattern (e.g., get_equity_scheme_performance, search_scheme_by_name), making it predictable for an agent.

    Tool Count5/5

    12 tools cover the essential operations for a mutual fund data server—discovery, details, NAV history, performance categories, and validation—without being excessive.

    Completeness4/5

    Covers core CRUD-like operations and performance data by category. Minor gaps include lack of direct scheme comparison or expense ratio details, but overall the surface is sufficient for typical queries.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server for screening Indian stocks and mutual funds by wrapping screener.in and Morningstar India, enabling fundamental queries from Claude or Cursor.
      -
    • A
      license
      A
      quality
      C
      maintenance
      An MCP server exposing Indian market and regulatory data from official sources (NSE, NIFTY, AMFI, SEBI), providing tools for end-of-day quotes, index constituents, mutual fund NAVs, and SEBI order searches with a focus on primary sources and no fabricated data.
      8
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      MCP server that lets AI assistants search and analyze live Indian mutual funds via Groww's API, supporting filters and detailed fund diagnostics.
      2
      1
      MIT