
Active Directory / LDAP
Read-only directory lookups and security audits over Active Directory and LDAP: users, groups, OUs, computers, and replication.
- GitHub stars
- 1
- tools
- 66
- auth
- Secret needed
- transport
- STDIO
- env vars
- 6
- last updated
- Nov 19, 2026
What it does
- Finds with
find_users,find_groups,find_computers, andfind_oususing*wildcards, and fetches single records withget_userandget_group - Audits risk with
password_not_required,kerberos_preauth_not_required,find_service_accounts, andfind_shadow_credentials, plusfirst_lookfor a one-call domain overview - Runs raw read-only LDAP through
search_ldap; optional group-membership write tools stay off unlessMCPAD_ALLOW_WRITEis set - Designed for IT administrators doing hygiene reviews, privileged-account audits, and security assessments of a domain
Tools
66 toolsPublic tool metadata for what this MCP can expose to an agent.
find_usersFind users by name/surname/mail/sam/department/city/state/country (ANDed, `*` wildcards)
Find users by name/surname/mail/sam/department/city/state/country (ANDed, `*` wildcards)
No parameter schema in public metadata yet.
get_userGet a single user (exact match)
Get a single user (exact match)
No parameter schema in public metadata yet.
find_groupsFind groups (`*` wildcards)
Find groups (`*` wildcards)
No parameter schema in public metadata yet.
get_groupGet a single group (exact match)
Get a single group (exact match)
No parameter schema in public metadata yet.
find_computersFind computers by name/dns/os (`*` wildcards); optionally `exclude_domain_controllers`
Find computers by name/dns/os (`*` wildcards); optionally `exclude_domain_controllers`
No parameter schema in public metadata yet.
get_computerGet a single computer (sAMAccountName/cn/dNSHostName)
Get a single computer (sAMAccountName/cn/dNSHostName)
No parameter schema in public metadata yet.
find_contactsFind AD contact objects by cn/mail/displayName (`*` wildcards)
Find AD contact objects by cn/mail/displayName (`*` wildcards)
No parameter schema in public metadata yet.
find_ousFind organizational units by name (`*` wildcards)
Find organizational units by name (`*` wildcards)
No parameter schema in public metadata yet.
get_ouGet a single OU by its `ou` name or full DN (exact match)
Get a single OU by its `ou` name or full DN (exact match)
No parameter schema in public metadata yet.
get_ou_contentsList objects under an OU (optionally filtered by `object_class`)
List objects under an OU (optionally filtered by `object_class`)
No parameter schema in public metadata yet.
find_empty_ousOrganizational units with no nested sub-OU (hygiene/audit)
Organizational units with no nested sub-OU (hygiene/audit)
No parameter schema in public metadata yet.
find_inactive_usersFind users whose last logon is older than `days` (default 90)
Find users whose last logon is older than `days` (default 90)
No parameter schema in public metadata yet.
find_stale_computersFind computers whose last logon is older than `days` (default 90)
Find computers whose last logon is older than `days` (default 90)
No parameter schema in public metadata yet.
disabled_usersList disabled user accounts (audit; counterpart of `is_disabled`)
List disabled user accounts (audit; counterpart of `is_disabled`)
No parameter schema in public metadata yet.
locked_usersList locked-out user accounts (audit; counterpart of `is_locked`)
List locked-out user accounts (audit; counterpart of `is_locked`)
No parameter schema in public metadata yet.
never_expires_passwordList users whose password never expires (audit)
List users whose password never expires (audit)
No parameter schema in public metadata yet.
never_expiring_accountsList users whose ACCOUNT (not password) never expires
List users whose ACCOUNT (not password) never expires
No parameter schema in public metadata yet.
expired_accountsList users whose `accountExpires` date is in the past
List users whose `accountExpires` date is in the past
No parameter schema in public metadata yet.
password_not_requiredRisk: users with the `PASSWD_NOTREQD` UAC flag (account may have no password)
Risk: users with the `PASSWD_NOTREQD` UAC flag (account may have no password)
No parameter schema in public metadata yet.
kerberos_preauth_not_requiredRisk: users not requiring Kerberos pre-auth (AS-REP roasting exposure)
Risk: users not requiring Kerberos pre-auth (AS-REP roasting exposure)
No parameter schema in public metadata yet.
not_delegatedRisk: accounts flagged "sensitive and cannot be delegated"
Risk: accounts flagged "sensitive and cannot be delegated"
No parameter schema in public metadata yet.
find_service_accountsRisk: users with a Service Principal Name set (Kerberoasting exposure)
Risk: users with a Service Principal Name set (Kerberoasting exposure)
No parameter schema in public metadata yet.
find_admin_count_accountsUsers with `adminCount=1` (current or stale protected-admin marker)
Users with `adminCount=1` (current or stale protected-admin marker)
No parameter schema in public metadata yet.
find_must_change_passwordEnabled users who must change their password at next logon (`pwdLastSet=0`)
Enabled users who must change their password at next logon (`pwdLastSet=0`)
No parameter schema in public metadata yet.
find_users_without_emailData-quality check: users with no `mail` attribute set
Data-quality check: users with no `mail` attribute set
No parameter schema in public metadata yet.
find_almost_locked_outEnabled users close to the lockout threshold (`badPwdCount`)
Enabled users close to the lockout threshold (`badPwdCount`)
No parameter schema in public metadata yet.
find_credentials_in_descriptionRisk: users whose description may contain a plaintext credential
Risk: users whose description may contain a plaintext credential
No parameter schema in public metadata yet.
find_shadow_credentialsRisk: users/computers with a `msDS-KeyCredentialLink` (Shadow Credentials)
Risk: users/computers with a `msDS-KeyCredentialLink` (Shadow Credentials)
No parameter schema in public metadata yet.
find_obsolete_os_computersComputers running a commonly-cited end-of-life Windows version
Computers running a commonly-cited end-of-life Windows version
No parameter schema in public metadata yet.
audit_admin_accountsMembers of well-known privileged groups (admin-account audit)
Members of well-known privileged groups (admin-account audit)
No parameter schema in public metadata yet.
list_fsmo_rolesOwners of the five FSMO roles (schema, domain-naming, PDC, RID, infrastructure)
Owners of the five FSMO roles (schema, domain-naming, PDC, RID, infrastructure)
No parameter schema in public metadata yet.
list_replication_connectionsAD replication topology (nTDSConnection): source/destination DC, site, KCC-generated
AD replication topology (nTDSConnection): source/destination DC, site, KCC-generated
No parameter schema in public metadata yet.
list_replication_conflictsReplication-conflict (`CNF:`) objects
Replication-conflict (`CNF:`) objects
No parameter schema in public metadata yet.
first_lookOne-call overview: domain, policy, FSMO, DCs, sites, trusts, replication, warnings
One-call overview: domain, policy, FSMO, DCs, sites, trusts, replication, warnings
No parameter schema in public metadata yet.
list_trustsDomain trust relationships (`trustedDomain` objects)
Domain trust relationships (`trustedDomain` objects)
No parameter schema in public metadata yet.
list_sitesActive Directory sites (from the Configuration naming context)
Active Directory sites (from the Configuration naming context)
No parameter schema in public metadata yet.
list_domain_controllersDomain controllers (computer accounts flagged `SERVER_TRUST_ACCOUNT`)
Domain controllers (computer accounts flagged `SERVER_TRUST_ACCOUNT`)
No parameter schema in public metadata yet.
summarize_computer_osCount of computer accounts grouped by operating system
Count of computer accounts grouped by operating system
No parameter schema in public metadata yet.
list_empty_groupsGroups with no direct members (hygiene/audit)
Groups with no direct members (hygiene/audit)
No parameter schema in public metadata yet.
find_security_groupsList security-enabled groups, optionally by `scope` (global/domain_local/universal)
List security-enabled groups, optionally by `scope` (global/domain_local/universal)
No parameter schema in public metadata yet.
find_distribution_groupsList distribution groups (complement of `find_security_groups`)
List distribution groups (complement of `find_security_groups`)
No parameter schema in public metadata yet.
find_admin_count_groupsGroups with `adminCount=1` (current or stale protected-group marker)
Groups with `adminCount=1` (current or stale protected-group marker)
No parameter schema in public metadata yet.
list_gposGroup Policy Objects (`groupPolicyContainer`)
Group Policy Objects (`groupPolicyContainer`)
No parameter schema in public metadata yet.
get_gpoA single GPO by its `cn` (GUID) or `displayName`
A single GPO by its `cn` (GUID) or `displayName`
No parameter schema in public metadata yet.
list_fine_grained_password_policiesFine-grained password policies (PSOs)
Fine-grained password policies (PSOs)
No parameter schema in public metadata yet.
find_recently_modifiedObjects whose `whenChanged` is within the last `days` days, optionally by `object_class`
Objects whose `whenChanged` is within the last `days` days, optionally by `object_class`
No parameter schema in public metadata yet.
find_recently_createdObjects whose `whenCreated` is within the last `days` days, optionally by `object_class`
Objects whose `whenCreated` is within the last `days` days, optionally by `object_class`
No parameter schema in public metadata yet.
get_domain_infoDomain object: security-relevant settings and metadata (audit)
Domain object: security-relevant settings and metadata (audit)
No parameter schema in public metadata yet.
get_password_policyDefault domain password policy (audit)
Default domain password policy (audit)
No parameter schema in public metadata yet.
get_password_policy_violationsUsers whose password violates the policy (audit)
Users whose password violates the policy (audit)
No parameter schema in public metadata yet.
get_privileged_groupsWell-known privileged groups with member counts (audit)
Well-known privileged groups with member counts (audit)
No parameter schema in public metadata yet.
get_by_dnFetch any entry directly by its DN (resolve `manager` / `managedBy`)
Fetch any entry directly by its DN (resolve `manager` / `managedBy`)
No parameter schema in public metadata yet.
get_dnResolve a sAMAccountName (or DN) to a distinguished name
Resolve a sAMAccountName (or DN) to a distinguished name
No parameter schema in public metadata yet.
search_ldapRun a raw, read-only LDAP search with a custom filter (power-user escape hatch)
Run a raw, read-only LDAP search with a custom filter (power-user escape hatch)
No parameter schema in public metadata yet.
group_membersList group members (direct or `nested`)
List group members (direct or `nested`)
No parameter schema in public metadata yet.
user_groupsList a user's groups (nested by default)
List a user's groups (nested by default)
No parameter schema in public metadata yet.
is_memberIs a user a (nested) member of a group?
Is a user a (nested) member of a group?
No parameter schema in public metadata yet.
is_disabledIs an account disabled?
Is an account disabled?
No parameter schema in public metadata yet.
is_lockedIs an account locked?
Is an account locked?
No parameter schema in public metadata yet.
test_connectionTest AD connectivity and bind (returns ok/target/auth/error)
Test AD connectivity and bind (returns ok/target/auth/error)
No parameter schema in public metadata yet.
whoamiIdentity bound as (RFC 4532 "Who Am I?"); works with Kerberos too
Identity bound as (RFC 4532 "Who Am I?"); works with Kerberos too
No parameter schema in public metadata yet.
get_rootdse_inforootDSE of the answering DC: naming contexts, functional levels, GC readiness
rootDSE of the answering DC: naming contexts, functional levels, GC readiness
No parameter schema in public metadata yet.
healthServer health check (server name, msad version, connectivity)
Server health check (server name, msad version, connectivity)
No parameter schema in public metadata yet.
add_group_memberAdd a user to a group (both as sAMAccountName or DN)
Add a user to a group (both as sAMAccountName or DN)
No parameter schema in public metadata yet.
remove_group_memberRemove a user from a group (both as sAMAccountName or DN)
Remove a user from a group (both as sAMAccountName or DN)
No parameter schema in public metadata yet.
unlock_accountUnlock a locked-out user account (resets `lockoutTime` to 0)
Unlock a locked-out user account (resets `lockoutTime` to 0)
No parameter schema in public metadata yet.
Configuration
MSAD_DOMAINDefault AD domain (section of ~/.msad.toml) when a tool call omits it
MSAD_HOSTDomain controller host (alternative to ~/.msad.toml)
MSAD_BASELDAP base DN, e.g. dc=example,dc=com
MSAD_USERBind user (user/password auth)
MSAD_PASSWORDsecretBind password (user/password auth)
MCPAD_ALLOW_WRITESet truthy to enable group-membership write tools (default: read-only)
Readme
mcpAD
A FastMCP server that exposes the
msad Active Directory / LDAP library as MCP tools.
Built with Python 3.14 and uv. It reuses the typed, public msad API
(search users/groups, memberships, account status, read-only security audits).
All tools are read-only by default; optional group-membership write tools are
disabled unless MCPAD_ALLOW_WRITE is enabled (see Write tools).
Tools
Details
- Repository
- github.com/matteoredaelli/mcpad
- Categories
- Security, DevOps & Cloud, Developer Tools
- Package
mcpad- Transport
- STDIO
- Auth
- Required
- Registry
- MCP registry, active
More from matteoredaelli
All 3Similar to Active Directory / LDAP
More Security
GoCloak MCPMCP servernerzalRead-only Keycloak access for users, clients, roles, groups, realms, events, and identity providers.
Active Directory AttacksSkilldavila7/claude-code-templates34.1K starsCatalog reference for Active Directory attack techniques, covering enumeration through domain dominance for penetration tests.
DataNexus MCPMCP serverdatanexusmcp3 starsPublic CVE, package, domain, nonprofit, contract, and patent data across 55 tools, with a free tier.
what-leaked-about-youSkilluseosint/skills57.8K installsRecord-level breach lookup that maps which services an identity used, without ever using the credentials.
security-compliancePluginwshobson/agents42.8K starsSOC2, HIPAA, and GDPR compliance validation, secrets scanning, compliance checklists, and regulatory documentation
ShodanMCP serverburtthecoder191 starsNetwork reconnaissance and CVE lookups via Shodan's API and CVEDB, requiring a Shodan API key.