pakistan-mcp
Provides GitHub Copilot in VS Code with Pakistan-focused tools for tax calculations, validation of Pakistani identifiers, currency formatting, Roman Urdu conversion, dates, cities, and bank lookup.
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.
π΅π° pakistan-mcp
Give Claude, Cursor and other AI assistants accurate Pakistan tools. An MCP server for FBR salary tax, CNIC/phone/IBAN/NTN checks, PKR lakh/crore formatting, Roman Urdu β Urdu, and Urdu & Hijri dates.
AI models often get Pakistani tax slabs wrong, mix up lakh and million, and guess at Urdu numbers. With this server they call real, tested code instead of guessing.
π Full guide Β· Built on pakistan-toolkit and urdu-toolkit
What you can ask
Once it's connected, just ask your AI assistant in plain words (English, Urdu or Roman Urdu):
"Meri tankhwah 2 lakh mahana hai, 2026-27 mein kitna tax katega?"
"How much less tax will I pay this year than last year on Rs 3 lakh a month?"
"Is this IBAN correct? PK36 SCBL 0000 0011 2345 6702"
"Write Rs 25,50,000 in Urdu words for a cheque."
"Convert this to Urdu script: aap ka order kal tak pohanch jayega"
"Aaj Hijri tareekh kya hai?"
"List the cities in Khyber Pakhtunkhwa with Urdu names."
Related MCP server: DI Doctor
Tools
Tool | What it does |
| FBR salaried income tax for FY2024-25, FY2025-26, FY2026-27: monthly/annual tax, take-home, rates, surcharge |
| Same salary across two tax years: how much more or less you pay |
| CNIC format, region, gender digit, masked form |
| Mobile number in any format β E.164, local, WhatsApp link, original network |
| Full mod-97 IBAN check and bank name |
| NTN format (classic or CNIC-based) |
| Rs 12,34,567 Β· "12.35 lakh" Β· amount in English and Urdu words |
| Any number or amount in English or Urdu words |
| Roman Urdu β Urdu script |
| A date in Urdu and its Hijri date |
| Provinces and major cities, with Urdu names |
| Pakistani banks by IBAN code or name |
All tools are read-only, run locally on your computer, and need no API key or internet. Nothing you ask is sent anywhere by this server.
Setup
You need Node.js 20 or newer.
Claude Desktop
Open Claude Desktop β Settings β Developer β Edit Config.
Add this to
claude_desktop_config.json:
{
"mcpServers": {
"pakistan": {
"command": "npx",
"args": ["-y", "pakistan-mcp"]
}
}
}Restart Claude Desktop. You'll see the Pakistan tools in the tools menu.
Claude Code
claude mcp add pakistan -- npx -y pakistan-mcpCursor
Add to .cursor/mcp.json in your project (or ~/.cursor/mcp.json for all projects):
{
"mcpServers": {
"pakistan": {
"command": "npx",
"args": ["-y", "pakistan-mcp"]
}
}
}VS Code (GitHub Copilot)
Add to .vscode/mcp.json:
{
"servers": {
"pakistan": {
"type": "stdio",
"command": "npx",
"args": ["-y", "pakistan-mcp"]
}
}
}Any other MCP client
Run npx -y pakistan-mcp as a stdio server. It supports MCP protocol versions from 2024-11-05 to the latest.
Use it in your own code
You can also create the server in your own Node.js app, for example to serve it over HTTP:
import { createServer } from 'pakistan-mcp';
const server = createServer(); // an McpServer with all 12 tools registeredIf you only need the functions, not MCP, use pakistan-toolkit and urdu-toolkit directly.
Accuracy
Tax uses the official FBR salaried slabs, including the FY2026-27 slabs from the Finance Act 2026. It is an estimate for salaried income only and is not tax advice: exemptions, credits and other income are not included.
CNIC, NTN, phone and IBAN checks verify format and checksum only. They don't contact NADRA, FBR, PTA or any bank.
Hijri dates use the Umm al-Qura calendar. Pakistan follows local moon sighting, so the official date can differ by one day.
Roman Urdu conversion is reliable for common words. Rare words are converted phonetically and may need correction.
Development
git clone https://github.com/mubasher1111/pakistan-mcp.git
cd pakistan-mcp
npm install
npm test # starts the server over stdio and calls every tool
npm start # run the serverThe tests talk to the real server over stdio, exactly as Claude Desktop does.
License
MIT. Made by ZexCart. More free tools: zexcart.site/dev-tools.
If this is useful, please β star the repo.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
500+ deterministic tools for AI agents: math, conversion, validation, hashing, encoding, date/time.
Jordan & GCC labour-law, tax and finance calculators for AI agents β 36 deterministic tools.
Everyday calculators and converters for AI assistants: units, dates, percentages, text, JSON.
Amounts in words (Arabic cheque grammar), number formatting, Arabic text tools, date parsing.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables AI agents to work with Iran-specific data and Persian/RTL frontends fully offline, covering Jalali date conversion, national ID, card, Sheba and mobile validation, Persian text and number formatting, bank and operator lookup, VAT and price handling, plus RTL auditing and CSS/Tailwind conversion. All tools run locally with no API keys.5653 npm5MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to validate Pakistan FBR Digital Invoicing invoice payloads offline, safely interpret FBR responses, explain error codes in plain English, list sandbox scenarios, and produce simulated sandbox responses. It is read-only and makes no network calls, so integration checks stay on the local machine.MIT
- AlicenseAqualityBmaintenanceEnables Claude to deterministically normalize Pakistani phone numbers, convert between Latin and Urdu digit scripts, compute Hijri dates, and format rupee amounts in lakh/crore notation with Urdu word forms. All helpers run locally with no network access or stored data.5MIT
- AlicenseAqualityBmaintenanceEnables AI assistants to run accurate, offline Bangladesh calculations in English or Bangla β income tax with rebates and minimum tax, taka amounts in words for cheques and invoices, mobile number validation and operator detection, loan EMI, DPS/FDR savings growth, safe maths expressions, and digit conversion. Every tool is a local read-only computation, requiring no network access or API keys.7MIT