About mcp-server-ru
mcp-server-ru connects MCP clients to the Hostkey .ru portal through InvAPI. It offers typed tools for account operations, from server management and ordering to DNS, S3, and billing, with confirmations for writes.
Key features
- 01132 typed tools plus raw API calls
- 02Manage servers, power, and orders
- 03Handle DNS, network, snapshots, and S3
- 04Access billing and Remote Hands
- 05Require confirmation for write operations
- 06Mask passwords and tokens in responses
Use cases
- 01Check server status and manage power
- 02Order or reinstall a server with safeguards
- 03Manage DNS records and S3 buckets
- 04Review invoices and payment details
MCP support
The MCP server connects to the Hostkey .ru InvAPI and exposes account operations as tools. It supports hosted URL and local stdio connections; write calls require confirmation.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://mcp.hostkey.ru/mcpclaude mcp add --transport http hostkey-cloud-ru-mcp-server-ru https://mcp.hostkey.ru/mcp{"mcpServers":{"hostkey-cloud-ru-mcp-server-ru":{"type":"http","url":"https://mcp.hostkey.ru/mcp"}}}Open in Cursor{"servers":{"hostkey-cloud-ru-mcp-server-ru":{"type":"http","url":"https://mcp.hostkey.ru/mcp"}}}Open in VS Code{"mcpServers":{"hostkey-cloud-ru-mcp-server-ru":{"type":"http","url":"https://mcp.hostkey.ru/mcp"}}}{"mcpServers":{"hostkey-cloud-ru-mcp-server-ru":{"serverUrl":"https://mcp.hostkey.ru/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
https://mcp.hostkey.ru/mcpAuth requiredTools
Details
From the project READMEHostkey MCP Server (RU)
MCP-сервер для Hostkey (портал .ru, InvAPI invapi.hostkey.ru).
Клиент подключается по URL или локально по stdio (Cursor, VS Code и др.).
Hosted: https://mcp.hostkey.ru/mcp (для .com — https://mcp.hostkey.com/mcp).
| Endpoint | https://invapi.hostkey.ru (зашит в код) |
| Авторизация | HOSTKEY_API_KEY |
| Инструменты | 132 типизированных + call_api_raw |
Сервер даёт модели доступ к аккаунту Hostkey: серверы, каталог и заказ, питание, переустановка ОС, сеть, DNS, снапшоты, IPMI/консоль, ISO, S3, Remote Hands, биллинг и API-ключи.
Для портала .com — отдельный пакет hostkey-mcp-server.
1. Получите API-ключ
InvAPI → управление API-ключами → выпустите ключ.
Лучше отдельный ключ для MCP. Ключ на один сервер ограничивает доступ этим сервером.
Для записи DNS нужны права pdns/edit.
2. Установка
Cursor (hosted URL — рекомендуется)
В .cursor/mcp.json (один или оба портала):
{
"mcpServers": {
"hostkey-com": {
"url": "https://mcp.hostkey.com/mcp",
"headers": {
"Authorization": "Bearer key-from-invapi.hostkey.com"
}
},
"hostkey-ru": {
"url": "https://mcp.hostkey.ru/mcp",
"headers": {
"Authorization": "Bearer key-from-invapi.hostkey.ru"
}
}
}
}
Подставь свои InvAPI-ключи. Локальный Node/npx не нужен.
Cursor (локальный npx / stdio)
{
"mcpServers": {
"hostkey-com": {
"command": "npx",
"args": ["-y", "hostkey-mcp-server"],
"env": {
"HOSTKEY_API_KEY": "key-from-invapi.hostkey.com"
}
},
"hostkey-ru": {
"command": "npx",
"args": ["-y", "hostkey-mcp-server-ru"],
"env": {
"HOSTKEY_API_KEY": "key-from-invapi.hostkey.ru"
}
}
}
}
VS Code
.vscode/mcp.json — те же варианты (url + headers или command / args / env).
Опционально для stdio: HOSTKEY_TOKEN_TTL, HOSTKEY_HTTP_TIMEOUT, HOSTKEY_ALLOW_DESTRUCTIVE
(см. .env.example).
Из исходников (Node.js ≥ 22.18): npm install && npm run build.
3. Подтверждение опасных операций
Все write-вызовы требуют confirm=true. Без него сервер ничего не меняет.
Дополнительно:
- заказ сервера по умолчанию в
dry_run— реальный заказ только после явного согласия; - переустановка ОС, PXE и отмена услуг — только при
HOSTKEY_ALLOW_DESTRUCTIVE=1; - пароли и токены в ответах маскируются.
Долгие операции (деплой, переустановка) возвращают callback-ключ — статус через check_task.
4. Инструменты
Группы (полный список виден клиенту в tools/list):
| Группа | Примеры |
|---|---|
| Серверы | get_servers, get_server, get_power_status |
| Каталог | list_presets, list_os, list_traffic_plans |
| Питание и заказ | power_on, power_off, order_server, reinstall_server |
| PXE | create_reinstall_task → … → clear_pxe_config |
| Сеть / DNS | порты, PTR, зоны и записи |
| Снапшоты, ISO, S3 | ВМ-снапшоты, образы, бакеты |
| Remote Hands | тикеты дежурной смене (request_rh_*, rhr_*) |
| Биллинг | счета, платежи, контакты |
| Прочее | check_task, call_api_raw |
Промпты
| Промпт | Зачем |
|---|---|
order_server_prompt | заказ сервера по шагам |
reinstall_server_prompt | переустановка ОС |
troubleshoot_server_prompt | диагностика |
Или просто напишите: «покажи мои серверы» / «закажи VPS в NL» — модель выберет нужные инструменты.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.