saudi-dev-mcp
by saadkasani
README.md
# saudi-dev-mcp
An MCP server that gives AI agents (Claude, Cursor, VS Code and others) accurate tools for Saudi-specific developer tasks, so they compute answers instead of guessing.
سيرفر MCP يعطي وكلاء الذكاء الاصطناعي أدوات دقيقة خاصة بالسياق السعودي، مثل التحقق من الآيبان وحساب ضريبة القيمة المضافة، بدل ما يخمّن الـAI النتيجة.
## Tools
| Tool | What it does | Status |
|---|---|---|
| `validate_saudi_iban` | Validates a Saudi IBAN with the ISO 13616 mod-97 checksum and returns the bank name (25 SAMA bank codes) | ✅ Done |
| `calculate_saudi_vat` | Saudi VAT at 15%, for amounts that include VAT or not, rounded to halalas | ✅ Done |
| `convert_hijri_date` | Hijri ⇄ Gregorian | 📋 Planned |
| `saudi_business_days` | Working days excluding Fri/Sat and public holidays | 📋 Planned |
### Examples
`validate_saudi_iban`
```json
// input
{ "iban": "SA03 8000 0000 6080 1016 7519" }
// output
{ "valid": true, "iban": "SA0380000000608010167519", "bankCode": "80", "bankName": "Al Rajhi Bank" }
```
`calculate_saudi_vat`
```json
// input
{ "amount": 1150, "mode": "inclusive" }
// output
{ "net": 1000, "vat": 150, "total": 1150, "rate": 0.15 }
```
## Getting started
Requires Node.js 18 or later.
```bash
npm install
npm test # run all tests
npm run inspect # open the MCP Inspector and try the tools in your browser
npm run build # compile to dist/
```
## Use it in Claude Desktop
After `npm run build`, add this to `claude_desktop_config.json`:
```json
{
"mcpServers": {
"saudi-dev": {
"command": "node",
"args": ["/absolute/path/to/saudi-dev-mcp/dist/index.js"]
}
}
}
```
## Project structure
```
src/
index.ts # MCP server: registers each tool
tools/
iban.ts # plain functions, no MCP code, easy to test
vat.ts
test/
iban.test.ts
vat.test.ts
```
Each tool's logic is a plain function in `src/tools/`. `index.ts` only connects it to MCP, so every tool is tested without starting a server.
## License
MIT © Saad Mohammed Noman