bharat-mcp
bharat-mcp is an offline-first MCP server for Indian GST invoicing, tax-code/rate lookup, UPI and bank-statement analysis, and IFSC/PIN lookups.
Validate and decode GSTINs offline (format, state, PAN, entity type; not registration status).
Calculate GST for line items: intra-state CGST/SGST or UTGST, inter-state IGST, inclusive prices, cess and round-off.
Generate GST-compliant invoice PDFs with HSN/SAC, place of supply, reverse charge, bank/UPI details and amount in words.
Search and look up official HSN/SAC codes from the GST portal list.
Find official GST rates for goods from Gazette notifications by HSN code or product description.
Convert rupee amounts to Indian-numbering words (lakh/crore).
Parse UPI narrations into payee, VPA, app/bank, reference and direction.
Analyse PDF or CSV bank statements locally: spending categories, monthly cash flow, top payees, largest spends, recurring payments and UPI usage.
Convert bank statements into clean CSV files with categories, payees and decoded UPI details.
Look up IFSC bank/branch details and PIN code/post-office details; these are the only network-backed tools.
Uses the Razorpay IFSC API to look up bank branch details by IFSC code, including bank, branch, address, MICR, and support for UPI/IMPS/NEFT/RTGS.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@bharat-mcp Make a GST invoice for ₹15,000 video editing from Bengaluru to Mumbai"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
bharat-mcp 🇮🇳
An MCP server that teaches Claude (and any MCP-compatible AI) how India's money and paperwork work.
Ask your AI to make a GST invoice, check a GSTIN, explain where your salary went from a bank statement, decode a UPI narration, or find a bank branch from an IFSC. It runs on your computer, and your statements never leave it.
"Make a GST invoice from my studio in Bengaluru to Acme Media in Mumbai for 10 hours of video editing at ₹1,500/hr."
→ Claude works out that this is inter-state (IGST 18%) and writes
Invoice_INV_2026-27_001.pdfwith HSN/SAC, place of supply and the amount in words.
"Analyse ~/Downloads/HDFC_statement.pdf. Where did my money go, and which subscriptions should I cancel?"
→ Spending by category (Swiggy/Zomato, Blinkit/Zepto, rent, EMIs, SIPs…), monthly cash flow, top payees and recurring payments.
Tools
Tool | What it does | Network |
| GST tax invoice PDF (Rule 46 fields, CGST/SGST/UTGST/IGST, cess, round-off, bank and UPI details) | Offline |
| Tax split for any line items: intra- vs inter-state, GST-inclusive prices, cess | Offline |
| Format, state code and checksum check; decodes PAN and entity type | Offline |
| GST rate for goods by HSN code or product name, from the Gazette of India rate notifications with every amendment applied; shows each matching entry with its notification and serial number | Offline |
| Find HSN (goods) or SAC (services) codes by everyday description ("laptop", "ghee", "CA services") or code prefix, from the GST portal's official list | Offline |
| Check whether a code exists, with its chapter, heading and sub-codes; suggests the nearest valid code for a typo | Offline |
| ₹ to words in lakh/crore ("Rupees One Lakh Twenty Thousand Only") | Offline |
| Categorised spend, monthly in/out, top payees, recurring payments and UPI usage, from a PDF or CSV statement | Offline |
| PDF statement → clean CSV for Excel/Sheets, with categories, payees and decoded UPI details | Offline |
| Decodes UPI narrations from SBI, HDFC, ICICI, Axis, Kotak and others into payee, VPA, app, RRN and direction | Offline |
| Bank, branch, address, MICR and UPI/IMPS/NEFT/RTGS support | |
| District, state and post offices for a PIN code | India Post data |
It also includes a prompt, monthly_money_review, that turns a statement into a summary and a savings plan.
Related MCP server: india-business-mcp-server
Install
Requires Node.js 22.13 or later.
Claude Code
claude mcp add bharat -- npx -y @adnansaliyawala/bharat-mcpClaude Desktop: add this to claude_desktop_config.json (Settings → Developer → Edit Config):
{
"mcpServers": {
"bharat": { "command": "npx", "args": ["-y", "@adnansaliyawala/bharat-mcp"] }
}
}From source
git clone https://github.com/nansa1/bharat-mcp && cd bharat-mcp && npm install && npm run build
claude mcp add bharat -- node /absolute/path/to/bharat-mcp/dist/index.jsConfiguration (optional)
Env var | Default | Purpose |
|
| Where invoice PDFs are saved |
|
| Self-host the IFSC API if you like |
|
| PIN code API base URL |
Bank statements
Just point it at the PDF your bank emails you (or a CSV export from net banking).
Layouts: detects the table automatically, whatever the header wording ("Withdrawal Amt." / "Debit" / "Withdrawal (Dr)/ Deposit (Cr)" / "DR/CR"…). Handles headers on two lines, narrations that wrap above or below the row, newest-first statements, and multi-page statements. It has been tested on SBI, HDFC, ICICI, Axis and Kotak style layouts.
Password-protected PDFs: Claude will ask you for the password. It is used only to open the file and is never stored.
Checked against the balance: every row is reconciled with the running balance. A misread debit/credit is fixed automatically, and a missing row is reported with its date, so you know whether to trust the numbers.
Scanned statements (photos, no text layer) can't be parsed. Claude can read those itself and pass the rows in.
If your bank's PDF doesn't parse, run convert_bank_statement with debug: true. You get a layout preview with every letter and digit masked, which is safe to paste into a GitHub issue.
HSN/SAC codes
Codes and descriptions come from the GST portal's official master list (HSN_SAC.xlsx): 21,928 HSN codes and 681 SAC codes. The data is bundled, so search works offline. create_gst_invoice also warns when an item's HSN/SAC code isn't in that list.
Descriptions are kept exactly as published. The only changes are cleaning spreadsheet artefacts and merging seven codes the sheet lists twice; these are recorded in
data/hsn_sac.json, along with the source file's SHA-256 and download date.Everyday names ("atta", "AC", "laptop", "CA") are mapped to tariff wording, but every result is an official code.
GST rates come from
find_gst_rate(see below).Classification is your responsibility. When it is unclear, confirm it with your CA.
To refresh the list: download the latest HSN_SAC.xlsx, then run pip install openpyxl and npm run update-hsn -- path/to/HSN_SAC.xlsx.
GST rates
find_gst_rate uses the rate notifications exactly as published in the Gazette of India:
Notification | Gazette ID | In force from | What it does |
09/2025-Central Tax (Rate) | CG-DL-E-17092025-266209 | 22 Sep 2025 | Rate schedules I–VII for goods (5%, 18%, 40%, 3%, 0.25%, 1.5%, 28%) |
10/2025-Central Tax (Rate) | CG-DL-E-17092025-266210 | 22 Sep 2025 | Exempt (nil-rated) goods |
19/2025-Central Tax (Rate) | CG-DL-E-31122025-268978 | 1 Feb 2026 | Tobacco and pan masala to 40%, biris to 18%; 28% schedule removed |
01/2026-Central Tax (Rate) | CG-DL-E-01052026-272190 | 1 May 2026 | Beverage tariff codes updated |
02/2026 and 03/2026-Central Tax (Rate) | CG-DL-E-27102026-277454 | 1 Nov 2026 | 57th GST Council: retreaded tractor tyres 5%, bio-stimulants, psyllium seeds exempt |
How the data is checked:
The CGST (09/2025-CT) and IGST (09/2025-IT) notifications are parsed independently and must agree entry for entry, with IGST = 2 × CGST.
Every HSN code in the schedules must exist in the official HSN list.
Each amendment is transcribed in
scripts/gst_amendments.json, and the build fails unless its text appears in the amending notification's PDF.The Gazette PDFs are in
sources/gazette/, with their SHA-256 hashes. Runnpm run update-ratesto rebuild.
Things to know:
One code can have several entries at different rates. The right one depends on the wording, for example "pre-packaged and labelled" or "other than …". The tool shows every matching entry instead of guessing.
Services (SAC codes) are not covered yet. Their rates are spread across Notification 11/2017 and many amendments.
Compensation cess is nil from 1 February 2026.
The data is current up to the date in
source.in_force_as_of. After a new GST Council meeting, check the Gazette for new rate notifications and add them toscripts/gst_amendments.json.create_gst_invoicewarns when an item's rate doesn't match any rate notified for its HSN code.
Privacy
Statement parsing and analysis, GST maths and invoice generation run entirely on your machine.
Only
lookup_ifscandlookup_pincodemake network calls, and they send only the code you look up.Nothing is logged or stored apart from the invoice PDFs you ask for.
Caveats
validate_gstinchecks structure and checksum. It does not confirm that a registration is active on the GST portal.GST rates change, so always pass the rate that applies to your item.
Automatic categories are a best guess. They are good for a personal overview, but they are not accounting advice.
Development
npm install
npm test # builds, then runs unit tests and an end-to-end MCP client test
npm run inspect # opens the MCP InspectorContributions are very welcome, especially new bank narration formats (add a sample to test/), merchant keywords in src/upi.ts, and new tools (see the roadmap).
Releasing (maintainers)
Every push and pull request runs the tests on Ubuntu and Windows with Node 22 and 24 (.github/workflows/ci.yml).
Publishing is automatic when a GitHub release is published (.github/workflows/release.yml). The workflow:
checks that the tag,
package.jsonandserver.jsonagree;runs the tests;
validates
server.json;publishes to npm with Trusted Publishing (no token; provenance is added automatically);
publishes to the MCP Registry with GitHub OIDC.
To release a new version:
npm version patch # or minor / major; also updates server.json, commits and tags
git push --follow-tagsThen on GitHub: Releases → Draft a new release, choose the new tag (e.g. v0.4.1), and click Publish release.
One-time setup on npmjs.com: in the package's Settings → Trusted publishing, add GitHub Actions with user nansa1, repository bharat-mcp, workflow release.yml, and tick npm publish under Allowed actions.
Roadmap
E-invoice JSON (IRN schema) and e-way bill helpers
HSN/SAC code search (v0.3)
GST rates for goods from the Gazette of India (v0.4)
GST rates for services (SAC)
Indian income-tax calculator (old vs new regime)
PDF statement parsing (v0.2)
Credit-card statements
Train PNR and running status, via a pluggable provider (needs an API key)
Hindi and regional-language output
License
MIT
Available Tools
12 toolsamount_in_wordsAmount in words (Indian)ARead-onlyIdempotent
Convert a rupee amount to words in the Indian numbering system (lakh, crore), as used on invoices and cheques.
Inputs: amount (required).
analyze_bank_statementAnalyse bank statementARead-onlyIdempotent
Analyse an Indian bank statement locally: spending by category (food delivery, groceries, travel, bills, EMI, investments...), month-by-month in/out, top payees, largest spends, recurring payments and subscriptions, and UPI usage. Provide file_path to a PDF or CSV statement from net banking (SBI, HDFC, ICICI, Axis, Kotak and other layouts are detected automatically; password-protected PDFs need password), or pass transactions directly. Every PDF row is checked against the running balance. Data never leaves the computer.
Inputs: to, from, top_n, password, +3 more.
calculate_gstCalculate GSTARead-onlyIdempotent
Calculate GST for one or more line items. Works out intra-state (CGST+SGST, or CGST+UTGST in UTs) vs inter-state (IGST) from the supplier state and place of supply, handles GST-inclusive prices, cess and round-off, and gives the total in words.
Inputs: items (required), supplier_state (required), place_of_supply (required), round_off, +1 more.
convert_bank_statementConvert bank statement to CSV/ExcelA
Convert a PDF (or CSV) bank statement into a clean CSV that opens in Excel or Google Sheets: one row per transaction with date, narration, reference, debit, credit, balance, plus category, payee and decoded UPI details. Rows are checked against the running balance, and the result reports any that don't agree. Runs locally.
Inputs: file_path (required), debug, password, output_path.
create_gst_invoiceCreate GST invoice PDFA
Generate a GST-compliant tax invoice as a PDF on the user's computer (supplier and buyer details, HSN/SAC, tax split, place of supply, reverse charge, amount in words, bank/UPI details). Returns the file path and the tax breakdown. Ask the user for any missing supplier or buyer details instead of inventing them.
Inputs: buyer (required), items (required), supplier (required), invoice_number (required), +9 more.
find_gst_rateFind the GST rate for goodsARead-onlyIdempotent
Official GST rates for goods, from the Gazette of India: Notification 09/2025-Central Tax (Rate) (rate schedules) and 10/2025-Central Tax (Rate) (exemptions), with every amendment up to the latest checked date applied (e.g. tobacco to 40% from 1 Feb 2026, psyllium exempt from 1 Nov 2026). Give an HSN code (4-8 digits) to get every entry that covers it, with the rate, CGST/SGST/IGST split, the notification and serial number, and the entry's exact wording; or give a product description to search the notifications' own wording. Several entries can cover one code with different rates: explain the conditions to the user rather than picking silently. Services (SAC 99xxxx) are not covered yet. Works offline.
Inputs: limit, product, hsn_code.
lookup_hsn_sacLook up an HSN/SAC codeARead-onlyIdempotent
Check whether an HSN or SAC code exists in the GST portal's official list, and get its description, the chapter and heading it sits in, and its sub-codes. For a code that isn't listed, returns the nearest valid parent code and its sub-codes. Works offline. For the GST rate, use find_gst_rate.
Inputs: code (required).
lookup_ifscLook up IFSCARead-onlyIdempotent
Find the bank, branch, address, MICR and supported payment modes (UPI/IMPS/NEFT/RTGS) for an IFSC code.
Inputs: ifsc (required).
lookup_pincodeLook up PIN codeARead-onlyIdempotent
Find the district, state and post offices for an Indian 6-digit PIN code.
Inputs: pincode (required).
parse_upi_narrationParse UPI narrationARead-onlyIdempotent
Decode bank-statement UPI narrations (e.g. 'UPI/DR/412345678901/SWIGGY/YESB/swiggy@ybl/Payment') into payee, VPA, app/bank, UTR/RRN reference and direction. Accepts up to 500 lines at once.
Inputs: narrations (required).
search_hsn_sacSearch HSN/SAC codesARead-onlyIdempotent
Find HSN codes (goods) or SAC codes (services) from the GST portal's official HSN/SAC master list, by everyday description ("laptop", "ghee", "CA services") or by code prefix. Works offline. Returns official descriptions with their chapter and heading. For the GST rate of goods, pass the code to find_gst_rate. Choosing the right classification is the user's responsibility: show the candidates, explain the differences, and suggest confirming with their CA when it is unclear.
Inputs: query (required), type, limit.
validate_gstinValidate GSTINARead-onlyIdempotent
Check whether an Indian GSTIN is valid (format, state code and checksum) and decode its state, PAN and entity type. Works offline; it does not confirm the registration is active on the GST portal.
Inputs: gstin (required).
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 target a clearly distinct resource or action (pincode, GSTIN, IFSC, invoice, statement), and descriptions explicitly route between near-neighbours (lookup_hsn_sac says 'for the GST rate, use find_gst_rate'). The main soft overlaps are lookup_hsn_sac vs search_hsn_sac (code vs description lookup) and parse_upi_narration vs analyze/convert_bank_statement, but each description draws the boundary well enough for an agent to choose correctly.
Names are consistently snake_case and almost all follow verb_noun (lookup_pincode, validate_gstin, calculate_gst, analyze_bank_statement, convert_bank_statement). Minor deviations: amount_in_words is a noun phrase with no verb, and retrieval is split across three verbs (lookup_/search_/find_) rather than one, which slightly weakens predictability.
Twelve tools is well within the sweet spot and each one maps to a distinct step in the Indian GST/invoicing/bank-statement workflow. No tool looks like filler or a redundant variant of another.
The GST lifecycle is well covered end-to-end: classify (search/lookup HSN-SAC), rate lookup, calculate, and generate a PDF invoice, plus supporting utilities (pincode, IFSC, amount in words, UPI narration, statement parse/convert). Gaps remain: find_gst_rate does not cover SAC/service rates even though search_hsn_sac returns SAC codes, there is no invoice retrieval/listing or bulk GSTIN validation, and validation is explicitly offline-only, but agents can work around these.
Maintenance
Related MCP Connectors
PDF tools + invoice extraction, bank statement parsing, GST reconciliation & GSTIN validation.
Build WhatsApp, Sheets and Gmail automations for Indian businesses; check GST credit.
Create, send and track invoices from a conversation in Claude, ChatGPT or any MCP client that supports OAuth. Draft an invoice from one sentence or from last month's invoice for the same client, finalize it, email it to your client and send payment reminders for overdue ones. See revenue by month and by client, download PDFs and e-invoices (ZUGFeRD, XRechnung), and export DATEV packages for your tax advisor. Invoices follow the tax rules of 25 countries, including reverse charge and the small-business VAT exemption. New invoices are drafts, and nothing is emailed until you ask. Pay per invoice with no subscription: the first invoice is free.
Personal finance, bank account, and shared memory connector for Claude, ChatGPT, Gemini Spark & more
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides AI agents with Indian fintech utilities including IFSC bank lookups, PAN/GSTIN validation, mutual fund NAVs, UPI VPA identification, pincode lookups, and INR formatting, all with zero authentication and zero cost.7MIT
- AlicenseAqualityDmaintenanceEnables LLMs to query real-time Indian bank branch details, postal PIN codes, validate GSTIN/PAN structures, check e-commerce serviceability, and compute GST breakdowns using free public APIs and offline verification logic.615 npm1MIT
- AlicenseAqualityBmaintenanceEnables AI agents to fetch Indian mutual-fund NAVs and NSE market data, calculate GST and income-tax amounts, and look up RBI policy rates, with provenance blocks for citations. Works with any MCP client over stdio or HTTP.17MIT
- AlicenseAqualityBmaintenanceConnects Claude Desktop, Claude Code, and other MCP-compatible clients to cloud accounting and GST billing records, enabling GST-compliant invoice creation, ledger and voucher management, balance queries, and real-time financial reporting through natural language with role-based tenant isolation.2243 npmMIT