Complete Active Directory MCP server with Docker deployment and 43 tools.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"ActiveDirectoryMCP": {
"transport": {
"url": "http://localhost:8813/activedirectory-mcp",
"type": "http"
},
"description": "Active Directory Management with HTTP Transport"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A comprehensive Python-based Model Context Protocol (MCP) server for managing Active Directory environments through LDAP. This project provides powerful tools for user management, group operations, computer account management, organizational unit administration, and security auditing.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in security / devops
MCP server for using the GitLab API
An evil MCP server used for redteam testing
Proof primitive for AI agents on MultiversX. Anchor file hashes on-chain as verifiable proofs.
Enhanced MCP server for GitLab: group projects listing and activity tracking
MCP Security Weekly
Get CVE alerts and security updates for ActiveDirectoryMCP and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
A comprehensive Python-based Model Context Protocol (MCP) server for managing Active Directory environments through LDAP. This project provides powerful tools for user management, group operations, computer account management, organizational unit administration, and security auditing.
Clone and set up environment:
# Clone repository
git clone https://github.com/alpadalar/ActiveDirectoryMCP.git
cd ActiveDirectoryMCP
# Create and activate virtual environment
uv venv
source .venv/bin/activate # Linux/macOS
# OR
.\.venv\Scripts\Activate.ps1 # Windows
Install dependencies:
# Install with development dependencies
uv pip install -e ".[dev]"
Create configuration:
# Create config directory and copy template
mkdir -p ad-config
cp ad-config/config.example.json ad-config/config.json
Configure Active Directory connection:
{
"active_directory": {
"server": "ldap://dc.example.com:389",
"domain": "example.com",
"base_dn": "DC=example,DC=com",
"bind_dn": "CN=service-account,OU=Service Accounts,DC=example,DC=com",
"password": "your-service-account-password"
},
"organizational_units": {
"users_ou": "OU=Users,DC=example,DC=com",
"groups_ou": "OU=Groups,DC=example,DC=com",
"computers_ou": "OU=Computers,DC=example,DC=com",
"service_accounts_ou": "OU=Service Accounts,DC=example,DC=com"
}
}
# Test configuration
python -c "import active_directory_mcp; print('Installation OK')"
# Run tests
pytest
# Test LDAP connection
AD_MCP_CONFIG="ad-config/ad-config.json" python -m active_directory_mcp.server