pakistan-mcp
This server provides AI assistants with tested, read-only Pakistani tax, validation, formatting, Urdu, date, city, and bank tools that run locally without API keys or internet.
Calculate and compare FBR salary income tax for FY 2024-25, 2025-26, and 2026-27, including monthly/annual tax, take-home pay, bonuses, mid-year salary changes, other income, tax deducted, refunds/balance due, and the 75% salary rule.
Validate Pakistani CNIC, mobile phone, IBAN with mod-97 checksum and bank lookup, and NTN formats.
Format PKR amounts in lakh/crore style, short form, and English/Urdu words; convert numbers or amounts to words.
Convert Roman Urdu text to Urdu script.
Return dates in Urdu and Hijri, with the Umm al-Qura calendar caveat.
List provinces and major cities with Urdu names, and find Pakistani banks by IBAN code or name.
All tools are read-only, local, and need no API key or internet; tax results are estimates and validators check format only.
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.
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., "@pakistan-mcp Meri tankhwah 2 lakh mahana hai, 2026-27 mein kitna tax katega?"
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.
🇵🇰 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?"
"My salary was 1.5 lakh until December, then 2 lakh, plus a 3 lakh bonus. My employer deducted Rs 1,50,000. Do I get a refund?"
"I earn 20 lakh salary and 4 lakh from freelancing. Which slabs apply to me?"
"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: MCP Urdu Toolkit
Tools
Tool | What it does |
| FBR salaried income tax for FY2024-25, FY2025-26, FY2026-27: monthly/annual tax, take-home, rates, surcharge. Handles mid-year salary changes and bonus, checks the 75% salary rule when there is other income, and shows the refund or balance due against tax already deducted. Every answer says which fiscal year and tax year it used. |
| 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.
Tax return assistant (new)
A Claude skill that helps a salaried person prepare their FBR income tax return and wealth statement before they open IRIS. Claude asks the right questions (salary, bonus, tax already deducted, assets, liabilities, expenses), then a tested script works out the tax, the refund or balance payable, and whether the wealth statement reconciles to zero, which IRIS requires before you can submit. You get a filing sheet of what to enter where. You submit on IRIS yourself; Claude never asks for your IRIS login.
Claude Code (installs the skill and this MCP server together):
/plugin marketplace add mubasher1111/pakistan-mcp
/plugin install pakistan-tax@zexcart-pakistanClaude.ai / Claude Desktop: download tax-return.zip from the
releases and upload it in
Settings → Capabilities → Skills (code execution must be on).
Then ask: "Meri tax return tayyar karni hai, tax year 2026". Covers salaried returns where salary is more than 75% of taxable income, tax years 2025-2027. Not tax advice.
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. Without a year it uses the current fiscal year (July–June) from today's date. If a new budget's slabs aren't in your version yet, it says so and shows the latest year it has; new slabs are released after each budget.
Salaried slabs apply only when salary is more than 75% of taxable income. If other income (business, freelance) is bigger than that, the tool says the non-salaried slabs apply instead of giving a wrong number. Rent, bank profit, dividends and capital gains are taxed separately and are not included. Exemptions and tax credits are not included. It is an estimate and not tax advice.
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.
Available Tools
12 toolsamount_in_wordsNumber or amount in wordsARead-onlyIdempotent
Writes a number or rupee amount in words, in English (One Lakh Fifty Thousand...) or Urdu (ایک لاکھ پچاس ہزار...), using the South Asian lakh/crore system.
Inputs: value (required), kind, language.
calculate_salary_taxPakistan salary income taxARead-onlyIdempotent
Calculates income tax for a SALARIED individual in Pakistan using the official FBR slabs. Supported fiscal years: 2024-25, 2025-26, 2026-27. Without a year it uses the CURRENT fiscal year (July-June) from today's date; if that year's slabs are not available yet it uses the latest year and returns a year_note you must show the user. Always tell the user which fiscal year (and tax year) the answer uses. If the user asks about "current" or "this year" without saying which, use the default. Give ONE of monthly_income, annual_income or salary_periods (for a salary that changed during the year, or for someone who joined mid-year). Optional: bonus; other_income (business or freelance income taxed at normal rates; NOT rent, bank profit, dividends or capital gains, which are taxed separately); and tax_deducted (tax already deducted that year) to see whether a refund is due or more tax is payable. Salaried slabs apply only when salary is MORE than 75% of taxable income; otherwise this tool returns an error explaining that the non-salaried slabs apply. Estimate only: no exemptions, credits or rebates.
Inputs: year, bonus, other_income, tax_deducted, +3 more.
compare_salary_taxCompare salary tax between yearsARead-onlyIdempotent
Compares income tax on the same salary across two Pakistani fiscal years (2024-25, 2025-26, 2026-27) and returns how much more or less tax is paid.
Inputs: to_year, from_year, annual_income, monthly_income.
find_bankFind a Pakistani bankARead-onlyIdempotent
Looks up a Pakistani bank by its 4-letter IBAN code (e.g. MEZN) or short name (e.g. HBL, Meezan, JazzCash). Omit the query to list all supported banks.
Inputs: query.
format_pkrFormat an amount in PKRARead-onlyIdempotent
Formats a rupee amount the Pakistani way: lakh/crore digit grouping (Rs 12,34,567), a short form ("12.35 lakh"), and the amount in words in English and Urdu (cheque style).
Inputs: amount (required).
list_citiesPakistani provinces and citiesARead-onlyIdempotent
Lists Pakistan’s provinces and territories (with ISO codes and Urdu names), or the major cities of one province (with Urdu names).
Inputs: province.
roman_to_urduRoman Urdu to Urdu scriptARead-onlyIdempotent
Converts Roman Urdu (Urdu typed in English letters, e.g. "aap kaise hain?") into Urdu script. Common words come from a dictionary and are reliable; rare words are converted phonetically and may need correction because Roman Urdu does not show which Urdu letter is meant.
Inputs: text (required), dictionary.
urdu_dateDate in Urdu and HijriARead-onlyIdempotent
Returns a date in Urdu (e.g. منگل، ۲۴ نومبر ۲۰۲۶) and its Islamic Hijri date with Urdu month names. Hijri uses the Umm al-Qura calendar; Pakistan follows local moon sighting, so the official date can differ by one day. Defaults to today.
Inputs: date, digits.
validate_cnicCheck a CNIC numberARead-onlyIdempotent
Checks whether a Pakistani CNIC (13 digits, with or without dashes) has a valid format, and returns the formatted and masked number, the region from the first digit and the gender from the last digit. Checks format only; it does not verify the CNIC with NADRA.
Inputs: cnic (required).
validate_ibanCheck a Pakistani IBANARead-onlyIdempotent
Validates a Pakistani IBAN (24 characters starting with PK) with the full ISO mod-97 checksum and identifies the bank (HBL, Meezan, UBL, JazzCash, Easypaisa and more). Spaces and lowercase are fine.
Inputs: iban (required).
validate_ntnCheck an NTNARead-onlyIdempotent
Checks the format of a Pakistani National Tax Number: classic 7+1 digits (1234567-8) or a 13-digit CNIC used as NTN. Format only; it does not query FBR.
Inputs: ntn (required).
validate_phoneCheck a Pakistani mobile numberARead-onlyIdempotent
Checks a Pakistani mobile number in any common format (0300..., +92..., 0092...) and returns it in international (E.164), local and WhatsApp formats, plus the network its prefix was originally given to (numbers can be ported to another network).
Inputs: phone (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 clearly distinct operations (validators for IBAN/NTN/CNIC/phone, tax calculators, geography, bank lookup). The main overlap is between format_pkr and amount_in_words, since both render rupee amounts in words, and validate_iban's bank identification partially overlaps find_bank. Descriptions do enough to disambiguate these edge cases, but an agent could reasonably hesitate between the two formatting tools.
Nine of twelve tools follow a clean verb_noun pattern (validate_iban, calculate_salary_tax, find_bank, list_cities, compare_salary_tax). A few deviate into noun phrases (amount_in_words, urdu_date) or a different prepositional form (roman_to_urdu, format_pkr), but all remain readable and snake_case throughout. No camelCase or chaotic mixing.
Twelve tools is squarely in the well-scoped range for a country-specific utility toolkit. Each tool covers a distinct function (four validators, three formatters, two tax tools, bank/city lookup, transliteration) and none feels redundant padding.
Coverage across identity validation, currency formatting, Urdu localization, geography, banking, and salary tax is solid and lifecycle-complete for those sub-domains. Minor gaps remain: no non-salaried/business tax calculator (explicitly excluded with an error), no reverse Urdu-to-Roman conversion, and no way to generate a masked/derived identifier beyond validators. These are workaroundable but noticeable.
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
- 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
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to deterministically convert taka amounts and numbers to Bangla words, translate between Gregorian and Bangla dates, find divisions/districts/upazilas, check public holidays, validate mobile numbers, and transliterate phonetic English into Bangla script.68 npmApache 2.0