Faraidh MCP Server

Faraidh MCP Server

Enables Islamic inheritance law calculations (Faraidh) including heir validation, estate distribution, and handling special cases like Aul and Radd. Supports comprehensive inheritance scenarios with detailed reporting and case management functionality.

Category
Visit Server

README

Faraidh MCP Server

MCP (Model Context Protocol) Server untuk perhitungan Faraidh (Hukum Waris Islam) menggunakan library KalkulatorFaraidh.

Faraidh Schema Flowchart

Implementasi ini mengikuti skema flowchart faraidh yang komprehensif:

Faraidh Schema

Sumber: Faraidh-API oleh alamrumambi

Flowchart di atas menunjukkan alur logika perhitungan faraidh yang mencakup semua skenario dan kasus khusus dalam hukum waris Islam.

Fitur

🏛️ Perhitungan Faraidh Lengkap

  • Perhitungan bagian faraidh (dhawi al-furud)
  • Perhitungan bagian asabah (residual heirs)
  • Penanganan kasus Aul dan Radd
  • Validasi sesuai hukum Islam

📊 Tools Available

  1. tambah-kasus - Menambahkan kasus faraidh baru
  2. hitung-warisan - Menghitung pembagian warisan untuk kasus tersimpan
  3. buat-laporan - Membuat laporan detail pembagian warisan
  4. hitung-langsung - Perhitungan langsung tanpa menyimpan kasus
  5. laporan-langsung - Laporan langsung tanpa menyimpan kasus
  6. daftar-kasus - Melihat daftar semua kasus tersimpan
  7. lihat-kasus - Melihat detail kasus berdasarkan ID
  8. hapus-kasus - Menghapus kasus berdasarkan ID
  9. update-kasus - Mengupdate data kasus yang sudah ada
  10. template-kasus - Menggunakan template kasus yang disediakan
  11. validasi-data - Memvalidasi data harta dan ahli waris

👥 Ahli Waris yang Didukung

  • Pasangan: Suami, Istri
  • Keturunan: Anak laki-laki, Anak perempuan, Cucu
  • Orang Tua: Ayah, Ibu, Kakek, Nenek
  • Saudara: Kandung, Se-ayah, Se-ibu
  • Kerabat Jauh: Paman, Keponakan, dll.

📋 Template Kasus

  • keluargaSederhana - Kasus keluarga dengan pasangan dan anak
  • hanyaAnakPerempuan - Kasus hanya dengan anak perempuan
  • tanpaKeturunan - Kasus tanpa keturunan

Installation

  1. Clone atau copy project ini
  2. Install dependencies:
npm install
  1. Build project:
npm run build
  1. Jalankan server:
npm start

Development

Untuk development mode:

npm run dev

Mengintegrasikan dengan MCP config

{
  "mcpServers": {
    "faraidh-mcp": {
      "command": "node",
      "args": [
        "/path/to/faraidh-mcp/dist/index.js"
      ] 
    }
  }
}

Contoh Penggunaan

1. Menggunakan Template

{
  "template": "keluargaSederhana"
}

2. Tambah Kasus Manual

{
  "nama": "Kasus Keluarga Pak Ahmad",
  "deskripsi": "Pak Ahmad meninggal meninggalkan istri dan 2 anak",
  "harta": {
    "totalHarta": 1000000000,
    "hutang": 50000000,
    "biayaPemakaman": 10000000,
    "wasiat": 100000000
  },
  "ahliWaris": {
    "istri": 1,
    "anakLaki": 1,
    "anakPerempuan": 1,
    "ayah": 1,
    "ibu": 1
  }
}

3. Hitung Langsung

{
  "harta": {
    "totalHarta": 800000000,
    "hutang": 30000000,
    "wasiat": 100000000
  },
  "ahliWaris": {
    "suami": 1,
    "anakPerempuan": 2,
    "ibu": 1
  }
}

Validasi Data

Server akan memvalidasi:

  • Total harta harus > 0
  • Wasiat tidak boleh > 1/3 total harta
  • Tidak boleh ada suami dan istri bersamaan
  • Suami maksimal 1 orang
  • Harus ada minimal 1 ahli waris

Error Handling

Server menggunakan Zod schema untuk validasi input dan memberikan pesan error yang jelas dalam bahasa Indonesia.

Troubleshooting

  • Pastikan file faraidh-id.js berada di root folder project
  • Jalankan npm run build sebelum npm start
  • Periksa log error untuk debugging

Lisensi

ISC License

Kontributor

Dibuat berdasarkan library KalkulatorFaraidh dengan mengikuti skema flowchart perhitungan faraidh yang komprehensif.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured