npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

pakistan-mcp

v1.1.0

Published

MCP server that gives Claude, Cursor and other AI assistants accurate Pakistan tools: FBR salary tax, CNIC/phone/IBAN/NTN checks, PKR lakh/crore formatting, Roman Urdu to Urdu, and Urdu & Hijri dates. Runs locally, no API keys.

Downloads

634

Readme

🇵🇰 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.

Tests npm License MCP

📖 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."

Tools

| Tool | What it does | |---|---| | calculate_salary_tax | 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. | | compare_salary_tax | Same salary across two tax years: how much more or less you pay | | validate_cnic | CNIC format, region, gender digit, masked form | | validate_phone | Mobile number in any format → E.164, local, WhatsApp link, original network | | validate_iban | Full mod-97 IBAN check and bank name | | validate_ntn | NTN format (classic or CNIC-based) | | format_pkr | Rs 12,34,567 · "12.35 lakh" · amount in English and Urdu words | | amount_in_words | Any number or amount in English or Urdu words | | roman_to_urdu | Roman Urdu → Urdu script | | urdu_date | A date in Urdu and its Hijri date | | list_cities | Provinces and major cities, with Urdu names | | find_bank | 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

  1. Open Claude Desktop → Settings → Developer → Edit Config.
  2. Add this to claude_desktop_config.json:
{
  "mcpServers": {
    "pakistan": {
      "command": "npx",
      "args": ["-y", "pakistan-mcp"]
    }
  }
}
  1. Restart Claude Desktop. You'll see the Pakistan tools in the tools menu.

Claude Code

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

Cursor

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 registered

If 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 server

The 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.