-
-
Notifications
You must be signed in to change notification settings - Fork 97
MCP
PowerView.py includes an MCP server that allows AI agents and LLM-based tools to interact with PowerView through a standardized tool interface using Streamable HTTP transport. This enables querying and enumerating Active Directory objects, domain trusts, GPOs, group memberships, security vulnerabilities, and most other PowerView functionality directly from AI-powered applications.
The MCP server is not bundled in the base install. Install the MCP dependencies separately:
pip3 install .[mcp]Or from PyPI:
pip3 install powerview[mcp]powerview domain.local/lowpriv:Password1234@10.10.10.10 --mcpWith optional parameters:
powerview domain.local/lowpriv:Password1234@10.10.10.10 --mcp --mcp-host 0.0.0.0 --mcp-port 8888 --mcp-path /powerview| Parameter | Default | Description |
|---|---|---|
--mcp |
- | Enable the MCP server |
--mcp-host |
127.0.0.1 |
Host address to bind the MCP server |
--mcp-port |
8080 |
Port to listen on |
--mcp-name |
PowerView |
Name of the MCP server instance |
--mcp-path |
/mcp |
URL path for the MCP endpoint |
The MCP server exposes most PowerView functionality through a standardized tool interface, including:
- Querying and enumerating AD objects (users, computers, groups, OUs)
- Domain trust enumeration
- GPO enumeration and analysis
- Group membership resolution
- ADCS (certificate services) enumeration
- Security vulnerability identification
- Session, share, and service enumeration on remote computers
Claude Desktop does not natively support Streamable HTTP transport. Use mcp-proxy to bridge the connection.
Install mcp-proxy:
uv tool install mcp-proxyOr:
pipx install mcp-proxyConfigure Claude Desktop by editing %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"powerview": {
"command": "mcp-proxy",
"args": ["http://127.0.0.1:8080/mcp"]
}
}
}Add the MCP server URL directly in Cursor's MCP settings:
http://127.0.0.1:8080/mcp
When using the MCP server with AI services, be aware that Active Directory data queried through PowerView will be transmitted to the AI service provider. This may include sensitive information such as usernames, group memberships, computer names, GPO configurations, and security-related attributes. Evaluate the sensitivity of your environment before connecting AI agents to a live domain.
- Introduction
- Installation
- Supported Authentication
- Cheatsheets
- Obfuscation
- User Defined Rules
- Public Writeups
LDAP Operations
- Get-DomainUser
- Get-DomainComputer
- Get-DomainGroup
- Get-DomainGroupMember
- Get-DomainOU
- Get-Domain
- Get-DomainController
- Get-DomainDNSRecord
- Get-DomainDNSZone
- Get-DomainObject
- Get-DomainObjectAcl
- Get-DomainObjectOwner
- Get-DomainSCCM
- Get-DomainRBCD
- Get-DomainWDS
- Get-LocalUser
- Set-DomainObject
- Set-DomainObjectDN
- Set-DomainObjectOwner
- Set-DomainUserPassword
- Set-DomainComputerPassword
- Set-DomainRBCD
- Set-DomainDNSRecord
- Add-DomainUser
- Add-DomainComputer
- Add-DomainGroup
- Add-DomainGroupMember
- Add-DomainOU
- Add-DomainGPO
- Add-DomainObjectAcl
- Add-DomainDNSRecord
- Remove-DomainUser
- Remove-DomainComputer
- Remove-DomainObject
- Remove-DomainGroupMember
- Remove-DomainOU
- Remove-DomainObjectAcl
- Remove-DomainDNSRecord
- Disable-DomainDNSRecord
- Restore-DomainObject
- Unlock-ADAccount
- Enable-ADAccount
- Disable-ADAccount
- Login-As
- Clear-Cache
Computer Enumeration
- Get-NetSession
- Get-NetShare
- Get-NetLoggedOn
- Get-RegLoggedOn
- Get-NetComputerInfo
- Get-NetTerminalSession
- Get-NetProcess
- Stop-NetProcess
- Get-EventLog
- Get-EventLogChannel
- Get-EventLogPublisher
- Get-NetService
- Start-NetService
- Stop-NetService
- Add-NetService
- Set-NetService
- Remove-NetService
- Stop-Computer
- Restart-Computer
- Remove-NetTerminalSession
- Remove-NetSession
- Logoff-Session