mcp-karyawan
This server provides full CRUD (Create, Read, Update, Delete) management of employee (karyawan) records. You can:
Create a new employee with
nama,jabatan,departemen,email, and an optionalstatus(defaults to'aktif'). A unique UUID is automatically generated.List all employees to retrieve all stored records.
Get a specific employee by their unique
id.Update an employee's details (any of
nama,jabatan,departemen,email,status) by providing theidand the fields to change. Missing or null fields are left unchanged.Delete an employee permanently using their
id.
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., "@mcp-karyawan list all employees"
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.
Karyawan MCP Demo
Server Model Context Protocol (MCP) sederhana untuk demo — menyediakan operasi CRUD (Create, Read, Update, Delete) data karyawan yang bisa dipanggil langsung oleh Claude (Claude Code maupun Claude Desktop) sebagai tools.
Data disimpan in-memory (array JavaScript), jadi hanya untuk keperluan belajar/demo — data akan hilang setiap kali server di-restart.
Fungsinya apa?
Server ini mengekspos 5 tools MCP yang bisa dipanggil Claude untuk mengelola data karyawan tanpa perlu database:
Tool | Deskripsi | Input |
| Ambil semua data karyawan | - |
| Ambil satu karyawan berdasarkan |
|
| Tambah karyawan baru |
|
| Ubah data karyawan (field yang tidak diisi tidak berubah) |
|
| Hapus karyawan berdasarkan |
|
Setiap karyawan punya field: id (number, auto-increment), nama, posisi, divisi, gaji.
Related MCP server: MCP Playground
File utama
src/index.ts— satu-satunya file source. Berisi definisi data karyawan (seed data) dan registrasi 5 tools MCP di atas, lalu menjalankan server lewat stdio transport.package.json— dependency utama:@modelcontextprotocol/serverdanzod(untuk validasi input tool).
Instalasi
Requirement
Node.js versi 20+ (disarankan v22/v24 karena bisa langsung menjalankan file
.tstanpa build/transpile terpisah).
1. Clone repo
git clone <url-repo-ini>
cd mcp-demo2. Install dependency
npm install3. Coba jalankan manual (opsional, untuk memastikan server jalan)
node src/index.tsJika muncul log weather MCP server running on stdio di terminal, server sudah berjalan dan menunggu koneksi lewat stdio. Tekan Ctrl+C untuk berhenti.
Menghubungkan ke Claude Code
Jalankan perintah berikut dari root project ini (ganti path sesuai lokasi clone di komputer kamu):
claude mcp add karyawan-mcp-demo -- node ./src/index.tsCek apakah server sudah terdaftar:
claude mcp listSetelah itu, tools list_karyawan, get_karyawan, create_karyawan, update_karyawan, dan delete_karyawan bisa langsung dipanggil Claude Code di sesi chat kamu.
Menghubungkan ke Claude Desktop
Buka file konfigurasi MCP milik Claude Desktop (buat file/folder-nya kalau belum ada):
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Tambahkan entry berikut ke bagian
mcpServers(sesuaikan pathsrc/index.tsdengan lokasi clone repo di komputermu):{ "mcpServers": { "karyawan-mcp-demo": { "command": "node", "args": ["/path/ke/mcp-demo/src/index.ts"] } } }Simpan file, lalu restart Claude Desktop sepenuhnya (keluar dari aplikasi, buka lagi).
Buka chat baru, cek ikon "tools"/MCP di Claude Desktop — server
karyawan-mcp-demobeserta 5 tools-nya seharusnya sudah muncul dan siap dipakai.
Contoh pemakaian
Setelah terhubung, tinggal minta ke Claude, misalnya:
"Tampilkan semua karyawan"
"Tambah karyawan baru bernama Sarah Mitchell, posisi Backend Engineer, divisi Engineering, gaji 15000000"
"Update gaji karyawan dengan id
...jadi 16000000""Hapus karyawan dengan id
..."
Claude akan otomatis memanggil tool MCP yang sesuai.
Available Tools
5 toolscreate_karyawanA
Buat data karyawan baru. Id akan digenerate otomatis (uuid).
Inputs: nama (required), email (required), jabatan (required), departemen (required), +1 more. Returns: object
delete_karyawanC
Hapus data karyawan berdasarkan id.
Inputs: id (required). Returns: object
get_karyawanA
Ambil data satu karyawan berdasarkan id. Gagal jika id tidak ditemukan.
Inputs: id (required). Returns: object
list_karyawanA
Tampilkan semua data karyawan.
Inputs: no named parameters. Returns: result
update_karyawanA
Perbarui data karyawan berdasarkan id. Field bernilai None tidak diubah.
Inputs: id (required), nama, email, status, +2 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct CRUD operation on the same 'karyawan' resource, with no overlap. The actions (list, get, update, delete, create) are clearly differentiated.
All tools follow a consistent verb_noun pattern in snake_case (e.g., list_karyawan, create_karyawan), with no deviations or mixed conventions.
5 tools provide a complete CRUD surface for a single resource, which is an appropriate and well-scoped set for a simple employee data management server.
The tool set covers all basic CRUD operations: create, read (both list and get), update, and delete. No obvious gaps for the stated purpose of managing karyawan data.
Related MCP Connectors
Hosted MCP server for AI-driven data ops. Create apps, manage schemas, and CRUD structured data.
MCP server exposing klokin time-tracking operations (employees, time entries, stores) to AI clients.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA small MCP server that manages a product inventory using SQLite, providing CRUD operations through exposed MCP tools.-
- FlicenseDqualityDmaintenanceA demonstration MCP server that provides access to a SQLite employee database with tools for querying users and profiles, sending emails via Mailtrap, and proposing project teams based on employee skills.3-
- AlicenseNot gradedqualityDmaintenanceMCP server providing natural-language tools for managing and querying an employee database, including user CRUD, search, and statistics.MIT
- FlicenseNot gradedqualityDmaintenanceThis MCP server provides tools to manage a todo list with CRUD operations, enabling listing, creating, updating, and deleting todos.-