# samvas-codes/dawshund_mcp [Health: Active]

**Category:** 🔒 Security  
**Repository:** https://github.com/samvas-codes/dawshund_mcp  
**GitHub Stars:** 1  
**Views:** 2  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/samvas-codes-dawshund-mcp

## Description
An MCP server based on dAWShund to enumerate AWS IAM data, analyze effective permissions, and visualize access relationships across users, roles, and resources. Built for cloud security engineers who want fast, easy and effective insights into AWS identity risk.

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/samvas-codes/dawshund_mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Run:

```sh
cd mcp_dawshund_server
```

2. Install:

```sh
./setup.sh
```

3. Start the server:

```sh
python3 server.py
```

4. Start the server:

```sh
PORT=5000 python3 server.py
```

5. Start the server:

```sh
python3 iam_mcp_server.py
```

6. Start the server:

```sh
fastmcp run iam_mcp_server.py:mcp --transport http --port 8000
```

## Documentation

## What samvas-codes/dawshund_mcp MCP server does

The samvas-codes/dawshund_mcp MCP server packages three stages of AWS IAM analysis behind structured tools. It uses sAWSage to enumerate IAM users, roles, groups, and selected resource-based policies, then uses Gerakina to evaluate the resulting policy data with AWS's `simulate-principal-policy` API. A final analysis step counts permission outcomes for each principal.

Supported resource-policy sources include AWS Backup, EFS, KMS, Lambda, S3, SNS, and SQS. The collection stage consolidates metadata and policy statements into `sawsage.json`. Evaluation produces `effective_permissions.json`, with allowed, explicitly denied, and implicitly denied action-resource combinations keyed by principal ARN.

The package also comes from the broader dAWShund workflow, which can load effective permissions into Neo4j and create graph-oriented output files. The included HTTP summary does not require Neo4j.

## How it works

The samvas-codes/dawshund_mcp MCP server exposes three FastMCP tools:

- `collect_iam` requires an AWS CLI profile and accepts an optional list of regions. It runs the collection stage and returns a message with the output-file path.
- `evaluate_iam` requires an AWS CLI profile and invokes AWS permission simulation for the collected principals and policies.
- `analyze_iam` takes no parameters. It reads the effective-permissions file and returns counts of allowed, explicit-deny, and implicit-deny actions for each principal.

The MCP process communicates through JSON-RPC over standard input and output when started directly. FastMCP can also serve the same MCP implementation over HTTP. The repository additionally provides Flask endpoints named `/collect`, `/evaluate`, and `/analyze`, which mirror the three operations for conventional HTTP clients.

## Setup and configuration

The samvas-codes/dawshund_mcp MCP server requires Python 3.x, the AWS CLI, and an AWS account with permissions to call IAM enumeration APIs and `simulate-principal-policy`. FastMCP requires Python 3.10 or newer. Configure the AWS CLI with a named profile before invoking the tools.

Run the repository's `setup.sh` script to install the listed Python dependencies and clone the upstream dAWShund code. The setup installs packages including `boto3`, `neo4j`, `flask`, `flask_cors`, and `fastmcp`. Start the MCP process with `python3 iam_mcp_server.py`; it does not bind a TCP port in stdio mode.

For a remote MCP connector, FastMCP can launch the module with HTTP transport and a selected port. The separate Flask service starts with `python3 server.py` and listens on port 8000 by default. Set `PORT` to change that Flask port. Claude Desktop can launch the stdio process by referencing the Python executable and the absolute path to `iam_mcp_server.py` in its MCP configuration.

## Tools and capabilities

Use `collect_iam` to inspect principals and supported resource policies across all known supported-service regions or a supplied region list. Use `evaluate_iam` after collection to obtain simulated permission results. Use `analyze_iam` for a compact per-principal view that can help surface broad access or unexpected implicit denies.

The HTTP endpoints return JSON. Collection and evaluation can produce large files, while the MCP tools return a short status message and the location of the generated output rather than embedding the full documents in the response.

## Limitations and notes

AWS credentials and suitable IAM permissions must already be configured through the AWS CLI profile supplied to the tools. Permission evaluation may take time because it calls the AWS simulation API for combinations of principals, actions, and resources.

The collection stage covers the resource types supported by the wrapped dAWShund tooling, not every AWS service. Neo4j is optional for the included HTTP summary but required if you use the original graph-building workflow directly. That workflow generates `permissions4j.json` and `dawshund.json` for Neo4j or BloodHound-oriented use.

_Full upstream README: https://allmcps.com/mcp/samvas-codes-dawshund-mcp/readme_

