Purple AI MCP Server
Enables MCP clients to interact with SentinelOne's cybersecurity platform for security analysis, threat investigation, and asset management through natural language queries. Provides read-only access to alerts, vulnerabilities, misconfigurations, and inventory data.
README
<picture> <source media="(prefers-color-scheme: dark)" srcset="https://www.sentinelone.com/wp-content/themes/sentinelone/assets/svg/header-logo-light.svg"> <source media="(prefers-color-scheme: light)" srcset="https://www.sentinelone.com/wp-content/themes/sentinelone/assets/svg/header-logo-dark.svg"> <img alt="Logo description" src="light-logo.png"> </picture>
Purple AI MCP Server
Purple AI MCP Server allows you to access SentinelOne Services with any MCP client.
Features
This server exposes SentinelOne's platform through the Model Context Protocol:
- Purple AI: Ask security questions, investigate threats
- Events: Run PowerQueries on events in your SentinelOne data lake
- Alerts: Query, search, and investigate alerts
- Vulnerabilities: Track CVEs and security findings
- Misconfigurations: Analyze security posture issues
- Inventory: Ask questions about endpoints, cloud resources, identities, and network devices
Purple AI MCP is a read-only service - you cannot make changes to your account or any objects within your account from this MCP.
Quick Start
Using uv (Recommended for Local Development or Deployment)
# Install uv if you don't have it
curl -LsSf https://astral.sh/uv/install.sh | sh
# Set credentials
export PURPLEMCP_CONSOLE_TOKEN="your_token"
export PURPLEMCP_CONSOLE_BASE_URL="https://your-console.sentinelone.net"
# Run
uvx --from git+https://github.com/Sentinel-One/purple-mcp.git purple-mcp --mode=stdio
⚠️ Security note ⚠️
For production or security-sensitive environments, pin to a specific commit hash instead of using the default branch to reduce supply chain risk from the our releases or our verified commits in main branch.
# Run with pinned hash
uvx --from git+https://github.com/Sentinel-One/purple-mcp.git@<commit-hash> purple-mcp --mode=stdio
Using Docker
# Build the image
docker build -t purple-mcp:latest .
# Run with your credentials
export PURPLEMCP_CONSOLE_TOKEN="your_token"
export PURPLEMCP_CONSOLE_BASE_URL="https://your-console.sentinelone.net"
docker run -p 8000:8000 \
-e PURPLEMCP_CONSOLE_TOKEN \
-e PURPLEMCP_CONSOLE_BASE_URL \
-e MCP_MODE=streamable-http \
purple-mcp:latest
Using Amazon Bedrock AgentCore
# Subscribe to Purple AI MCP Server via AWS Marketplace
#Prepare Environment Variables
PURPLEMCP_CONSOLE_BASE_URL=https://your-console.sentinelone.net
PURPLEMCP_CONSOLE_TOKEN=your-token
MCP_MODE=streamable-http
PURPLEMCP_STATELESS_HTTP=True
Follow instructions for Amazon Bedrock AgentCore Deployment here
Using Amazon Elastic Container Service (ECS)
# Subscribe to Purple AI MCP Server via AWS Marketplace
#Prepare Environment Variables
PURPLEMCP_CONSOLE_BASE_URL=https://your-console.sentinelone.net
PURPLEMCP_CONSOLE_TOKEN=your-token
MCP_MODE=streamable-http
PURPLEMCP_STATELESS_HTTP=True
Follow instructions for Amazon Elastic Container Service Deployment here
For production deployments, see Deployment Guide.
Note: Purple AI MCP does not include built-in authentication. For network-exposed deployments, place it behind a reverse proxy or load balancer. See Production Setup for cloud load balancer configurations (AWS ALB, GCP Cloud Load Balancing, Azure Application Gateway) or nginx examples for self-hosted deployments.
Your token needs Account or Site level permissions (not Global). Get one from Policy & Settings → User Management → Service Users in your console. Currently, this server only supports tokens that have access to a single Account or Site. If you need to access multiple sites, you will need to run multiple MCP servers with Account-specific or Site-specific tokens.
Clients
Purple AI MCP supports stdio, sse, and streamable-http protocols and should work in any client that supports MCP. Some sample configurations are listed below.
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%/Claude/claude_desktop_config.json (Windows):
{
"mcpServers": {
"purple-mcp": {
"command": "uvx",
"args": ["--from", "git+https://github.com/Sentinel-One/purple-mcp.git", "purple-mcp", "--mode", "stdio"],
"env": {
"PURPLEMCP_CONSOLE_TOKEN": "your_token",
"PURPLEMCP_CONSOLE_BASE_URL": "https://your-console.sentinelone.net"
}
}
}
}
Claude Code
Run this command in a terminal:
claude mcp add --transport stdio purple-mcp --env PURPLEMCP_CONSOLE_TOKEN=your_token --env PURPLEMCP_CONSOLE_BASE_URL=https://your-console.sentinelone.net -- uvx --from git+https://github.com/Sentinel-One/purple-mcp.git purple-mcp --mode stdio
OpenAI Codex
Run this command in a terminal:
codex mcp add purple-mcp --env PURPLEMCP_CONSOLE_TOKEN=your_token --env PURPLEMCP_CONSOLE_BASE_URL=https://your-console.sentinelone.net -- uvx --from git+https://github.com/Sentinel-One/purple-mcp.git purple-mcp --mode stdio
Pydantic AI
Here is some example Python code to use Purple MCP with a Pydantic AI Agent.
from pydantic_ai import Agent
from pydantic_ai.mcp import MCPServerStdio
server = MCPServerStdio(
'uvx', args=["--from", "git+https://github.com/Sentinel-One/purple-mcp.git", "purple-mcp", "--mode", "stdio"], timeout=10
)
agent = Agent('anthropic:claude-haiku-4-5', toolsets=[server])
Zed
Edit ~/.zed/mcp.json:
{
"mcpServers": {
"purple-mcp": {
"enabled": true,
"source": "custom",
"command": "uvx",
"args": ["--from", "git+https://github.com/Sentinel-One/purple-mcp.git", "purple-mcp", "--mode", "stdio"],
"env": {
"PURPLEMCP_CONSOLE_TOKEN": "your_token",
"PURPLEMCP_CONSOLE_BASE_URL": "https://your-console.sentinelone.net"
}
}
}
}
Other Clients
For debugging or to host server for multiple clients, run in streamable-http mode and connect via mcp-remote:
# Terminal 1: Start server
export PURPLEMCP_CONSOLE_TOKEN="your_token"
export PURPLEMCP_CONSOLE_BASE_URL="https://your-console.sentinelone.net"
uvx --from git+https://github.com/Sentinel-One/purple-mcp.git purple-mcp --mode streamable-http --host localhost --port 8000
# Terminal 2: Connect with any client
npx -y mcp-remote http://127.0.0.1:8000/mcp
We suggest you do not expose Purple AI MCP on a network at this time, as there is no authentication enforced and anyone could access a configured SentinelOne account.
Available Tools
Purple AI
purple_ai(query)- Ask security questions
Data Lake
powerquery(query, start_time, end_time)- Run PowerQuery analytics
Alerts
get_alert(alert_id)- Get alert detailslist_alerts(first, after, view_type)- List recent alertssearch_alerts(filters, first)- Search with filtersget_alert_notes(alert_id)- Get alert commentsget_alert_history(alert_id)- View alert timeline
Vulnerabilities
get_vulnerability(id)- Get vulnerability detailslist_vulnerabilities(first, after)- List recent vulnerabilitiessearch_vulnerabilities(filters, first)- Search CVEs and findingsget_vulnerability_notes(id)- Get commentsget_vulnerability_history(id)- View timeline
Misconfigurations
get_misconfiguration(id)- Get misconfiguration detailslist_misconfigurations(first, after)- List recent issuessearch_misconfigurations(filters, first)- Search by criteriaget_misconfiguration_notes(id)- Get commentsget_misconfiguration_history(id)- View timeline
Asset Inventory
get_inventory_item(item_id)- Get asset detailslist_inventory_items(limit, skip, surface)- List assets by surface typesearch_inventory_items(filters, limit)- Search with advanced filters
Environment Variables
PURPLEMCP_CONSOLE_TOKEN- Service user token (Account or Site level)PURPLEMCP_CONSOLE_BASE_URL- Console URL (e.g., https://console.sentinelone.net)PURPLEMCP_TRANSPORT_MODE- MCP transport mode:stdio(default),sse, orstreamable-httpPURPLEMCP_STATELESS_HTTP- Enable stateless HTTP mode for serverless deployments (e.g., Amazon Bedrock AgentCore) - see deployment guide
Development
We welcome your pull requests or issue submissions.
Setup
# Install all dependencies
uv sync --group dev --group test
# Format and lint
uv run ruff format
uv run ruff check
uv run mypy
Testing
# Run unit tests
uv run pytest tests/unit/ -v
# Run integration tests (requires .env.test with real credentials)
uv run pytest tests/integration/ -v
# All tests with coverage
uv run pytest --cov=src/purple_mcp --cov-report=html
Troubleshooting
- Authentication errors: Check your token has Account/Site level permissions (not Global), and your token has not expired
- PowerQuery does not return expected results: Check your token has Account/Site level permissions (not Global)
- Connection failures: Verify your console URL and network access; use
--verbosefor debug logs
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For issues with this MCP server, open an issue.
This project is open source and community-driven. Although it is not an official SentinelOne product, it is maintained by SentinelOne in partnership with the broader open source developer community. See our LICENSE file for further information.
For SentinelOne platform support, use the appropriate support channel.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。