
Koppla Active Directory
STDIOMCP server for managing Active Directory users, groups, and computers with natural language
MCP server for managing Active Directory users, groups, and computers with natural language
Koppla is a model-context-protocol server for Active Directory that enables you to manage users, groups, and computer objects using natural language.
For more information, visit https://lazyadmin.nl/koppla
Koppla allows you to execute complex Active Directory queries and updates effortlessly. Examples:
Koppla requires Python and can be installed using:
pip install koppla
Koppla includes a secure configuration manager that handles encryption of sensitive credentials:
koppla-config configure
This interactive tool will:
You can also:
koppla-config show
koppla-config test
Koppla uses environment variables for configuration:
Name | Description |
---|---|
AD_SERVER | The address of the Active Directory server. |
AD_USER | Username for authentication. |
AD_PASSWORD | Password for authentication. |
BASE_DN | Base DN for LDAP queries. |
AD_WRITE_ENABLED | Enable or disable write operations (true/false). |
To manually configure Koppla with the Claude Desktop app, add the following configuration to the "mcpServers" section of your claude_desktop_config.json:
{ "mcpServers": { "Koppla-Active-Directory": { "command": "python", "args": ["-m", "koppla.server"], "env": { "AD_SERVER": "ldap://<domain-controller-name>:389", "AD_USER": "<domain\\username>", "AD_PASSWORD": "<password>", "BASE_DN": "DC=lazyadmin,DC=nl", "AD_WRITE_ENABLED": "false" } } } }
Important: Koppla transmits Active Directory data to external AI models for processing. This may have security and compliance implications, particularly for organizations subject to GDPR or similar regulations. No AD data is stored by Koppla itself, but be aware that AI agents may retain conversation history according to their own policies. Ensure usage complies with your organization's data handling requirements and consider limiting the scope of queryable data through careful configuration.
ENCRYPTED:xxxx...
in the configuration fileclaude_desktop_config.json.backup_YYYYMMDD_HHMMSS
AD_WRITE_ENABLED
to "true"Koppla supports the following write operations when AD_WRITE_ENABLED
is set to "true":
Update User Attributes
Add User to Group
Remove User from Group
All write operations require explicit confirmation before execution.