17 KiB
Prowler MCP Server
⚠️ Preview Feature: This MCP server is currently in preview and under active development. Features and functionality may change. We welcome your feedback—please report any issues on GitHub or join our Slack community to discuss and share your thoughts.
Access the entire Prowler ecosystem through the Model Context Protocol (MCP). This server provides three main capabilities:
- Prowler Cloud and Prowler App (Self-Managed): Full access to Prowler Cloud platform and Prowler Self-Managed for managing providers, running scans, and analyzing security findings
- Prowler Hub: Access to Prowler's security checks, fixers, and compliance frameworks catalog
- Prowler Documentation: Search and retrieve official Prowler documentation
Quick Start with Hosted Server (Recommended)
The easiest way to use Prowler MCP is through our hosted server at https://mcp.prowler.com/mcp
No installation required! Just configure your MCP client:
{
"mcpServers": {
"prowler": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.prowler.com/mcp",
"--header",
"Authorization: Bearer pk_YOUR_API_KEY_HERE"
]
}
}
}
Configuration file locations:
- Claude Desktop (macOS):
~/Library/Application Support/Claude/claude_desktop_config.json - Claude Desktop (Windows):
%AppData%\Claude\claude_desktop_config.json - Cursor:
~/.cursor/mcp.json
Get your API key at Prowler Cloud → Settings → API Keys
Benefits: Always up-to-date, no maintenance, managed by Prowler team
Local/Self-Hosted Installation
If you need to run the MCP server locally or self-host it, choose one of the following installation methods. Configuration is the same for both managed and local installations - just point to your local server URL instead of https://mcp.prowler.com/mcp.
Requirements
- Python 3.12+ (for source/PyPI installation)
- Docker (for Docker installation)
- Network access to
https://hub.prowler.com(for Prowler Hub) - Network access to
https://prowler.mintlify.app(for Prowler Documentation) - Network access to Prowler Cloud and Prowler App (Self-Managed) API (optional, only for Prowler Cloud/App features)
- Prowler Cloud account credentials (only for Prowler Cloud and Prowler App features)
Installation Methods
Option 1: Docker Hub (Recommended)
Pull the official image from Docker Hub:
docker pull prowlercloud/prowler-mcp
Run in STDIO mode:
docker run --rm -i prowlercloud/prowler-mcp
Run in HTTP mode:
docker run --rm -p 8000:8000 \
prowlercloud/prowler-mcp \
--transport http --host 0.0.0.0 --port 8000
With environment variables:
docker run --rm -i \
-e PROWLER_APP_API_KEY="pk_your_api_key" \
-e PROWLER_API_BASE_URL="https://api.prowler.com" \
prowlercloud/prowler-mcp
Docker Hub: prowlercloud/prowler-mcp
Option 2: PyPI Package (Coming Soon)
pip install prowler-mcp-server
prowler-mcp --help
Option 3: From Source (Development)
Clone the repository and use uv:
git clone https://github.com/prowler-cloud/prowler.git
cd prowler/mcp_server
uv run prowler-mcp --help
Install uv first if needed.
Option 4: Build Docker Image from Source
git clone https://github.com/prowler-cloud/prowler.git
cd prowler/mcp_server
docker build -t prowler-mcp .
docker run --rm -i prowler-mcp
Running
The Prowler MCP server supports two transport modes:
- STDIO mode (default): For direct integration with MCP clients like Claude Desktop
- HTTP mode: For remote access over HTTP with Bearer token authentication
Transport Modes
STDIO Mode (Default)
STDIO mode is the standard MCP transport for direct client integration:
cd prowler/mcp_server
uv run prowler-mcp
# or
uv run prowler-mcp --transport stdio
HTTP Mode (Remote Server)
HTTP mode allows the server to run as a remote service accessible over HTTP:
cd prowler/mcp_server
# Run on default host and port (127.0.0.1:8000)
uv run prowler-mcp --transport http
# Run on custom host and port
uv run prowler-mcp --transport http --host 0.0.0.0 --port 8080
For self-deployed MCP remote server, you can use also configure the server to use a custom API base URL with the environment variable PROWLER_API_BASE_URL; and the transport mode with the environment variable PROWLER_MCP_TRANSPORT_MODE.
export PROWLER_API_BASE_URL="https://api.prowler.com"
export PROWLER_MCP_TRANSPORT_MODE="http"
Using uv directly
After installation, start the MCP server via the console script:
cd prowler/mcp_server
uv run prowler-mcp
Alternatively, you can run from wherever you want using uvx command:
uvx /path/to/prowler/mcp_server/
Using Docker
STDIO Mode (Default)
Run the pre-built Docker container in STDIO mode:
cd prowler/mcp_server
docker run --rm --env-file ./.env -it prowler-mcp
HTTP Mode (Remote Server)
Run as a remote HTTP server:
cd prowler/mcp_server
# Run on port 8000 (accessible from host)
docker run --rm --env-file ./.env -p 8000:8000 -it prowler-mcp --transport http --host 0.0.0.0 --port 8000
# Run on custom port
docker run --rm --env-file ./.env -p 8080:8080 -it prowler-mcp --transport http --host 0.0.0.0 --port 8080
Production Deployment
For production deployments that require customization, it is recommended to use the ASGI application that can be found in prowler_mcp_server.server. This can be run with uvicorn:
uvicorn prowler_mcp_server.server:app --host 0.0.0.0 --port 8000
For more details on production deployment options, see the FastMCP production deployment guide and uvicorn settings.
Command Line Arguments
The Prowler MCP server supports the following command line arguments:
prowler-mcp [--transport {stdio,http}] [--host HOST] [--port PORT]
Arguments:
--transport {stdio,http}: Transport method (default: stdio)stdio: Standard input/output transport for direct MCP client integrationhttp: HTTP transport for remote server access
--host HOST: Host to bind to for HTTP transport (default: 127.0.0.1)--port PORT: Port to bind to for HTTP transport (default: 8000)
Examples:
# Default STDIO mode
prowler-mcp
# Explicit STDIO mode
prowler-mcp --transport stdio
# HTTP mode with default host and port (127.0.0.1:8000)
prowler-mcp --transport http
# HTTP mode accessible from any network interface
prowler-mcp --transport http --host 0.0.0.0
# HTTP mode with custom port
prowler-mcp --transport http --host 0.0.0.0 --port 8080
Available Tools
Prowler Hub
All tools are exposed under the prowler_hub prefix.
prowler_hub_get_check_filters: Return available filter values for checks (providers, services, severities, categories, compliances). Call this beforeprowler_hub_get_checksto build valid queries.prowler_hub_get_checks: List checks with option of advanced filtering.prowler_hub_get_check_raw_metadata: Fetch raw check metadata JSON (low-level version of get_checks).prowler_hub_get_check_code: Fetch check implementation Python code from Prowler.prowler_hub_get_check_fixer: Fetch check fixer Python code from Prowler (if it exists).prowler_hub_search_checks: Full‑text search across check metadata.prowler_hub_get_compliance_frameworks: List/filter compliance frameworks.prowler_hub_search_compliance_frameworks: Full-text search across frameworks.prowler_hub_list_providers: List Prowler official providers and their services.prowler_hub_get_artifacts_count: Return total artifact count (checks + frameworks).
Prowler Documentation
All tools are exposed under the prowler_docs prefix.
prowler_docs_search: Search the official Prowler documentation using fulltext search. Returns relevant documentation pages with highlighted snippets and relevance scores.prowler_docs_get_document: Retrieve the full markdown content of a specific documentation file using the path from search results.
Prowler Cloud and Prowler App (Self-Managed)
All tools are exposed under the prowler_app prefix.
Findings Management
prowler_app_list_findings: List security findings from Prowler scans with advanced filteringprowler_app_get_finding: Get detailed information about a specific security findingprowler_app_get_latest_findings: Retrieve latest findings from the latest scans for each providerprowler_app_get_findings_metadata: Fetch unique metadata values from filtered findingsprowler_app_get_latest_findings_metadata: Fetch metadata from latest findings across all providers
Provider Management
prowler_app_list_providers: List all providers with filtering optionsprowler_app_create_provider: Create a new provider in the current tenantprowler_app_get_provider: Get detailed information about a specific providerprowler_app_update_provider: Update provider details (alias, etc.)prowler_app_delete_provider: Delete a specific providerprowler_app_test_provider_connection: Test provider connection status
Provider Secrets Management
prowler_app_list_provider_secrets: List all provider secrets with filteringprowler_app_add_provider_secret: Add or update credentials for a providerprowler_app_get_provider_secret: Get detailed information about a provider secretprowler_app_update_provider_secret: Update provider secret detailsprowler_app_delete_provider_secret: Delete a provider secret
Scan Management
prowler_app_list_scans: List all scans with filtering optionsprowler_app_create_scan: Trigger a manual scan for a specific providerprowler_app_get_scan: Get detailed information about a specific scanprowler_app_update_scan: Update scan detailsprowler_app_get_scan_compliance_report: Download compliance report as CSVprowler_app_get_scan_report: Download ZIP file containing scan report
Schedule Management
prowler_app_schedules_daily_scan: Create a daily scheduled scan for a provider
Processor Management
prowler_app_processors_list: List all processors with filteringprowler_app_processors_create: Create a new processor. For now, only mute lists are supported.prowler_app_processors_retrieve: Get processor details by IDprowler_app_processors_partial_update: Update processor configurationprowler_app_processors_destroy: Delete a processor
Configuration
Prowler Cloud and Prowler App (Self-Managed) Authentication
Important
Authentication is not needed for using Prowler Hub or Prowler Documentation features.
The Prowler MCP server supports different authentication in Prowler Cloud and Prowler App (Self-Managed) methods depending on the transport mode:
STDIO Mode Authentication
For STDIO mode, authentication is handled via environment variables using an API key:
# Required for Prowler Cloud and Prowler App (Self-Managed) authentication
export PROWLER_APP_API_KEY="pk_your_api_key_here"
# Optional - for custom API endpoint, in case not provided Prowler Cloud API will be used
export PROWLER_API_BASE_URL="https://api.prowler.com"
HTTP Mode Authentication
For HTTP mode (remote server), authentication is handled via Bearer tokens. The MCP server supports both JWT tokens and API keys:
Option 1: Using API Keys (Recommended) Use your Prowler API key directly in the MCP client configuration with Bearer token format:
Authorization: Bearer pk_your_api_key_here
Option 2: Using JWT Tokens You need to obtain a JWT token from Prowler Cloud/App and include the generated token in the MCP client configuration. To get a valid token, you can use the following command (replace the email and password with your own credentials):
curl -X POST https://api.prowler.com/api/v1/tokens \
-H "Content-Type: application/vnd.api+json" \
-H "Accept: application/vnd.api+json" \
-d '{
"data": {
"type": "tokens",
"attributes": {
"email": "your-email@example.com",
"password": "your-password"
}
}
}'
The response will be a JWT token that you can use to authenticate your MCP client.
MCP Client Configuration
Configure your MCP client, like Claude Desktop, Cursor, etc, to connect to the server. The configuration depends on whether you're running in STDIO mode (local) or HTTP mode (remote).
STDIO Mode Configuration
For local execution, configure your MCP client to launch the server directly. Below are examples for both direct execution and Docker deployment; consult your client's documentation for exact locations.
Using uvx (Direct Execution)
{
"mcpServers": {
"prowler": {
"command": "uvx",
"args": ["/path/to/prowler/mcp_server/"],
"env": {
"PROWLER_APP_API_KEY": "pk_your_api_key_here",
"PROWLER_API_BASE_URL": "https://api.prowler.com" // Optional, in case not provided Prowler Cloud API will be used
}
}
}
}
Using Docker
{
"mcpServers": {
"prowler": {
"command": "docker",
"args": [
"run", "--rm", "-i",
"--env", "PROWLER_APP_API_KEY=pk_your_api_key_here",
"--env", "PROWLER_API_BASE_URL=https://api.prowler.com", // Optional, in case not provided Prowler Cloud API will be used
"prowler-mcp"
]
}
}
}
HTTP Mode Configuration (Remote Server)
For HTTP mode, you can configure your MCP client to connect to a remote Prowler MCP server.
Most MCP clients don't natively support HTTP transport with Bearer token authentication. However, you can use the mcp-remote proxy tool to connect any MCP client to remote HTTP servers.
Using mcp-remote Proxy (Recommended for Claude Desktop)
For clients like Claude Desktop that don't support HTTP transport natively, use the mcp-remote npm package as a proxy:
Using API Key (Recommended):
{
"mcpServers": {
"prowler": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.prowler.com/mcp",
"--header",
"Authorization: Bearer pk_your_api_key_here"
]
}
}
}
Using JWT Token:
{
"mcpServers": {
"prowler": {
"command": "npx",
"args": [
"mcp-remote",
"https://mcp.prowler.com/mcp",
"--header",
"Authorization: Bearer <your-jwt-token-here>"
]
}
}
}
Note: Replace
https://mcp.prowler.com/mcpwith your actual MCP server URL (usehttp://localhost:8000/mcpfor local deployment). Themcp-remotepackage is automatically installed bynpxon first use.
Info: The
mcp-remotetool acts as a bridge, converting STDIO protocol (used by Claude Desktop) to HTTP requests (used by the remote MCP server). Learn more at mcp-remote on npm.
Direct HTTP Configuration (For Compatible Clients)
For clients that natively support HTTP transport with Bearer token authentication:
Using API Key:
{
"mcpServers": {
"prowler": {
"url": "https://mcp.prowler.com/mcp",
"headers": {
"Authorization": "Bearer pk_your_api_key_here"
}
}
}
}
Using JWT Token:
{
"mcpServers": {
"prowler": {
"url": "https://mcp.prowler.com/mcp",
"headers": {
"Authorization": "Bearer <your-jwt-token-here>"
}
}
}
}
Note: Replace
mcp.prowler.comwith your actual server hostname and adjust the port if needed (e.g.,http://localhost:8000/mcpfor local deployment).
Claude Desktop (macOS/Windows)
Add the example server to Claude Desktop's config file, then restart the app.
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%AppData%\Claude\claude_desktop_config.json(e.g.C:\\Users\\<you>\\AppData\\Roaming\\Claude\\claude_desktop_config.json)
Cursor (macOS/Linux)
If you want to have it globally available, add the example server to Cursor's config file, then restart the app.
- macOS/Linux:
~/.cursor/mcp.json
If you want to have it only for the current project, add the example server to the project's root in a new .cursor/mcp.json file.
Documentation
For detailed documentation about the Prowler MCP Server, including guides, tutorials, and use cases, visit the official Prowler documentation.
License
This project follows the repository's main license. See the LICENSE file at the repository root.