pakistan-mcp: Give Claude and Other AI Assistants Accurate Pakistan Tax, IBAN and Urdu Tools

Ask an AI assistant how much income tax you’ll pay on a Rs 2 lakh monthly salary in Pakistan, and you may get three different answers on three different days. AI models learn from old web pages, so they often use last year’s tax slabs, mix up lakh and million, or simply do the arithmetic wrong. The same happens with IBAN checks, Urdu numbers and Hijri dates.

pakistan-mcp fixes this. It is a free MCP server that gives Claude, Cursor, VS Code and other AI assistants a set of accurate, tested Pakistan tools. When you ask a question, the assistant calls the tool and uses its exact answer instead of guessing.

What is MCP?

MCP (Model Context Protocol) is an open standard that lets AI assistants use outside tools. Think of it like apps on a phone: the AI is the phone, and an MCP server is an app you install to give it a new ability. Claude, Cursor, VS Code with GitHub Copilot and many other AI tools support MCP.

What you can ask

After setup, just talk to your assistant normally, in 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 to Urdu script: aap ka order kal tak pohanch jayega”
  • “Aaj Hijri tareekh kya hai?”

The 12 tools

ToolWhat it does
calculate_salary_taxFBR salaried income tax for FY2024-25, FY2025-26 and FY2026-27, with take-home pay
compare_salary_taxHow much more or less tax you pay between two years
validate_cnicCNIC format, region and gender digit
validate_phoneMobile number in any format, WhatsApp link and original network
validate_ibanFull IBAN checksum and bank name
validate_ntnNTN format
format_pkrRs 12,34,567, “12.35 lakh”, amount in English and Urdu words
amount_in_wordsAny number or amount in English or Urdu words
roman_to_urduRoman Urdu to Urdu script
urdu_dateA date in Urdu, and its Hijri date
list_citiesProvinces and major cities with Urdu names
find_bankPakistani banks by IBAN code or name

All tools only read and calculate. They run on your own computer, need no API key, and send nothing to the internet.

How to set it up

First install Node.js (version 20 or newer) if you don’t have it. Then follow the steps for your app.

Claude Desktop

  1. Open Claude Desktop and go to Settings → Developer → Edit Config.
  2. Paste this into the claude_desktop_config.json file and save it:
{
  "mcpServers": {
    "pakistan": {
      "command": "npx",
      "args": ["-y", "pakistan-mcp"]
    }
  }
}
  1. Close and reopen Claude Desktop. The Pakistan tools will appear in the tools menu.

Claude Code

claude mcp add pakistan -- npx -y pakistan-mcp

Cursor

Add the same JSON as Claude Desktop to .cursor/mcp.json in your project, or to ~/.cursor/mcp.json to use it in every project.

VS Code

// .vscode/mcp.json
{
  "servers": {
    "pakistan": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "pakistan-mcp"]
    }
  }
}

How accurate is it?

  • Tax: uses the official FBR salaried slabs, including the new FY2026-27 slabs from the Finance Act 2026. It is an estimate for salary income only, not tax advice.
  • CNIC, NTN, phone and IBAN: checks format and checksum. It does not contact NADRA, FBR, PTA or any bank.
  • Hijri dates: uses the Umm al-Qura calendar; Pakistan’s moon-sighting date can differ by one day.
  • Roman Urdu: reliable for common words; rare words may need a small correction.

The server is tested automatically on Windows, macOS and Linux with every change. The tests start the server exactly the way Claude Desktop does and check every tool’s answer.

Built on our open-source libraries

pakistan-mcp is built on two free libraries you can also use directly in your own apps: pakistan-toolkit (CNIC, IBAN, phone, FBR tax, PKR formatting) and urdu-toolkit (Roman Urdu, Urdu numbers and dates). You can also try all of these tools in your browser on our Dev Tools page.

Frequently asked questions

Is it free?

Yes. pakistan-mcp is open source under the MIT license and needs no API key or account.

Does it send my data anywhere?

No. The server runs on your computer and makes no network calls. Your AI assistant itself may still send your conversation to its own provider, as it always does.

Do I need to know programming?

No. You only need to install Node.js and paste one small block of settings. After that you just chat with your assistant as usual.

Give your AI assistant real Pakistan knowledge

Set up pakistan-mcp in two minutes. If it helps you, a star on GitHub helps others find it.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top