Memungkinkan AI client untuk mengelola infrastruktur cloud Hostkey, termasuk server, DNS, penyimpanan S3, billing, dan konfigurasi jaringan.
Juga dikenal sebagai hostkey-cloud/mcp-server, hostkey-mcp-server
- Stars
- 1
- Tools
- —
- Unduhan, 30 hari
- —
- Versi terbaru
- 1.0.8
- Commit terakhir
- 23 Okt 2026
- Lisensi
- MIT
Apa itu Hostkey MCP?
Hostkey adalah MCP server. Memungkinkan AI client untuk mengelola infrastruktur cloud Hostkey, termasuk server, DNS, penyimpanan S3, billing, dan konfigurasi jaringan.
Ringkasan dibuat dari README proyek
Tentang Hostkey MCP server
Mengelola infrastruktur cloud Hostkey melalui AI client memungkinkan developer untuk mengontrol server, DNS, penyimpanan S3, dan billing secara langsung dari lingkungan coding mereka. MCP server ini terhubung ke endpoint InvAPI dan menyediakan 132 typed tools beserta fungsi raw API call. Server ini dapat dijalankan secara lokal via stdio menggunakan npx untuk client seperti Cursor dan VS Code, atau dihubungkan ke remote cloud agents melalui hosted endpoint.
User harus menyediakan HOSTKEY_API_KEY untuk autentikasi. Sistem ini menyertakan langkah keamanan untuk tindakan sensitif, yang memerlukan parameter confirm untuk panggilan write dan variabel lingkungan opsional untuk mengizinkan operasi destruktif seperti instalasi ulang OS atau pembatalan layanan. Untuk proses yang berjalan lama seperti deployment, server menyediakan callback key yang dapat dipantau menggunakan tool check_task. Interface ini mencakup segalanya mulai dari manajemen daya dan konfigurasi jaringan hingga permintaan dukungan remote hands dan melihat invoice.
Apa yang bisa Anda lakukan dengannya
- 1Provisioning hardware cloud baruMinta AI untuk memesan VPS baru di lokasi tertentu.
- 2Otomatisasi update operating systemMinta instalasi ulang OS secara menyeluruh pada server yang sudah ada.
- 3Konfigurasi record network dan DNSUpdate DNS zones dan record atau kelola network ports.
Ditulis berdasarkan README proyek. Setiap use case diperiksa terhadap kutipan dari README tersebut.
Cara menginstal Hostkey MCP
Format diverifikasi 10 Nov 2026Tambahkan ke CursorTambahkan ke GooseInstal Hostkey MCP di Claude Code
$ claude mcp add --env 'HOSTKEY_API_KEY=<YOUR_HOSTKEY_API_KEY>' mcp-server -- npx -y hostkey-mcp-serverInstal Hostkey MCP di Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"hostkey-mcp-server"
],
"env": {
"HOSTKEY_API_KEY": "<YOUR_HOSTKEY_API_KEY>"
}
}
}
}Instal Hostkey MCP di VS Code
.vscode/mcp.json
{
"servers": {
"mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"hostkey-mcp-server"
],
"env": {
"HOSTKEY_API_KEY": "<YOUR_HOSTKEY_API_KEY>"
}
}
}
}Instal Hostkey MCP di VS Code CLI
$ code --add-mcp '{"name":"mcp-server","type":"stdio","command":"npx","args":["-y","hostkey-mcp-server"],"env":{"HOSTKEY_API_KEY":"<YOUR_HOSTKEY_API_KEY>"}}'Instal Hostkey MCP di Claude Desktop
claude_desktop_config.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"hostkey-mcp-server"
],
"env": {
"HOSTKEY_API_KEY": "<YOUR_HOSTKEY_API_KEY>"
}
}
}
}Instal Hostkey MCP di Codex
$ codex mcp add mcp-server --env 'HOSTKEY_API_KEY=<YOUR_HOSTKEY_API_KEY>' -- npx -y hostkey-mcp-serverInstal Hostkey MCP di Codex config.toml
~/.codex/config.toml
[mcp_servers.mcp-server] command = "npx" args = ["-y", "hostkey-mcp-server"] [mcp_servers.mcp-server.env] HOSTKEY_API_KEY = "<YOUR_HOSTKEY_API_KEY>"
Instal Hostkey MCP di Gemini CLI
$ gemini mcp add -s user -e 'HOSTKEY_API_KEY=<YOUR_HOSTKEY_API_KEY>' mcp-server npx -- -y hostkey-mcp-serverInstal Hostkey MCP di Gemini settings.json
~/.gemini/settings.json
{
"mcpServers": {
"mcp-server": {
"command": "npx",
"args": [
"-y",
"hostkey-mcp-server"
],
"env": {
"HOSTKEY_API_KEY": "<YOUR_HOSTKEY_API_KEY>"
}
}
}
}Konfigurasi
HOSTKEY_API_KEYWajibRahasiaInvAPI API key for the .com portal (invapi.hostkey.com); per-server keys supported
HOSTKEY_ALLOW_DESTRUCTIVESet to 1 to allow destructive operations (OS reinstall, PXE cycle, service cancellation)
HOSTKEY_TOKEN_TTLSession token TTL in seconds (default 3600)
| Nama | Deskripsi | Tipe |
|---|---|---|
| HOSTKEY_API_KEY | InvAPI API key for the .com portal (invapi.hostkey.com); per-server keys supported | WajibRahasia |
| HOSTKEY_ALLOW_DESTRUCTIVE | Set to 1 to allow destructive operations (OS reinstall, PXE cycle, service cancellation) | |
| HOSTKEY_TOKEN_TTL | Session token TTL in seconds (default 3600) |
Pengecekan otomatis
Berjalan 13 Nov 2026Laporan lengkap →Lolos checks otomatis kami. Ini bukan audit keamanan: baca kodenya dan berikan server akses paling terbatas yang dibutuhkannya. Cara kerja checks
- Source repository terhubung dan dapat dijangkauLolos
- Lisensi open source (OSI)Lolos
- Ada commit atau release dalam satu tahun terakhirLolos
- Nama package tidak mirip dengan package populerLolos
- Remote endpoint menggunakan HTTPSLolos
- Tools yang bersifat destruktif telah diberi labelTidak diperiksa
- Tidak ada instruksi tersembunyi untuk modelLolos
- Tidak ada advisory kritis pada paket atau dependensinyaLolos
README
Lihat di GitHubHostkey MCP Server
MCP server for Hostkey (.com portal, InvAPI invapi.hostkey.com).
Runs locally over stdio — Cursor, VS Code, and other MCP clients.
Hosted remote: https://mcp.hostkey.com/mcp (cloud agents).
| Endpoint | https://invapi.hostkey.com (hardcoded) |
| Auth | HOSTKEY_API_KEY |
| Tools | 132 typed tools + call_api_raw |
Gives the model access to your Hostkey account: servers, catalog and ordering, power, OS reinstall, network, DNS, snapshots, IPMI/console, ISO, S3, Remote Hands, billing, and API keys.
1. Get an API key
InvAPI → API keys → create a key.
Prefer a dedicated key for MCP. Per-server keys limit access to one server.
DNS writes need the pdns/edit permission.
2. Install
Cursor
Click the button, replace YOUR_API_KEY with your InvAPI key, then confirm.
Or add to .cursor/mcp.json manually:
{
"mcpServers": {
"hostkey-mcp-server": {
"command": "npx",
"args": ["-y", "hostkey-mcp-server"],
"env": {
"HOSTKEY_API_KEY": "your-api-key"
}
}
}
}
Remote (cloud agents)
No local Node/npx. Point the client at the hosted endpoint and send your InvAPI key:
{
"mcpServers": {
"hostkey": {
"url": "https://mcp.hostkey.com/mcp",
"headers": {
"Authorization": "Bearer your-api-key"
}
}
}
}
VS Code
.vscode/mcp.json:
{
"servers": {
"hostkey-mcp-server": {
"command": "npx",
"args": ["-y", "hostkey-mcp-server"],
"env": {
"HOSTKEY_API_KEY": "your-api-key"
}
}
}
}
Optional: HOSTKEY_TOKEN_TTL, HOSTKEY_HTTP_TIMEOUT, HOSTKEY_ALLOW_DESTRUCTIVE
(see .env.example).
From source (Node.js ≥ 22.18): npm install && npm run build.
3. Confirming dangerous operations
Every write call needs confirm=true. Without it, nothing changes.
Also:
order_serverdefaults todry_run— a real order only after explicit consent;- OS reinstall, PXE, and service cancellation require
HOSTKEY_ALLOW_DESTRUCTIVE=1; - passwords and tokens are masked in responses.
Long jobs (deploy, reinstall) return a callback key — poll with check_task.
4. Tools
Groups (full list via tools/list):
| Group | Examples |
|---|---|
| Servers | get_servers, get_server, get_power_status |
| Catalog | list_presets, list_os, list_traffic_plans |
| Power & order | power_on, power_off, order_server, reinstall_server |
| PXE | create_reinstall_task → … → clear_pxe_config |
| Network / DNS | ports, PTR, zones and records |
| Snapshots, ISO, S3 | VM snapshots, images, buckets |
| Remote Hands | duty-shift tickets (request_rh_*, rhr_*) |
| Billing | invoices, payments, contacts |
| Misc | check_task, call_api_raw |
Prompts
| Prompt | Purpose |
|---|---|
order_server_prompt |
guided server order |
reinstall_server_prompt |
OS reinstall |
troubleshoot_server_prompt |
diagnostics |
Or just ask: “list my servers” / “order a VPS in NL”.
Docs
Pertanyaan tentang Hostkey MCP
Bagaimana cara menambahkan Hostkey MCP ke Claude Code?
Jalankan claude mcp add --env 'HOSTKEY_API_KEY=<YOUR_HOSTKEY_API_KEY>' mcp-server -- npx -y hostkey-mcp-server di terminal Anda. Tambahkan --scope user agar tersedia di semua proyek.
Bagaimana cara menambahkan Hostkey MCP ke Cursor?
Buka ~/.cursor/mcp.json dan tambahkan server di bawah mcpServers, menggunakan config Cursor yang ditunjukkan di bagian instalasi di atas.
Bagaimana cara mencegah perubahan tidak sengaja saat operasi server?
Setiap panggilan write memerlukan confirm=true untuk dieksekusi, dan tool order_server secara default melakukan dry run kecuali jika diberikan persetujuan eksplisit.
Izin apa yang diperlukan untuk modifikasi DNS?
Untuk melakukan penulisan DNS, API key Anda harus memiliki izin pdns/edit.
Bagaimana cara menangani tugas yang memakan waktu lama seperti deployment server?
Job yang berjalan lama akan mengembalikan callback key yang dapat Anda gunakan untuk mengecek status menggunakan tool check_task.