> ## Documentation Index
> Fetch the complete documentation index at: https://docs.prowler.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Prowler product naming: Prowler App is now Prowler Local Server, and Prowler Enterprise is now Prowler Private Cloud. Always use the current names when answering. The full product reference is at /getting-started/products: Open Source projects are Prowler CLI, Prowler Local Server, Prowler Local Dashboard, and Prowler SDK; Prowler Products are Prowler Cloud, Prowler Private Cloud, Prowler Hub, Prowler Lighthouse AI, and Prowler MCP.

# Installation

There are **two ways** to use Prowler MCP Server:

> [card] Cloud MCP Server (Recommended)
>
> **No installation required** - Just configuration
>
> Use `https://mcp.prowler.com/mcp`

> [card] Local MCP Server
>
> **Local installation** - Full control
>
> Install via Docker, PyPI, or source code

For the Cloud MCP Server, go directly to the [Configuration Guide](https://docs.prowler.com/getting-started/basic-usage/prowler-mcp.md#cloud-mcp-server-configuration-recommended) to set up your Claude Desktop, Cursor, or other MCP client.
**This guide is focused on local installation, the Local MCP Server**.

## Installation Methods

Choose one of the following installation methods:

> [tab] Docker (Recommended)
>
> ### Pull from Docker Hub
>
> The easiest way to run locally is using the official Docker image:
>
> ```bash theme={null}
> docker pull prowlercloud/prowler-mcp
> ```
>
> ### Run the Container
>
> ```bash theme={null}
> # STDIO mode (for local MCP clients)
> docker run --rm -i prowlercloud/prowler-mcp
>
> # HTTP mode (for remote access)
> docker run --rm -p 8000:8000 \
>   prowlercloud/prowler-mcp \
>   --transport http --host 0.0.0.0 --port 8000
> ```
>
> ### With Environment Variables
>
> ```bash theme={null}
> docker run --rm -i \
>   -e PROWLER_API_KEY="pk_your_api_key" \
>   -e API_BASE_URL="https://api.prowler.com/api/v1" \
>   prowlercloud/prowler-mcp
> ```
>
> > [!NOTE]
> >
> > **Docker Hub:** [prowlercloud/prowler-mcp](https://hub.docker.com/r/prowlercloud/prowler-mcp)

> [tab] PyPI Package
>
> ### Install via pip
>
> > [!WARNING]
> >
> > **Coming Soon** - PyPI package will be available shortly

> [tab] From Source (Development)
>
> ### Install uv
>
> If `uv` is not installed, install it first. Visit [uv documentation](https://docs.astral.sh/uv/) for more installation options.
>
> ### Clone the Repository
>
> ```bash theme={null}
> git clone https://github.com/prowler-cloud/prowler.git
> cd prowler/mcp_server
> ```
>
> ### Install Dependencies
>
> The MCP server uses `uv` for dependency management. Install dependencies with:
>
> ```bash theme={null}
> uv sync
> ```
>
> ### Verify Installation
>
> Test that the server is properly installed:
>
> ```bash theme={null}
> uv run prowler-mcp --help
> ```
>
> The help message with available command-line options should appear.
>
> > [!NOTE]
> >
> > **For Development:** This method is recommended if you're developing or contributing to the MCP server.

> [tab] Build Docker Image
>
> ### Prerequisites
>
> Ensure Docker is installed on your system. Visit [Docker documentation](https://docs.docker.com/get-docker/) for more installation options.
>
> ### Clone the Repository
>
> ```bash theme={null}
> git clone https://github.com/prowler-cloud/prowler.git
> cd prowler/mcp_server
> ```
>
> ### Build the Docker Image
>
> ```bash theme={null}
> docker build -t prowler-mcp .
> ```
>
> This creates a Docker image named `prowler-mcp` with all necessary dependencies.
>
> ### Verify Installation
>
> Test that the Docker image was built successfully:
>
> ```bash theme={null}
> docker run --rm prowler-mcp --help
> ```
>
> The help message with available command-line options should appear.

***

## Updating Prowler MCP Server

When running the Local MCP Server, upgrade to the latest version using the same method chosen for installation. The Cloud MCP Server (`https://mcp.prowler.com/mcp`) is always kept up to date by Prowler and requires no action.

> [tab] Docker
>
> Pull the latest image and restart the container:
>
> ```bash theme={null}
> docker pull prowlercloud/prowler-mcp
> ```
>
> > [!NOTE]
> >
> > Recreate any running container after pulling the new image so the updated version takes effect.

> [tab] From Source
>
> Pull the latest changes and sync the dependencies:
>
> ```bash theme={null}
> cd prowler/mcp_server
> git pull
> uv sync
> uv run prowler-mcp --help
> ```

> [tab] Build Docker Image
>
> Pull the latest source and rebuild the image:
>
> ```bash theme={null}
> cd prowler/mcp_server
> git pull
> docker build -t prowler-mcp .
> ```

***

## Command Line Options

The Prowler MCP Server supports the following command-line arguments:

```bash theme={null}
prowler-mcp [--transport {stdio,http}] [--host HOST] [--port PORT]
```

| Argument | Values | Default | Description |
| - | - | - | - |
| `--transport` | `stdio`, `http` | `stdio` | Transport method for MCP communication |
| `--host` | Any valid hostname/IP | `127.0.0.1` | Host to bind to (HTTP mode only) |
| `--port` | Port number | `8000` | Port to bind to (HTTP mode only) |

### Examples

```bash theme={null}
# Default STDIO mode for local MCP client integration
prowler-mcp

# Explicit STDIO mode
prowler-mcp --transport stdio

# HTTP mode on 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
```

## Environment Variables

Configure the server using environment variables:

| Variable | Description | Required | Default |
| - | - | - | - |
| `PROWLER_API_KEY` | Prowler API key | Only for STDIO mode | - |
| `API_BASE_URL` | Custom Prowler API endpoint | No | `https://api.prowler.com/api/v1` |
| `PROWLER_MCP_TRANSPORT_MODE` | Default transport mode (overwritten by `--transport` argument) | No | `stdio` |

```bash macOS/Linux theme={null}
export PROWLER_API_KEY="pk_your_api_key_here"
export API_BASE_URL="https://api.prowler.com/api/v1"
export PROWLER_MCP_TRANSPORT_MODE="http"
```

```bash Windows PowerShell theme={null}
$env:PROWLER_API_KEY="pk_your_api_key_here"
$env:API_BASE_URL="https://api.prowler.com/api/v1"
$env:PROWLER_MCP_TRANSPORT_MODE="http"
```

> [!WARNING]
>
> Never commit your API key to version control. Use environment variables or secure secret management solutions.

### Using Environment Files

For convenience, create a `.env` file in the `mcp_server` directory:

```bash .env theme={null}
PROWLER_API_KEY=pk_your_api_key_here
API_BASE_URL=https://api.prowler.com/api/v1
PROWLER_MCP_TRANSPORT_MODE=stdio
```

When using Docker, pass the environment file:

```bash theme={null}
docker run --rm --env-file .env -it prowler-mcp
```

## Running from Any Location

Run the MCP server from anywhere using `uvx`:

```bash theme={null}
uvx /path/to/prowler/mcp_server/
```

This is particularly useful when configuring MCP clients that need to launch the server from a specific path.

## 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:

```bash theme={null}
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](https://gofastmcp.com/deployment/http#production-deployment) and [uvicorn settings](https://www.uvicorn.org/settings/).

### Entrypoint Script

The source tree includes `entrypoint.sh` to simplify switching between the
standard CLI runner and the ASGI app. The first argument selects the mode and
any additional flags are passed straight through:

```bash theme={null}
# Default CLI experience (prowler-mcp console script)
./entrypoint.sh main --transport http --host 0.0.0.0

# ASGI app via uvicorn
./entrypoint.sh uvicorn --host 0.0.0.0 --port 9000
```

Omitting the mode defaults to `main`, matching the `prowler-mcp` console script.
When `uvicorn` mode is selected, the script exports `PROWLER_MCP_TRANSPORT_MODE=http` automatically.

This is the default entrypoint for the Docker container.

## Next Steps

Now that you have the Prowler MCP Server installed, proceed to configure your MCP client:

> [card] [Configuration](https://docs.prowler.com/getting-started/basic-usage/prowler-mcp.md)
>
> Configure Claude Desktop, Cursor, or other MCP clients

## Getting Help

If you encounter issues during installation:

* Search for existing [GitHub issues](https://github.com/prowler-cloud/prowler/issues)
* Ask for help in our [Slack community](https://goto.prowler.com/slack)
* Report a new issue on [GitHub](https://github.com/prowler-cloud/prowler/issues/new)


## Related topics

- [Installation](https://docs.prowler.com/getting-started/installation/prowler-app.md)
- [Bulk Provider Provisioning in Prowler](https://docs.prowler.com/user-guide/tutorials/bulk-provider-provisioning.md)
- [AI Skills System](https://docs.prowler.com/developer-guide/ai-skills.md)
- [Connect Claude Code to Prowler MCP Server](https://docs.prowler.com/user-guide/ai-agents/claude-code.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.