RAD Security MCP Server (hereinafter referred to as this server) is a Model Context Protocol (MCP) server designed for RAD Security, providing AI-driven security insights for Kubernetes and cloud environments.
Purpose This server is used to allow MCP-enabled AI clients to connect to the RAD Security platform, thereby querying security-related data such as clusters, containers, images, vulnerabilities, runtime behavior, audit events, security findings, inbox, automation, knowledge base, dashboards, and integrations, and to perform some administrative operations on demand.
Connection method (hosted, recommended) RAD Security runs this MCP server for users; most users do not need to install or host it themselves. Simply point the MCP client to the hosted endpoint and authenticate using RAD Security credentials.
- Endpoint:https://api.rad.security/mcp/(注意末尾斜杠)
- Transport: Streamable HTTP
- Authentication: Send credentials in the Authorization header: Authorization: Bearer <access_key_id>:<secret_key>:<account_id>. Here <access_key_id> and <secret_key> are RAD Security API access keys (which can be created in the RAD Security console); <account_id> is the account ID. The server authenticates to the RAD Security API on every request and does not store credentials server-side.
- The short-lived form Bearer ory_st_<session_token>:<account_id> can also be used, but session tokens expire; for long-term use cases (e.g., Slack / Claude Tag), access keys are recommended.
Configuration points for various MCP clients
- OpenAI Codex CLI: ~/.codex/config.toml; you can also use the CLI and put the key in an environment variable (export RAD_MCP_TOKEN=<access_key_id>:<secret_key>:<account_id>).
- Cursor: .cursor/mcp.json.
- VS Code (GitHub Copilot): .vscode/mcp.json -- note that the outer key is servers, not mcpServers.
- Gemini: ~/.gemini/settings.json -- note that the URL field is httpUrl (not url).
- Cline: cline_mcp_settings.json -- note that type must be exactly streamableHttp (camel case).
- Windsurf: ~/.codeium/windsurf/mcp_config.json -- note that the URL field is serverUrl. Most MCP clients accept a remote Streamable HTTP server with a URL and Authorization header; only the field names differ. In all cases, keep the trailing slash at the end of the URL.
- Claude.ai / Claude Desktop / Claude Tag (Slack): These interfaces add remote MCP servers as connectors, using their own credential settings rather than raw request headers. Set the https://api.rad.security/mcp/ Add as a custom connector, then provide bearer credentials in the connector settings. Claude Tag (Slack): mount the server as a plugin whose .mcp.json points to the endpoint, and add bearer credentials in the Credentials tab of the Access bundle. Claude.ai / Desktop: add under Settings → Connectors (custom connector).
Testing You can test with MCP Inspector or curl.
Tool scoping By default, a connection gets all toolkits. To let an agent see a smaller set—reducing context/token overhead and following least privilege—add scoping headers in addition to that connection's Authorization. The subset is enforced: out-of-scope tools are hidden in tools/list and rejected when called. Toolkits include: containers, clusters, audit, images, kubeobject, runtime, findings, inbox, workflows, knowledge_base, radql, dashboards, integrations. All toolkits are enabled by default—narrow them with the headers above, and use X-Rad-Readonly when you want to exclude all write tools. Example—a read-only findings/images agent (any client that supports headers; Cursor as an example). In Claude Code, additionally pass --header. All tools require authentication and an account in RAD Security. The hosted endpoint exposes all toolkits listed below by default; you can narrow the client scope with X-Rad-Toolkits / X-Rad-Exclude-Toolkits, or remove all write tools with X-Rad-Readonly: true.
Main capabilities (tool sets)
- Account inventory: list clusters and their details.
- Container inventory: list containers and their details.
- Security findings: list and analyze security findings; update the status of security findings.
- Runtime security: get the process tree of a running container; get the runtime baseline of a running container; analyze the process behavior of a running container.
- Audit: list who shelled into a Pod.
- Images and vulnerabilities: Get SBOMs; list images and their vulnerabilities; get the images with the most vulnerabilities; ignore/unignore CVEs and list active CVE triage decisions.
- Kubernetes objects: Get details of a specific Kubernetes resource; list Kubernetes resources.
- Inbox: List inbox entries and their details; mark inbox entries as false positives.
- Automation (workflows): List automations, runs, and schedules; get details of automations and runs; run automations; create and update automations and add cron schedules. "Automation" is the product name users see; "workflow" is the underlying Windmill object used in the API and tool names. The two are the same thing.
- Knowledge base: Search the knowledge base; list collections and documents; run structured queries against documents.
- Dashboards: List dashboards and get their details; list and get dashboard and widget templates; create dashboards and update them in place (fields not provided remain unchanged, so small changes do not require resending the entire dashboard).
- Integrations: List external integrations.
- RadQL (advanced queries): List the data types available for querying (containers, findings, kubernetes_resources, etc.); get the schema/metadata for a specific data type; list possible values for filter fields; execute RadQL queries with filtering, search, and aggregation; build queries programmatically from structured conditions; execute multiple queries in parallel.
Self-hosted If you prefer to run the server yourself—for example, in an air-gapped environment, due to data residency requirements, or because you do not want to go through a hosted gateway—it is published to npm and available as a container image. Prerequisite: Node.js 20.x or later. Provide RAD Security credentials via environment variables. You can use npx (stdio, for example Claude Desktop) or Docker (Streamable HTTP). Toolkit filtering (self-hosted): INCLUDE_TOOLKITS: a comma-separated list of toolkits to include (enable only these); EXCLUDE_TOOLKITS: a comma-separated list of toolkits to exclude (enable all others); if INCLUDE_TOOLKITS is set, EXCLUDE_TOOLKITS is ignored. Available toolkits: containers, clusters, audit, images, kubeobject, runtime, findings, inbox, workflows, knowledge_base, radql, dashboards, integrations. All enabled by default. Multi-tenant (authenticated per request): MCP_AUTH_MODE controls how Streamable HTTP deployments authenticate inbound requests—the hosted endpoint uses this mechanism.
- MCP_AUTH_MODE=env (default): each session uses RAD_SECURITY_* environment credentials. Single-tenant, and unauthenticated at the HTTP layer, so it must not be exposed on untrusted networks.
- MCP_AUTH_MODE=header: each request must carry credentials in the Authorization header (i.e., the Bearer <access_key_id>:<secret_key>:<account_id> form described above); a missing or malformed header returns 401. Only TRANSPORT_TYPE=streamable is supported. RAD_SECURITY_API_URL is taken from the server configuration, not from the caller. The SSE transport (TRANSPORT_TYPE=sse) is deprecated; use Streamable HTTP instead, and use env credentials only.
Use cases
- Query Kubernetes and cloud security data in MCP-capable AI clients.
- Perform read-only or read-write operations on clusters, containers, images, vulnerabilities, runtime, audit, findings, inbox, automation, knowledge base, dashboards, and integrations.
- Achieve per-client least privilege via toolboxes and read-only headers.
- Self-hosted deployment in air-gapped environments or under data residency requirements.
Limitations and considerations
- All tools require authentication and a RAD Security account.
- The hosted endpoint exposes all toolboxes by default and must be proactively narrowed.
- Streamable HTTP deployments with MCP_AUTH_MODE=env are unauthenticated at the HTTP layer and must not be exposed on untrusted networks.
- The SSE transport is deprecated.
- Session tokens expire; access keys are recommended for long-term use.
- License: MIT License - see the LICENSE file for details.
Additional information The server repository is rad-security/mcp-server on GitHub, welcome contributions.