MF MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MF MCP Server
A production-ready Model Context Protocol (MCP) server for Indian mutual funds, providing comprehensive NAV history, technical indicators, and screening capabilities.
Features
π Fund Discovery & Information
Search mutual funds by name, AMC, or category
List all available funds with pagination
Get detailed fund information including metadata and performance summaries
Retrieve latest NAV with change calculations
π Technical Analysis
Complete indicator suite: SMA, EMA, RSI, MACD, Bollinger Bands, ROC, Volatility, Drawdown
Rolling returns over configurable periods (30d, 90d, 180d, 365d)
Signal generation with bullish/bearish/neutral classifications
Trend and momentum analysis
π Advanced Features
Fund comparison across multiple performance and technical metrics
Custom screening with flexible rule-based filtering
Historical NAV data with date range filtering
Performance analytics with risk-adjusted metrics
π Enterprise Ready
Robust error handling with user-friendly messages
In-memory caching with configurable TTL
Request timeouts and retry logic
TypeScript with comprehensive type safety
Zod validation for all inputs
Related MCP server: India Market MCP
Supported Tools
Tool | Description |
| Search schemes by name, AMC, category |
| Paginated listing of all available funds |
| Detailed fund information and metadata |
| Current NAV with change calculations |
| Historical NAV data with filtering |
| Technical indicators and signals |
| Side-by-side fund comparison |
| Rule-based fund screening |
Architecture
src/
βββ index.ts # Application entry point
βββ server.ts # MCP server setup and tool registration
βββ config/
β βββ env.ts # Environment configuration
βββ tools/ # MCP tool implementations
βββ services/ # Business logic layer
βββ providers/ # Data provider integrations
βββ analytics/ # Technical indicator calculations
βββ utils/ # Utility functions
βββ types/ # TypeScript type definitionsQuick Start
Installation
git clone <repository-url>
cd mf-mcp-server
npm installEnvironment Setup
cp .env.example .env
# Edit .env file with your configurationDevelopment
npm run devProduction Build
npm run build
npm startEnvironment Variables
# MCP Server Configuration
NODE_ENV=development
LOG_LEVEL=info
# API Configuration
MFAPI_BASE_URL=https://api.mfapi.in
MFAPI_TIMEOUT=10000
CACHE_TTL_SECONDS=300
# Rate limiting
REQUESTS_PER_MINUTE=60Claude Desktop Configuration
Add this to your Claude Desktop configuration:
{
"mcpServers": {
"mf-mcp-server": {
"command": "node",
"args": ["/path/to/mf-mcp-server/dist/index.js"],
"env": {
"NODE_ENV": "production"
}
}
}
}For development with TypeScript:
{
"mcpServers": {
"mf-mcp-server": {
"command": "npx",
"args": ["tsx", "/path/to/mf-mcp-server/src/index.ts"],
"cwd": "/path/to/mf-mcp-server"
}
}
}Usage Examples
Search for Funds
Search for HDFC equity funds with a limit of 5 resultsGet Technical Indicators
Compute RSI, MACD, and Bollinger Bands for scheme code 119551Screen High-Performing Funds
Find funds with RSI < 30, 1-year returns > 15%, and volatility < 20%Compare Fund Performance
Compare schemes 119551, 120503, and 118989 across returns, volatility, and signalsTechnical Indicators
Moving Averages
Simple Moving Average (SMA): Trend identification
Exponential Moving Average (EMA): Responsive trend analysis
Momentum Oscillators
RSI (Relative Strength Index): Overbought/oversold conditions
Rate of Change (ROC): Momentum measurement
Trend Analysis
MACD: Moving average convergence divergence
Bollinger Bands: Volatility-based support/resistance
Risk Metrics
Standard Deviation: Volatility measurement
Maximum Drawdown: Downside risk assessment
Rolling Returns: Performance over multiple timeframes
Data Sources
Primary: MFAPI (api.mfapi.in)
Real-time NAV data
Historical price series
Scheme metadata
Free public API with good coverage
Planned: AMFI Integration
Enhanced fund metadata
Category classifications
Regulatory information
Fallback data source
Performance & Limitations
Caching Strategy
Default TTL: 5 minutes for most data
Latest NAV: 1 minute TTL
Historical data: 10 minute TTL
Fund listings: 30 minute TTL
API Rate Limits
Default: 60 requests per minute
Retry logic: 3 attempts with exponential backoff
Timeout: 10 seconds per request
Data Limitations
NAV-based analysis (not suitable for intraday trading)
Limited fundamental data (P/E ratios, holdings not available)
Historical data availability varies by fund
Technical analysis requires minimum 50 data points
Development
Scripts
npm run dev # Development with hot reload
npm run build # Production build
npm start # Run production build
npm run lint # ESLint checks
npm run lint:fix # Fix linting issues
npm run type-check # TypeScript type checkingTesting
# Manual testing with Claude Desktop or MCP inspector
npx @modelcontextprotocol/inspector build/index.jsCode Quality
TypeScript: Strict mode enabled
ESLint: Code quality and consistency
Zod: Runtime type validation
Error handling: Comprehensive error boundaries
Roadmap
Phase 1 (Current)
β Core MCP tools implementation
β Technical indicators
β Fund screening
β MFAPI integration
Phase 2 (Planned)
AMFI data integration
Portfolio analysis tools
Expense ratio comparisons
Fund manager analytics
Phase 3 (Future)
Real-time market data
Holdings analysis
Sector allocation tools
Risk-adjusted metrics (Sharpe, Sortino)
Important Disclaimers
β οΈ Investment Advisory Warning: This tool is for informational purposes only and does not constitute investment advice. Technical analysis of mutual funds based solely on NAV data has limitations:
NAV vs Market Price: Mutual funds trade at NAV, not market prices
Daily Frequency: Most indicators designed for higher-frequency data
Fundamental Focus: Long-term mutual fund performance depends more on underlying holdings than technical patterns
Market Context: Technical signals should be considered alongside fundamental analysis and market conditions
Always consult with qualified financial advisors before making investment decisions.
Contributing
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
π MCP Documentation
π Report Issues
π¬ Discussions
π₯ Generated with Claude Code
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
Related MCP Connectors
Indian mutual fund search, latest AMFI NAVs, side-by-side comparison and SIP or lumpsum returns.
Indian mutual funds: schemes, NAV history, returns, holdings, flows. Read-only, OAuth.
India's financial MCP β cards, loans, FDs, insurance, MFs; EMI/SIP/tax calcs; NAV lookup; RAG.
Research Indian mutual funds and manage consent-based portfolio tracking records.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables querying Indian mutual fund NAV data through MFAPI.in, providing net asset value information and fund details.65 npmMIT
- AlicenseBqualityCmaintenanceComprehensive MCP server for Indian stock market with 60 tools covering NSE/BSE, derivatives, mutual funds, technicals, and more, requiring no API keys. Enables users to access live market data, analyze indicators, and manage investments through natural language.601MIT
- AlicenseNot gradedqualityCmaintenanceProvides AI assistants with real-time Indian mutual fund NAV data from AMFI's official feed, requiring no API key.MIT
- FlicenseNot gradedqualityCmaintenanceEnables querying Indian mutual fund NAV analytics via DuckDB, offering tools for fund search, point-to-point returns, category rankings, and more, using local or Azure parquet data.-