mftool-mcp
🇮🇳 mftool-mcp
用于获取公开印度共同基金数据的 MCP 服务器
由 mftool 提供支持 · 适用于 Claude、Cursor 及任何兼容 MCP 的 LLM 客户端
这是什么?
mftool-mcp 是一个 模型上下文协议 (MCP) 服务器,允许任何 LLM 客户端访问印度共同基金数据。
您可以向 AI 助手询问如下问题:
“SBI Bluechip Direct Growth 目前的净值 (NAV) 是多少?”
“显示 HDFC Midcap Opportunities Fund 的 3 年期收益率”
“列出 Mirae Asset AMC 下的所有方案”
“查找所有灵活配置型 (flexi cap) 基金并比较它们的 5 年期收益率”
Related MCP server: Daito
可用工具
工具 | 描述 |
| 通过 AMFI 方案代码获取任意方案的实时净值 |
| 同时获取多个方案的实时净值(并发) |
| 获取方案的完整净值历史(所有可用日期) |
| 获取特定日期范围内的净值历史 (DD-MM-YYYY) |
| 通过 BSE/YFinance 代码及周期或日期范围获取净值历史 |
| 所有 AMFI 方案代码及名称 |
| 特定 AMC 下的所有方案 |
| 基金公司、类型、类别、开始日期 (AMFI 代码) |
| 丰富的方案信息 — AUM、收益率、评级 (BSE/YFinance 代码) |
| 验证 AMFI 数字方案代码 |
| 验证 BSE/新格式方案代码 |
| 按名称关键字搜索方案,并按相关性排序 |
| 在特定 AMC 内搜索方案 |
| 按类型/类别搜索方案(股票、债券、ELSS 等) |
| 所有 AMC 按季度的平均 AUM(国内及海外) |
| 所有股票型基金的每日表现 (1年/3年/5年收益率) |
| 所有债券型基金的每日表现 (1年/3年/5年收益率) |
| 所有混合型基金的每日表现 (1年/3年/5年收益率) |
| 解决方案导向型基金的每日表现(退休、子女教育) |
| 指数基金和基金中基金 (FoF) 的每日表现 |
| 计算 SIP 收益 — 绝对收益百分比和年化 IRR |
| 查看净值和方案代码缓存的命中/未命中统计信息 |
| 清除所有缓存数据以强制刷新获取 |
| 全局启用或禁用 mftool 缓存 |
快速入门
使用 uvx(推荐 — 无需安装)
uvx mftool-mcp使用 pip
pip install mftool-mcp
mftool-mcpClaude 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 中盘共同基金方案代码”
Claude: 调用search_schemes_by_amc(amc_name='sbi', query='midcap')
Claude: “以下是 SBI 中盘基金方案:SBI Magnum Midcap Fund - Direct Growth (代码: 125497)...”
实时净值:
您: “方案 125497 的当前净值是多少?”
Claude: 调用get_scheme_quote(scheme_code='125497')
Claude: “SBI Magnum Midcap Fund - Direct Growth: 净值 ₹234.56 (截至 2025年4月5日)”
业绩比较:
您: “比较大盘股股票基金的 5 年期收益率”
Claude: 调用get_equity_scheme_performance()
Claude: “以下是大盘股基金的 5 年期收益率比较:...”
数据来源
所有数据均通过 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 — 底层数据库
相关计划
NSE 股票预测 NSE-Neuron
Available Tools
12 toolsget_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_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
Scored across 12 tools
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.
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.
12 tools cover the essential operations for a mutual fund data server—discovery, details, NAV history, performance categories, and validation—without being excessive.
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
Related MCP Connectors
MFAPI.in MCP — Indian mutual-fund NAV (net asset value) data.
Open-source MCP server for Zerodha Kite Connect. Portfolio, market data, backtesting, alerts.
Hosted MCP server for Indian market quotes, option-chain Greeks and multi-broker telemetry.
MCP server for Financial Modeling Prep API with 250+ financial data tools
Related MCP Servers
- ISC
- FlicenseNot gradedqualityDmaintenanceMCP server for screening Indian stocks and mutual funds by wrapping screener.in and Morningstar India, enabling fundamental queries from Claude or Cursor.-
- AlicenseAqualityCmaintenanceAn 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.8MIT
- AlicenseAqualityCmaintenanceMCP server that lets AI assistants search and analyze live Indian mutual funds via Groww's API, supporting filters and detailed fund diagnostics.21MIT