Uses Fabits API Collection from Postman to integrate with the Fabits MyWealth platform, enabling mutual fund search, investment operations (lumpsum, SIP, redemption), portfolio tracking, and basket investments through natural language.
Fabits MCP Server
A Model Context Protocol (MCP) server for Fabits MyWealth platform. Invest in mutual funds through natural conversation with AI assistants like Claude.
Features
š Authentication - Secure login with phone + OTP, automatic token management š Fund Discovery - Search funds, get details, view recommendations š° Investments - Lumpsum, SIP, basket investments š Portfolio Tracking - View holdings, SIPs, transaction history šÆ Production Ready - Direct integration with Fabits production API
Available Tools
Authentication
fabits_request_otp- Step 1: Request OTP to be sent to phonefabits_verify_otp- Step 2: Verify OTP and complete loginfabits_status- Check authentication and KYC statusfabits_refresh_token- Refresh expired access token using refresh tokenfabits_logout- Logout and clear stored tokens
Fund Discovery
fabits_search_funds- Search mutual funds by name/categoryfabits_get_fund_details- Get comprehensive fund informationfabits_get_star_funds- Get Fabits recommended funds
Investments
fabits_invest_lumpsum- One-time investmentfabits_start_sip- Start monthly SIPfabits_redeem- Sell mutual fund unitsfabits_get_baskets- View investment basketsfabits_invest_basket- Invest in diversified baskets
Portfolio
fabits_get_portfolio- View complete portfoliofabits_get_basket_holdings- View basket holdings organized by basketsfabits_get_sips- List active SIPsfabits_get_transactions- View transaction historyfabits_cancel_sip- Cancel SIP
Installation
Option 1: NPM Package (Recommended)
Option 2: From Source
Configuration
Claude Desktop
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Or if running from source:
Other MCP Clients
Use the built executable:
Usage Examples
1. Login Flow
2. Search and Invest
3. Portfolio Tracking
Security
Token Storage: Encrypted tokens stored in
~/.config/fabits-mcp/auth.jsonProduction API: Direct connection to
https://apimywealth.fabits.comNo Data Logging: No transaction or personal data is logged by the MCP server
Session Management: Tokens auto-expire and require re-authentication
Development
Project Structure
API Coverage
Based on Fabits API Collection:
ā Authentication (Login, KYC Status)
ā Mutual Funds (Search, Details, Star Funds)
ā Orders (Lumpsum, SIP, Redemption)
ā Baskets (List, Invest)
ā Portfolio (Holdings, SIPs, Transactions)
ā³ Risk Assessment (Planned)
ā³ Plans & Goals (Planned)
ā³ Mandates & Payments (Partial)
Troubleshooting
"Not authenticated" error
Re-login using fabits_request_otp followed by fabits_verify_otp. Tokens may expire after 24 hours.
"KYC not completed" error
Complete KYC on the Fabits app before investing through MCP.
Build errors
Connection issues
Verify internet connection. The server connects to production Fabits API.
Contributing
Contributions welcome! Please:
Fork the repository
Create a feature branch
Add tests if applicable
Submit a pull request
License
MIT
Disclaimer
ā ļø Investment Warning
This tool connects to PRODUCTION Fabits API
All investments are REAL and use LIVE MONEY
Mutual fund investments are subject to market risks
Past performance does not guarantee future returns
Please read all scheme documents carefully before investing
The developers are not responsible for investment decisions or losses
Support
š§ Issues: GitHub Issues
š Fabits API Docs: See
POSTMAN_COLLECTION_README.mdš¬ MCP Protocol: MCP Documentation
Built with ā¤ļø for the MCP ecosystem