Mftool Mcp

io.github.NayakwadiS由 GitHub 账号 NayakwadiS 发布v1.2.0更新于 Oct 24, 2026

MCP Server for publicly available Indian Mutual Funds data

已验证STDIO仅桌面金融数据与分析

概览

AI 生成的概览

让助手查询印度共同基金数据:实时净值、净值历史、基金搜索、AMC 列表和收益计算。

可以做什么
封装 mftool 库,通过工具提供印度共同基金数据,例如用 get_scheme_quote 和 get_bulk_quotes 获取实时净值,用 get_scheme_historical_nav 和 get_scheme_historical_nav_for_dates 获取净值历史,用 get_scheme_codes、get_available_schemes、get_scheme_details 和 search_schemes 查找基金。还提供股票型、债券型、混合型、解决方案型及其他基金类别的业绩工具,以及 calculate_returns、calculate_balance_units_value 和 calculate_portfolio_value 用于定投和组合计算。缓存工具可查看统计、清除缓存数据并开关缓存。
适用场景
适合助手回答印度共同基金相关问题,例如某基金的当前净值、指定日期区间的净值历史、某 AMC 旗下的基金,或比较 1 年、3 年、5 年收益。也适合定投收益和组合价值计算。
运行要求
以 Python 包形式通过 stdio 在本地运行,可用 uvx mftool-mcp 或 pip install mftool-mcp 安装。未声明账户、API 密钥、环境变量或请求头。获取基金数据需要网络访问。
安装前请注意
数据来自 mftool 库并取决于已公布的数值;README 说明其仅供信息参考,不构成投资建议。该服务器会通过网络获取公开基金数据,缓存工具可清除缓存数据。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mftool Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

🇮🇳 mftool-mcp

MCP Server for publicly available Indian Mutual Funds data
Powered by mftool · Works with Claude, Cursor, and any MCP-compatible LLM client

[PyPI] [Python 3.10+] [License: MIT] [MCP]


What is this?

mftool-mcp is a Model Context Protocol (MCP) server that gives any LLM client access to Indian Mutual Fund data.

Ask your AI assistant questions like:

  • "What is the current NAV of SBI Bluechip Direct Growth?"
  • "Show me 3-year returns for HDFC Midcap Opportunities Fund"
  • "List all schemes under Mirae Asset AMC"
  • "Find all flexi cap funds and compare their 5-year returns"

Tools Available

ToolDescription
get_scheme_quoteLive NAV for any scheme by AMFI scheme code
get_bulk_quotesLive NAV for multiple schemes at once (concurrent)
get_scheme_historical_navFull NAV history for a scheme (all available dates)
get_scheme_historical_nav_for_datesNAV history filtered to a specific date range (DD-MM-YYYY)
get_scheme_historyNAV history via BSE/YFinance code with period or date range
get_scheme_codesAll AMFI scheme codes and names
get_available_schemesAll schemes under a specific AMC
get_scheme_detailsFund house, type, category, start date (AMFI code)
get_scheme_infoRich scheme info — AUM, returns, ratings (BSE/YFinance code)
is_valid_scheme_codeValidate an AMFI numeric scheme code
is_valid_new_scheme_codeValidate a BSE/new format scheme code
search_schemesSearch schemes by name keyword with relevance ranking
search_schemes_by_amcSearch schemes within a specific AMC
search_schemes_by_typeSearch schemes by type/category (equity, debt, elss, etc.)
get_average_aumAverage AUM (domestic & overseas) for all AMCs by quarter
get_equity_scheme_performanceDaily performance for all equity funds (1Y/3Y/5Y returns)
get_debt_scheme_performanceDaily performance for all debt funds (1Y/3Y/5Y returns)
get_hybrid_scheme_performanceDaily performance for all hybrid funds (1Y/3Y/5Y returns)
get_solution_scheme_performanceDaily performance for solution-oriented funds (retirement, children)
get_other_scheme_performanceDaily performance for index funds and Fund of Funds
calculate_returnsCalculate SIP returns — absolute return % and annualised IRR
calculate_balance_units_valueCurrent market value of held units for a scheme
calculate_portfolio_valueTotal current value of a multi-scheme portfolio (concurrent)
get_cache_statsView hit/miss stats for NAV and scheme code caches
clear_cacheClear all cached data to force fresh fetches
set_cache_enabledEnable or disable mftool caching globally

Quick Start

Using uvx (Recommended — no install needed)

bash
uvx mftool-mcp

Using pip

bash
pip install mftool-mcpmftool-mcp

Claude Desktop Setup

Add this to your claude_desktop_config.json:

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

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

Restart Claude Desktop. You'll see mftool-mcp listed under connected tools.


Cursor / Other MCP Clients

In your MCP client settings, add:

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

Example Conversations

Finding a fund:

You: "Find all SBI midcap mutual fund scheme codes"
Claude: calls search_schemes_by_amc(amc_name='sbi', query='midcap')
Claude: "Here are the SBI midcap schemes: SBI Magnum Midcap Fund - Direct Growth (code: 125497)..."

Live NAV:

You: "What's the current NAV of scheme 125497?"
Claude: calls get_scheme_quote(scheme_code='125497')
Claude: "SBI Magnum Midcap Fund - Direct Growth: NAV ₹234.56 (as of 05-Apr-2025)"

Performance comparison:

You: "Compare 5-year returns for large cap equity funds"
Claude: calls get_equity_scheme_performance()
Claude: "Here's the 5-year return comparison for Large Cap funds: ..."


Data Source

All data is sourced via the mftool library. Data accuracy depends on published figures. This tool is for informational purposes only and does not constitute financial advice.


Development

bash
git clone https://github.com/NayakwadiS/mftool-mcpcd mftool-mcppip install -e ".[dev]"
# Run the server locallypython -m mftool_mcp.server

See PUBLISHING.md for the full release process (PyPI + MCP Registry).


Acknowledgements

  • mftool — the underlying data library

Associated Initiatives

来源:README.md,提交 56985cf

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

2
  1. v1.2.0最新Sep 22, 2026
  2. v1.1.0Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分