MCP Active Directory Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AD_DC | Yes | Domain Controller hostname or IP. | |
| AD_DOMAIN | No | Domain name (auto-detected if omitted). | |
| AD_PASSWORD | Yes | AD password. | |
| AD_USERNAME | Yes | AD username (UPN or DOMAIN\user format). | |
| AD_ENABLE_RUN_COMMAND | No | Enable ad_run_command tool (disabled by default). | false |
| AD_SKIP_CERT_VALIDATION | No | Skip TLS cert validation (self-signed certs only). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| ad_get_dc_infoB | Get basic info about the Domain Controller (hostname, OS, uptime, services) |
| ad_ldap_queryC | Run an LDAP query against the DC. Returns matching objects with specified attributes. |
| ad_test_kerberos_authC | Test Kerberos authentication by requesting a TGT for a user. Returns success/failure and ticket info. |
| ad_test_ldap_bindC | Test LDAP simple bind authentication. Returns success/failure. |
| ad_get_user_groupsA | Get all groups a user is a direct member of (does not recurse nested groups) |
| ad_list_service_accountsB | List service accounts (gMSAs and accounts with "svc" in name) |
| ad_get_security_eventsB | Get recent Windows Security events related to authentication (4624, 4625, 4768, 4769, 4776) |
| ad_diagnose_winrmA | Diagnose WinRM configuration on target (listeners, firewall rules, network profile, service status). Use to troubleshoot connectivity issues. |
| ad_run_commandA | Run an arbitrary PowerShell command on the target DC. WARNING: DANGEROUS - disabled by default. Set AD_ENABLE_RUN_COMMAND=true to enable. All executions are audit logged. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Most tools have clearly distinct purposes: Kerberos testing, LDAP bind testing, group lookup, service-account listing, security-event retrieval, WinRM diagnosis, command execution, DC info, and generic LDAP query. The main overlap is that ad_ldap_query can be used to retrieve users, groups, or service accounts, making it somewhat interchangeable with ad_get_user_groups and ad_list_service_accounts.
All tool names use the same ad_ prefix followed by a readable verb_noun or verb_resource pattern. The convention is consistent across test, get, list, diagnose, run, and query operations.
Nine tools is a well-scoped set for an AD diagnostics and administration server. Each tool covers a distinct operational area without excessive fragmentation.
The surface covers diagnostics, authentication testing, read-only directory queries, and emergency command execution. However, common AD lifecycle operations such as creating/disabling users, resetting passwords, unlocking accounts, and modifying group membership are missing from the safe tool surface, leaving ad_run_command as the only write path.