HRD-PIS MCP Server
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., "@HRD-PIS MCP Server show my profile info"
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.
HRD-PIS MCP Server
📋 Prasyarat Sistem
Sebelum memulai, pastikan sistem Anda sudah terinstal:
Node.js (Minimal versi 18)
Git (Untuk cloning repositori)
Aplikasi terminal (Command Prompt/PowerShell untuk Windows, atau Terminal bawaan untuk Mac/Linux).
Claude Desktop (Jika ingin menjalankan tahap integrasi AI).
Related MCP server: HR Solx MCP Server
🚀 Langkah 1: Instalasi Proyek
Buka terminal Anda dan clone repositori ini ke komputer lokal:
git clone https://github.com/Rashqueee/hrd-pis-mcp.gitMasuk ke dalam direktori proyek:
cd hrd-pis-mcpInstal seluruh dependensi yang dibutuhkan (termasuk MCP SDK dan TypeScript):
npm install
🔑 Langkah 2: Mendapatkan Token Autentikasi API
Server ini membutuhkan Bearer Token untuk dapat berkomunikasi dengan backend HRD-PIS. Token ini diambil melalui proses otentikasi Basic (Base64). Ikuti langkah ini dengan teliti:
A. Ubah Kredensial ke Base64
Ubah format username:password Anda menjadi format Base64 menggunakan terminal:
Pengguna Mac/Linux:
echo -n "username_anda:password_anda" | base64Pengguna Windows (PowerShell):
[Convert]::ToBase64String([Text.Encoding]::UTF8.GetBytes("username_anda:password_anda"))
(Catat teks acak hasil perintah di atas, misalnya: YnVkaXNhbnRvc28...)
B. Tembak API Login
Jalankan perintah curl berikut di terminal untuk melakukan login. Pastikan flag -D - disertakan agar terminal menampilkan Response Header:
curl -s -D - -X POST \
https://api-profile-plus.pisdev.my.id/auth/login \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Authorization: Basic <MASUKKAN_HASIL_BASE64_DI_SINI>"C. Ambil Token
Lihat hasil keluaran di terminal. Abaikan pesan success di bagian bawah, dan cari baris ini di bagian atas (Header):
authorization: Bearer xxxxx...
Salin teks tersebut. Ini adalah HRD_API_TOKEN Anda.
🏗️ Langkah 3: Build Proyek
Karena proyek ini ditulis dengan TypeScript, Anda harus melakukan kompilasi (build) menjadi JavaScript sebelum bisa dijalankan.
Jalankan perintah berikut di terminal (berada di dalam folder hrd-pis-mcp):
npm run buildCatatan: Perintah ini akan otomatis menghapus sisa kompilasi lama dan membuat folder build/ baru yang siap pakai.
🛠️ Langkah 4: Pengujian Lokal (MCP Inspector)
Sebelum dipasang ke Claude Desktop, uji coba tools Anda menggunakan MCP Inspector (antarmuka web resmi dari Anthropic).
Jalankan perintah di bawah ini dengan mengganti <TOKEN_ANDA> menggunakan token dari Langkah 2:
Untuk Pengguna Mac/Linux (Bash/Zsh):
HRD_BASE_URL="https://api-profile-plus.pisdev.my.id" HRD_API_TOKEN="<TOKEN_ANDA>" npx @modelcontextprotocol/inspector node build/index.jsUntuk Pengguna Windows (PowerShell):
$env:HRD_BASE_URL="https://api-profile-plus.pisdev.my.id"; $env:HRD_API_TOKEN="<TOKEN_ANDA>"; npx @modelcontextprotocol/inspector node build/index.jsSetelah perintah berjalan, terminal akan menampilkan tautan (misal: http://localhost:5173). Buka tautan tersebut di browser Anda untuk melakukan testing pada 16 tools yang tersedia secara manual.
(Tekan Ctrl + C di terminal untuk mematikan Inspector jika sudah selesai).
🤖 Langkah 5: Pemasangan Permanen di Claude Desktop
Jika pengujian lokal berhasil, pasangkan server ini ke Claude Desktop agar AI bisa menggunakannya secara otonom.
Cari Absolute Path Proyek Anda: Dapatkan alamat direktori lengkap menuju file
index.jshasil build Anda.Contoh Mac:
/Users/namauser/projects/hrd-pis-mcp/build/index.jsContoh Win:
C:\Users\namauser\projects\hrd-pis-mcp\build\index.js
Buka File Konfigurasi Claude:
macOS: Buka terminal dan jalankan
open ~/Library/Application\ Support/Claude/claude_desktop_config.jsonWindows: Buka File Explorer dan tuju ke
%APPDATA%\Claude\claude_desktop_config.json
Masukkan Konfigurasi: Isi file JSON tersebut dengan format berikut:
{ "mcpServers": { "hrd-pis": { "command": "node", "args": [ "<MASUKKAN_PATH_ABSOLUT_ANDA_DI_SINI>" ], "env": { "HRD_BASE_URL": "https://api-profile-plus.pisdev.my.id", "HRD_API_TOKEN": "<MASUKKAN_TOKEN_ANDA_DI_SINI>" } } } }⚠️ Penting untuk Windows: Anda wajib mengubah garis miring terbalik tunggal (
\) pada path menjadi ganda (\\). Contoh:"C:\\Users\\nama\\projects\\hrd-pis-mcp\\build\\index.js".Restart Claude Desktop: Tutup aplikasi Claude Desktop sepenuhnya (Quit), lalu buka kembali.
Buka obrolan baru, klik ikon Tools (palu) di kolom obrolan, dan Anda sudah bisa mulai memberikan perintah terkait HRD-PIS kepada Claude!
Available Tools
16 toolscancel_submissionA
Batalkan pengajuan yang masih PENDING
Inputs: id (required).
create_submissionA
Ajukan izin/cuti/sakit (mendukung multi-date)
Inputs: type (required), dates (required), reason (required), attachment.
create_todoC
Tambah task baru
Inputs: task (required), date.
delete_todoC
Hapus task
Inputs: id (required).
get_announcement_detailC
Detail satu pengumuman
Inputs: id (required).
get_announcementsC
Daftar pengumuman perusahaan
Inputs: search, type, page, limit.
get_attendance_detailA
Detail satu record kehadiran berdasarkan UUID
Inputs: id (required).
get_attendance_historyC
Riwayat presensi saya (dengan summary)
Inputs: start_date, end_date, page, limit, +1 more.
get_attendance_performanceC
Performa kehadiran bulanan
Inputs: month (required), year (required).
get_leave_quotaA
Lihat sisa kuota cuti saya
Inputs: year.
get_my_submissionsB
Lihat daftar pengajuan izin/cuti/sakit saya (paginated)
Inputs: page, limit, month, year.
get_today_attendance_statusA
Status kehadiran hari ini (check-in, check-out, jam kerja)
Inputs: no named parameters.
get_today_todosB
Task hari ini + overdue tasks
Inputs: search.
get_todo_detailC
Detail satu task
Inputs: id (required).
get_todo_historyA
History semua task (paginated)
Inputs: date, status, search, page, +1 more.
update_todoC
Update task atau toggle status
Inputs: id (required), task, status.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Tools are clearly differentiated, with attendance-related tools separated by aspect (history, detail, performance, today's status). However, the four attendance tools might cause some ambiguity if descriptions are not carefully read.
All tools follow a consistent verb_noun snake_case pattern, with 'get_' for reads and 'create_', 'update_', 'delete_', 'cancel_' for writes. Naming is predictable and easy to understand.
16 tools cover the main HR domains (attendance, leave, announcements, todos) without being too many or too few. Each tool serves a clear purpose within the scope.
The tool set covers retrieval well but lacks write operations for attendance (e.g., check-in/out) and has no update for submissions (only create and cancel). This leaves notable gaps for common HR workflows.
Maintenance
Related MCP Connectors
Connect your AI assistant to your Peak HR portal: HR operations, people, documents and drafts.
Enables AI assistants to retrieve event data and execute event management operations in Nunify.
Search employee profiles, read profile fields and list HR tasks in Sapling HR.
Connect your AI agent to the apitree API marketplace.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables interaction with Insperity's REST API to access employee data, including employee lists, check details, and profile information for HR management tasks.-
- AlicenseNot gradedqualityDmaintenanceActs as a bridge between AI models and the HR Solx REST API, enabling natural language management of users, geographic data, and professional skills. It provides tools for performing health checks, retrieving reference data, and creating or listing user accounts.MIT
- AlicenseAqualityDmaintenanceConnects AI tools to PingRep AI Representatives, enabling profile retrieval, directory search, Q&A, and contact management.127 npmMIT

HR Partner MCP Serverofficial
AlicenseAqualityCmaintenanceEnables AI assistants to read and write HR Partner company data via the HR Partner API, including employees, leave, expenses, recruitment, and more.49MIT