Parallels RAS MCP Server
Parallels RAS MCP Server
Поддерживаемый сообществом MCP-сервер (Model Context Protocol) с правами только на чтение для запросов к инфраструктуре Parallels Remote Application Server (RAS) через RAS REST API.
Предоставляет ИИ-ассистентам видимость вашей среды RAS — инфраструктуры, настроек сайта, политик, публикаций и сеансов — без внесения каких-либо изменений.
Не является аффилированным с Parallels International GmbH. "Parallels" является товарным знаком соответствующего владельца.
Область применения и назначение
Поддерживаются два транспорта, выбираемых через переменную окружения MCP_TRANSPORT:
stdio(по умолчанию) — запускается как локальный подпроцесс клиентом MCP (Claude Desktop, Claude Code, Cursor и т. д.). Предназначен для индивидуального администратора на его рабочей станции или для сред разработки и тестирования. Учетные данные берутся из окружения запускающего процесса; сетевой прослушиватель отсутствует.http— потоковый HTTP-прослушиватель с обязательным токеном носителя (bearer token). Предназначен для развертываний в доверенной сети, где один сервер используется несколькими клиентами (например, за обратным прокси-сервером, который добавляет TLS). По умолчанию привязывается к127.0.0.1:3000; привязка ко всем интерфейсам является опциональной.
В любом режиме этот сервер поддерживает сеанс администратора RAS и предоставляет 41 инструмент с правами только на чтение. Он не предоставляет инструменты для записи или деструктивные инструменты, а также не обеспечивает многопользовательский режим или ограничение частоты запросов — относитесь к нему как к сервису с правами администратора и соответствующим образом защищайте доступ.
Совместимость API: проверено с Parallels RAS v21 REST API. Используемые ресурсы стабильны в версиях v18–v21.
Related MCP server: Dell SC Series MCP Server
Предварительные требования
Node.js 18 или новее
npm
Доступ к серверу Parallels RAS с включенным REST API (порт 20443 по умолчанию)
Установка
git clone https://github.com/RMITBLOG/ParallelsRAS_MCP.git
cd ParallelsRAS_MCP
npm install
npm run buildПеременные окружения
Подключение к RAS
Переменная | Обязательно | По умолчанию | Описание |
| Да | — | Имя хоста или IP-адрес сервера RAS |
| Да | — | Имя пользователя администратора |
| Да | — | Пароль администратора |
| Нет |
| Порт REST API |
| Нет |
| Пропустить проверку TLS-сертификата (для самоподписанных сертификатов) |
Транспорт
Переменная | Обязательно | По умолчанию | Описание |
| Нет |
|
|
| Только HTTP | — | Токен носителя, который клиенты должны предоставить в |
| Нет |
| Адрес привязки. Установите |
| Нет |
| Порт прослушивания. |
Конфигурация
Примеры ниже охватывают транспорт stdio, который является стандартным и наиболее востребованным пользователями. Для транспорта HTTP см. Запуск через HTTP ниже.
Claude Desktop
Отредактируйте ваш claude_desktop_config.json (обычно находится по адресу %APPDATA%\Claude\claude_desktop_config.json в Windows или ~/Library/Application Support/Claude/claude_desktop_config.json в macOS):
{
"mcpServers": {
"parallels-ras": {
"command": "node",
"args": ["/path/to/ParallelsRAS_MCP/build/index.js"],
"env": {
"RAS_HOST": "ras-server.example.com",
"RAS_USERNAME": "administrator",
"RAS_PASSWORD": "your-password",
"RAS_PORT": "20443",
"RAS_IGNORE_TLS": "true"
}
}
}
}Claude Code
claude mcp add parallels-ras -- node /path/to/ParallelsRAS_MCP/build/index.jsУстановите переменные окружения в вашей оболочке или в конфигурации MCP для Claude Code.
Cursor
В настройках Cursor перейдите в Features → MCP Servers и добавьте:
Name:
parallels-rasCommand:
node /path/to/ParallelsRAS_MCP/build/index.jsEnvironment:
RAS_HOST,RAS_USERNAME,RAS_PASSWORD
Другие MCP-совместимые клиенты
Для любого клиента, поддерживающего MCP через stdio, укажите:
node /path/to/ParallelsRAS_MCP/build/index.jsс необходимыми переменными окружения, установленными в конфигурации MCP-сервера клиента.
Запуск через HTTP
Транспорт HTTP реализует MCP Streamable HTTP и работает как долгоживущий процесс. Используйте его, если хотите, чтобы один сервер был доступен нескольким клиентам в доверенной сети — обычно за обратным прокси-сервером, который завершает TLS.
Запуск сервера
export RAS_HOST=ras-server.example.com
export RAS_USERNAME=administrator
export RAS_PASSWORD=your-password
export MCP_TRANSPORT=http
export MCP_HTTP_BEARER_TOKEN=$(openssl rand -hex 32) # required
# export MCP_HTTP_HOST=127.0.0.1 # default; set 0.0.0.0 to expose
# export MCP_HTTP_PORT=3000
npm run start:httpСервер записывает адрес прослушивания при запуске. Конечная точка MCP — POST /mcp. Запросы должны включать Authorization: Bearer <MCP_HTTP_BEARER_TOKEN>; при отсутствии или неверных токенах возвращается 401.
Подключение клиента
Для клиентов, поддерживающих потоковый HTTP MCP-сервер, укажите http://<host>:<port>/mcp с токеном носителя в заголовке Authorization. Например, для Claude Code CLI:
claude mcp add parallels-ras --transport http \
--header "Authorization: Bearer $MCP_HTTP_BEARER_TOKEN" \
http://your-server:3000/mcpКонтрольный список для продакшена
Всегда используйте перед ним TLS — обратный прокси-сервер (nginx, Caddy, Traefik), завершающий HTTPS, с MCP-сервером, привязанным к
127.0.0.1и доступным только через прокси.Относитесь к
MCP_HTTP_BEARER_TOKENкак к учетным данным — минимум 32 байта энтропии, хранение в менеджере секретов, ротация при увольнении сотрудников.Ограничьте сетевую доступность (брандмауэр, VPN, частная подсеть). Проверка токена — единственный уровень аутентификации на самом сервере.
Учетные данные администратора RAS находятся на том же хосте, что и прослушиватель — любой, у кого есть доступ к оболочке на этом хосте, может их прочитать. Не запускайте это на многопользовательском сервере.
Доступные инструменты (всего 41)
Все инструменты доступны только для чтения и помечены readOnlyHint: true для автоматического одобрения в совместимых клиентах.
Инфраструктура (14)
Инструмент | Описание |
| Список всех агентов RAS и их статус |
| Статус и приоритет брокера подключений |
| Облачные/гипервизорные провайдеры (AVD, AWS, Azure, Hyper-V и т. д.) |
| Хосты сеансов RDS |
| Пулы хостов RDS |
| Инвентаризация сертификатов |
| Статус устройства HALB |
| Статус сервера регистрации |
| Пулы хостов VDI |
| Шаблоны VDI |
| Статус Secure Client Gateway |
| Сайты фермы и их статус |
| SAML-провайдеры идентификации для SSO |
| Темы пользовательского портала и брендинг |
Настройки сайта (9)
Инструмент | Описание |
| Конфигурация интеграции с Active Directory |
| Настройки подключения и аутентификации |
| Настройки балансировки нагрузки |
| Конфигурация MFA-провайдера |
| Настройки печати |
| Статус брокера арендаторов |
| Конфигурация событий уведомлений |
| Правила перенаправления URL |
| Настройки оптимизации CPU |
FSLogix не предоставляется на уровне сайта через REST API — он настраивается для каждого пула хостов / шаблона AVD или через PowerShell.
Политики (1)
Инструмент | Описание |
| Список всех политик клиентов |
Настройки фермы (7)
Инструмент | Описание |
| Учетные записи администраторов и роли |
| Конфигурация фермы |
| Статус лицензирования и использование мест |
| Версия веб-сервиса |
| Конфигурация монитора производительности |
| Настройки почтового ящика SMTP |
| Конфигурация отчетности |
Публикация (9)
Инструмент | Описание |
| Опубликованные приложения RDS |
| Опубликованные приложения VDI |
| Опубликованные приложения AVD |
| Опубликованные рабочие столы RDS |
| Опубликованные рабочие столы VDI |
| Опубликованные рабочие столы AVD |
| Папки ресурсов |
| Статус службы публикации |
| Все опубликованные элементы (объединенный вид) |
Сеансы RD (1)
Инструмент | Описание |
| Активные сеансы удаленного рабочего стола |
Расширение
Чтобы добавить новый инструмент:
Создайте или откройте файл в
src/tools/(например,notifications.ts).Экспортируйте функцию
register(server: McpServer): void.Вызовите
rasClient.get("/api/<Resource>")с путем, который существует в официальном RAS REST API.Импортируйте и вызовите вашу функцию
registerвsrc/index.ts.Выполните
npm run build.
Имена файлов модулей (infrastructure.ts, site-settings.ts и т. д.) являются внутренней группировкой для связанных инструментов. Они не соответствуют сегментам URL — реальный API RAS является плоским под /api/<PascalCaseResource> (например, /api/Agent, /api/License, /api/MFA).
Справочник API
Справочник в браузере: https://docs.parallels.com/landing/ras-rest-api-guide
Базовый URL API:
https://<ras-host>:20443/api/
Дорожная карта
Операции записи — вне области действия этого репозитория. Отдельный сервер должен размещать любой инструмент, который изменяет состояние RAS, чтобы инструменты только для чтения здесь оставались безопасными для автоматического одобрения.
OAuth / OIDC для транспорта HTTP — в настоящее время используется один общий токен носителя. Идентификация каждого пользователя позволила бы нескольким клиентам совместно использовать развертывание без обмена учетными данными.
Участие
Проблемы и запросы на включение (pull requests) приветствуются. Пожалуйста, сначала откройте issue для всего, что выходит за рамки небольшого исправления, чтобы мы могли согласовать подход.
История
v1.1.0 — добавляет опциональный потоковый HTTP-транспорт с аутентификацией по токену носителя, наряду с существующим транспортом stdio.
v1.0.1 — исправляет все 41 путь к инструментам в соответствии с Parallels RAS v21 REST API и добавляет верификатор путей во время сборки (
scripts/verify-tool-paths.mjs) на основе прилагаемой спецификации OpenAPI.v1.0.0 — черновой каркас; пути REST API были смоделированы на основе заголовков оглавления документации, а не реальных конечных точек. Заменено версией v1.0.1.
Лицензия
Available Tools
43 toolsras_docs_get_pageGet Parallels Documentation PageARead-onlyIdempotent
Fetch the full markdown content of a specific Parallels documentation page. Use after ras_docs_search when you need the complete page (prerequisites, full procedure, all options) rather than excerpts. Accepts a full https://docs.parallels.com/... URL.
Inputs: url (required).
ras_docs_searchSearch Parallels DocumentationARead-onlyIdempotent
Search the official Parallels documentation for relevant pages, code examples, API references, and feature guides. Use this to validate configuration found via the RAS API tools, look up the documented behaviour of a feature, or find the right page before fetching it in full with ras_docs_get_page. Returns one or more excerpts with titles and direct links.
Inputs: query (required).
ras_farm_get_administratorsFarm AdministratorsARead-onlyIdempotent
List RAS farm administrator accounts — usernames, roles, permissions, group membership. Use this to audit admin access, verify role assignments, or review who has administrative control of the farm.
Inputs: limit, fields, filter.
ras_farm_get_configFarm ConfigurationARead-onlyIdempotent
RAS farm configuration settings — farm name, domain, backup settings, global options. Use this to review the overall farm setup, verify domain configuration, or check backup scheduling.
Inputs: no named parameters.
ras_farm_get_licensingLicensingARead-onlyIdempotent
RAS licensing status — license type (subscription/perpetual), expiration date, seat count, usage, activation status. Use this to check compliance, verify capacity, or diagnose licensing issues.
Inputs: no named parameters.
ras_farm_get_mailboxMailbox SettingsARead-onlyIdempotent
SMTP mailbox configuration used for RAS email notifications — server address, port, sender details. Use this to verify email notification settings or troubleshoot delivery failures.
Inputs: no named parameters.
ras_farm_get_performancePerformance MonitorARead-onlyIdempotent
Performance monitor configuration and counters for the RAS farm — resource utilisation thresholds and monitoring settings. Use this to review performance baselines or check monitoring configuration.
Inputs: no named parameters.
ras_farm_get_reportingReportingARead-onlyIdempotent
Reporting configuration for the RAS farm — report scheduling, data retention, database connection. Use this to verify reporting is enabled and properly configured.
Inputs: no named parameters.
ras_farm_get_versionWeb Service VersionARead-onlyIdempotent
RAS web service (REST API) version information. Returns the current API version and build number. Use this to verify the API version is compatible or check which features are available.
Inputs: no named parameters.
ras_infra_get_agentsRAS AgentsARead-onlyIdempotent
List all Parallels RAS agents deployed across the farm — hostname, IP, OS, agent version, and current status. Use this to verify agent deployment, diagnose connectivity, or check agent versions. Supports fields, filter, and limit to narrow large result sets.
Inputs: limit, fields, filter.
ras_infra_get_certificatesCertificatesARead-onlyIdempotent
Certificate inventory for the RAS farm — names, expiration dates, issuers, and usage. Use this to audit SSL/TLS certificates, check for upcoming expirations, or verify assignments.
Inputs: limit, fields, filter.
ras_infra_get_connection_brokersConnection BrokersARead-onlyIdempotent
Connection broker status, priority, and configuration. Brokers handle user session brokering and load distribution. Use this to check broker health, verify primary/secondary priority, or diagnose session routing.
Inputs: limit, fields, filter.
ras_infra_get_enrollment_statusEnrollment ServersARead-onlyIdempotent
Enrollment server status. Enrollment servers handle SCEP certificate enrollment for device management. Use this to check enrollment server health or troubleshoot certificate enrollment failures.
Inputs: limit, fields, filter.
ras_infra_get_gateway_statusGateway StatusARead-onlyIdempotent
Status of RAS Secure Client Gateways — connection state, IP addresses, tunnel mode. Gateways provide external user access to published resources. Use this to monitor gateway health or troubleshoot external connectivity.
Inputs: limit, fields, filter.
ras_infra_get_halb_statusHALB StatusARead-onlyIdempotent
Status of HALB (High Availability Load Balancer) devices in the farm — device health, IP addresses, operational state. Use this to monitor load balancer availability or diagnose gateway connectivity.
Inputs: limit, fields, filter.
ras_infra_get_providersProvidersARead-onlyIdempotent
List all cloud and hypervisor providers configured in the RAS farm — AVD, AWS EC2, Azure, Hyper-V, Nutanix, vCenter, VMware ESXi. Use this to verify provider connectivity, check provider types, or audit multi-cloud config.
Inputs: limit, fields, filter.
ras_infra_get_rds_hostpoolsRDS Host PoolsBRead-onlyIdempotent
List RDS host pool membership and configuration. Host pools group RDS servers for load balancing and resource allocation. Use this to review pool composition, check host assignments, or verify pool settings.
Inputs: limit, fields, filter.
ras_infra_get_rds_hostsRDS HostsARead-onlyIdempotent
List RDS session hosts — hostname, IP, agent status, active sessions, CPU/RAM usage, OS version. Use this to monitor host health, check capacity, or troubleshoot RDS issues. On large farms, narrow with filter (e.g. {status: 'online'}) or fields to keep responses small.
Inputs: limit, fields, filter.
ras_infra_get_saml_idpsSAML Identity ProvidersARead-onlyIdempotent
List SAML identity providers configured for SSO — provider names, metadata URLs, configuration details. Use this to audit SSO configuration or troubleshoot SAML authentication.
Inputs: limit, fields, filter.
ras_infra_get_sitesSitesARead-onlyIdempotent
List all sites configured in the RAS farm and their status. Multi-site deployments distribute infrastructure across locations. Use this to check site connectivity, verify configuration, or audit farm topology.
Inputs: limit, fields, filter.
ras_infra_get_themesThemesARead-onlyIdempotent
List user portal themes configured in the RAS farm — branding, logos, customisation settings. Use this to review portal appearance configuration or verify theme assignments.
Inputs: limit, fields, filter.
ras_infra_get_vdi_hostpoolsVDI Host PoolsARead-onlyIdempotent
List VDI host pool configuration — pool members, provisioning settings, capacity. Use this to review VDI pool composition, check desktop provisioning status, or verify pool sizing.
Inputs: limit, fields, filter.
ras_infra_get_vdi_templatesVDI TemplatesARead-onlyIdempotent
List VDI templates, their status, and configuration. Templates define the base image and settings for provisioned VDI desktops. Use this to check template versions, maintenance mode, or provisioning settings.
Inputs: limit, fields, filter.
ras_policies_listClient PoliciesARead-onlyIdempotent
List all Parallels RAS client policies — policy names, settings, and assignment status. Client policies control user experience settings (display, audio, printing, device redirection). Use this to audit policy configuration or troubleshoot client behaviour. Policies can be deeply nested — use fields to project only top-level metadata when you don't need every rule.
Inputs: limit, fields, filter.
ras_pub_get_all_itemsAll Published ItemsARead-onlyIdempotent
List all published items across all resource types (RDS, VDI, AVD apps and desktops) in a single view. Use this for a complete overview of everything published in the farm. Large farms can return thousands of items — narrow with filter (e.g. {type: 'App'}) or project with fields to keep responses small.
Inputs: limit, fields, filter.
ras_pub_get_avd_appsPublished AVD AppsARead-onlyIdempotent
List published Azure Virtual Desktop applications. AVD apps are delivered from Azure-hosted session hosts. Use this to review AVD app assignments or verify Azure-based application publishing.
Inputs: limit, fields, filter.
ras_pub_get_avd_desktopsPublished AVD DesktopsBRead-onlyIdempotent
List published Azure Virtual Desktop resources. AVD desktops are delivered from Azure-hosted session hosts. Use this to review AVD desktop assignments or verify Azure-based desktop publishing.
Inputs: limit, fields, filter.
ras_pub_get_foldersPublishing FoldersARead-onlyIdempotent
List published resource folders that organise applications and desktops into logical groups for end users. Use this to review folder hierarchy, check resource organisation, or verify folder-level access.
Inputs: limit, fields, filter.
ras_pub_get_rds_appsPublished RDS AppsARead-onlyIdempotent
List published RDS applications — app names, executable paths, server associations, user filter assignments. Use this to review which apps are published via RDS, check app configurations, or troubleshoot launch issues.
Inputs: limit, fields, filter.
ras_pub_get_rds_desktopsPublished RDS DesktopsARead-onlyIdempotent
List published RDS desktop resources. RDS desktops deliver full Windows desktops from shared session hosts. Use this to review RDS desktop assignments or troubleshoot launch issues.
Inputs: limit, fields, filter.
ras_pub_get_statusPublishing StatusARead-onlyIdempotent
Overall publishing service status and health. Returns whether the publishing agent is operational and any pending changes. Use this to verify publishing is functioning or diagnose why resources are unavailable.
Inputs: no named parameters.
ras_pub_get_vdi_appsPublished VDI AppsARead-onlyIdempotent
List published VDI applications. VDI apps run on dedicated virtual machines rather than shared RDS hosts. Use this to review VDI-published applications or compare with RDS app assignments.
Inputs: limit, fields, filter.
ras_pub_get_vdi_desktopsPublished VDI DesktopsARead-onlyIdempotent
List published VDI desktop resources. VDI desktops deliver dedicated virtual machines per user. Use this to review assignments or verify per-user desktop allocation.
Inputs: limit, fields, filter.
ras_sessions_listActive RD SessionsARead-onlyIdempotent
List active remote desktop sessions across the RAS farm — username, client IP, device name, state, screen resolution, and connected server. Use this to monitor active users, check session counts, troubleshoot connectivity, or identify idle/disconnected sessions. Supports fields, filter, and limit — prefer narrowing over fetching everything on large farms.
Inputs: limit, fields, filter.
ras_site_get_ad_integrationAD IntegrationARead-onlyIdempotent
Active Directory integration configuration — domain settings, forest trust relationships, OU mappings. Use this to verify AD connectivity, check domain join status, or troubleshoot authentication issues.
Inputs: no named parameters.
ras_site_get_connection_settingsConnection SettingsARead-onlyIdempotent
Connection and authentication settings — session timeouts, client connection policies, authentication methods. Use this to review security posture or troubleshoot client connection issues.
Inputs: no named parameters.
ras_site_get_cpu_optimizationCPU OptimizationARead-onlyIdempotent
CPU optimization settings for the site. Controls how CPU resources are allocated across user sessions. Use this to review resource management policies or troubleshoot performance issues.
Inputs: no named parameters.
ras_site_get_load_balancingLoad BalancingARead-onlyIdempotent
Load balancing settings — balancing method, resource weights, session limits. Use this to review how sessions are distributed across RDS hosts or diagnose uneven load distribution.
Inputs: no named parameters.
ras_site_get_mfaMFA ConfigurationARead-onlyIdempotent
Multi-factor authentication provider configuration — enabled MFA providers (TOTP, RADIUS, Deepnet, SafeNet, Email OTP), criteria rules, bypass conditions. Use this to audit MFA security posture or troubleshoot MFA login failures.
Inputs: no named parameters.
ras_site_get_notificationsNotification EventsARead-onlyIdempotent
Notification event configuration — alert triggers, email notifications, event thresholds. Use this to review which events trigger admin notifications or verify alerting is configured.
Inputs: limit, fields, filter.
ras_site_get_printingPrinting SettingsARead-onlyIdempotent
Printing configuration — printer redirection, universal printing options, driver policies. Use this to troubleshoot print redirection issues or review printing policy configuration.
Inputs: no named parameters.
ras_site_get_tenant_brokerTenant Broker StatusARead-onlyIdempotent
Tenant broker status and join information. The tenant broker enables multi-tenant RAS deployments. Use this to verify tenant broker connectivity or check join status for managed sites.
Inputs: no named parameters.
ras_site_get_url_redirectionURL RedirectionARead-onlyIdempotent
URL redirection rules configured for the site. URL redirection allows specific URLs opened on RDS hosts to be redirected to the client device browser. Use this to review redirection rules or troubleshoot URL handling.
Inputs: limit, fields, filter.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 43 tools
Tools are mostly organized by distinct RAS domains (farm, site, infra, pub) and resource types, making purposes clear. However, ras_pub_get_all_items overlaps with the specialized app, desktop, and folder listing tools, creating some ambiguity about when to use the aggregate versus targeted getters.
All tools use a consistent ras_<domain>_<verb>_<resource> pattern with snake_case, which is highly predictable. The minor inconsistency is that listing operations sometimes use get (e.g., ras_infra_get_agents) and sometimes list (e.g., ras_sessions_list, ras_policies_list).
43 tools is well above the typical 3-15 range and exceeds the 25+ threshold where count becomes a usability concern. Many granular getters for individual settings could be consolidated or parameterized without losing functionality.
The tool surface is entirely read-only: every tool is a get, list, or search operation. There are no create, update, delete, or action tools for any RAS resource, so agents cannot perform lifecycle management or remediation tasks, leaving significant gaps for an administration-focused server.
Maintenance
Related MCP Connectors
Read-only MCP for AI usage profiles, leaderboards, stats, and docs; no writes or private data.
Read-only MCP server for RZ AI Labs — query its services, workshops, and contact info.
Read-only Google Analytics 4 MCP server for AI assistants.
Read-only MCP server for AIStatusDashboard status, incidents, metrics, and fallback recommendations.
Related MCP Servers
AlicenseAqualityDmaintenanceRead-only MCP server that allows AI assistants to query and monitor KVM Fleet devices, audit logs, and console sessions through the official REST API.58 npm1MIT- AlicenseNot gradedqualityCmaintenanceA read-only MCP server that lets AI assistants diagnose Dell SC Series storage arrays through the array's own REST API.MIT
- AlicenseNot gradedqualityDmaintenanceA read-only MCP server that provides tools to list and read devices, MDM servers, blueprints, configurations, apps, packages, users, and other resources from Apple Business Manager and Apple School Manager.MIT
- AlicenseAqualityDmaintenanceA read-only MCP server for Proxmox VE that provides AI assistants with structured visibility into cluster nodes, guests, storage, and Docker workloads. It is designed to prevent any mutating operations by construction.12MIT