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 "Install 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-karyawanlist 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.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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 gradedqualityBmaintenanceMCP 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.
Related MCP Connectors
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
MCP Server for JFrog, providing tools for development and artifact management.
A basic MCP server to operate on the Postman API.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/michaeltio/mcp-demo'
If you have feedback or need assistance with the MCP directory API, please join our Discord server