CyberArk Privilege Cloud MCP Server
Enables privileged access management for CyberArk Privilege Cloud through 53 tools for account management, safe management, platform management, and session monitoring.
README
CyberArk Privilege Cloud MCP Server
An MCP server for CyberArk Privilege Cloud, built on the official ark-sdk-python library. Provides 53 tools for privileged access management.
Supports two authentication modes:
- OAuth per-user mode (recommended) -- each user authenticates with their own CyberArk Identity credentials via OAuth. Requires Streamable HTTP transport and an OIDC app in CyberArk Identity (setup guide).
- Legacy service account mode -- a single shared service account authenticates all requests via stdio transport. Simpler setup, shown in Quick Start below.
Quick Start
This sets up the legacy service account mode via stdio. For OAuth per-user mode, see OAuth Per-User Mode.
1. Install uv (if not already installed):
curl -LsSf https://astral.sh/uv/install.sh | sh
2. Configure Claude Desktop - Add to your configuration file:
| OS | Configuration File Location |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |
{
"mcpServers": {
"cyberark-privilege-cloud": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/aaearon/mcp-privilege-cloud.git",
"mcp-privilege-cloud"
],
"env": {
"CYBERARK_CLIENT_ID": "your-service-user-username",
"CYBERARK_CLIENT_SECRET": "your-service-user-password"
}
}
}
}
3. Restart Claude Desktop - The MCP server will appear in the tools menu (hammer icon) when connected.
Claude Code
claude mcp add cyberark-privilege-cloud \
-e CYBERARK_CLIENT_ID=your-service-user-username \
-e CYBERARK_CLIENT_SECRET=your-service-user-password \
-- uvx --from git+https://github.com/aaearon/mcp-privilege-cloud.git mcp-privilege-cloud
Example Prompts
Once configured, you can ask Claude things like:
- "List all accounts in the Production safe"
- "Show me Windows accounts that are failing management"
- "Create a new safe called 'DevOps-Credentials' with 30-day retention"
- "Add the DevOps team as safe members with retrieve permissions"
- "List all active platforms and their account counts"
- "Show me active privileged sessions"
Prerequisites
- CyberArk Identity Service User with:
- Appropriate Identity roles for the desired operations (e.g., Privilege Cloud Administrator for platform management)
- Safe permissions granting access to the safes and accounts you want to manage
- For OAuth per-user mode: an OIDC app in CyberArk Identity (see setup guide)
Configuration
OAuth Per-User Mode
Each connecting user authenticates with their own CyberArk Identity credentials via OAuth. The server verifies user identity from the OIDC JWT, then uses a shared service account platform token for all PCloud API calls.
Requires Streamable HTTP transport -- see Docker Deployment or set MCP_TRANSPORT=streamable-http when running locally.
| Variable | Required | Description |
|---|---|---|
CYBERARK_IDENTITY_TENANT_URL |
Yes | CyberArk Identity tenant URL (e.g., https://abc1234.id.cyberark.cloud) |
CYBERARK_CLIENT_ID |
Yes | Service account login name (for PCloud platform token) |
CYBERARK_CLIENT_SECRET |
Yes | Service account password |
CYBERARK_OAUTH_CLIENT_ID |
Yes | OIDC app client ID from Trust tab (for DCR and JWT audience) |
CYBERARK_OAUTH_CLIENT_SECRET |
Yes | OIDC app client secret from Trust tab (injected server-side in /token proxy) |
MCP_TRANSPORT |
No | Transport protocol (default: stdio; set to streamable-http for OAuth) |
MCP_HOST |
No | Server bind host (default: 127.0.0.1) |
MCP_PORT |
No | Server bind port (default: 8000) |
MCP_SERVER_URL |
No | Public URL for OAuth metadata (default: http://{host}:{port}) |
See CyberArk Identity Setup for full configuration instructions.
Legacy Service Account Mode
| Variable | Required | Description |
|---|---|---|
CYBERARK_CLIENT_ID |
Yes | Your Service User username |
CYBERARK_CLIENT_SECRET |
Yes | Your Service User password |
Docker Deployment
The included Dockerfile and docker-compose.yml run the server in Streamable HTTP mode, suitable for OAuth per-user authentication and remote MCP clients.
# Create .env with your credentials (see .env.example)
docker compose up -d --build
When deploying behind a reverse proxy, configure it to strip trailing slashes from request paths. MCP clients may POST to /mcp/ (trailing slash), causing a 307 redirect that strips the Authorization header. Set MCP_SERVER_URL to the public URL of your server.
Available Tools (53 Total)
Account Management (18 tools):
- Core Operations:
list_accounts,get_account_details,search_accounts,create_account,update_account,delete_account - Password Management:
change_account_password,set_next_password,verify_account_password,reconcile_account_password - Advanced Search:
filter_accounts_by_platform_group,filter_accounts_by_environment,filter_accounts_by_management_status,group_accounts_by_safe,group_accounts_by_platform,analyze_account_distribution,search_accounts_by_pattern,count_accounts_by_criteria
Safe Management (10 tools):
- Core Operations:
list_safes,get_safe_details,add_safe,update_safe,delete_safe - Member Management:
list_safe_members,get_safe_member_details,add_safe_member,update_safe_member,remove_safe_member
Platform Management (10 tools):
- Core Operations:
list_platforms,get_platform_details,import_platform_package,export_platform - Lifecycle Management:
duplicate_target_platform,activate_target_platform,deactivate_target_platform,delete_target_platform - Statistics:
get_platform_statistics,get_target_platform_statistics
Applications Management (9 tools):
- Core Operations:
list_applications,get_application_details,add_application,delete_application - Auth Methods:
list_application_auth_methods,get_application_auth_method_details,add_application_auth_method,delete_application_auth_method - Statistics:
get_applications_stats
Session Monitoring (6 tools):
- Session Management:
list_sessions,list_sessions_by_filter,get_session_details,count_sessions - Activity Tracking:
list_session_activities,get_session_statistics
Troubleshooting
| Issue | Solution |
|---|---|
| MCP not appearing in Claude | Restart Claude Desktop after saving configuration |
| Authentication failed | Verify Service User credentials in CyberArk Identity |
| Permission errors | Ensure the Service User has appropriate Identity roles and safe permissions |
| Connection issues | Verify you're using the .cloud domain (not .com) |
| OAuth 401 behind reverse proxy | Ensure the proxy strips trailing slashes (see Docker Deployment) |
uvx not found |
Install uv: curl -LsSf https://astral.sh/uv/install.sh | sh |
Verify MCP server manually:
uvx --from git+https://github.com/aaearon/mcp-privilege-cloud.git mcp-privilege-cloud
Development
git clone https://github.com/aaearon/mcp-privilege-cloud.git
cd mcp-privilege-cloud
uv sync
uv run pytest # Run all tests
uv run pytest --cov=mcp_privilege_cloud # Run with coverage
uv run mcp-privilege-cloud # Run the server locally
Documentation
- API Reference - Complete tool specifications and parameters
- Architecture - System design and components
- CyberArk Identity Setup - OAuth app configuration guide
- Development Guide - Contributing and development workflows
- Testing Guide - Detailed testing instructions
Security
- Never commit credentials to version control
- Use secure environment variable management
- Grant minimal required permissions to Service Users
- In OAuth mode, DCR returns public clients only -- secrets are injected server-side
- Official SDK provides automatic token management and secure protocols
License
MIT License - see LICENSE file for details.
Support
For issues and feature requests, please use GitHub Issues.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。