Skip to content
MCP server

Active Directory / LDAP

Active Directory / LDAP MCP server: find users, groups, memberships; read-only security…

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
0.8.4
Listing updated
today

About Active Directory / LDAP

Active Directory / LDAP is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Active Directory / LDAP MCP server: find users, groups, memberships; read-only security audits.

Install

Run in a terminal

claude mcp add active-directory-ldap-mcp --env MSAD_PASSWORD='<MSAD_PASSWORD>' -- uvx mcpad

Add to claude_desktop_config.json

{
  "mcpServers": {
    "active-directory-ldap-mcp": {
      "command": "uvx",
      "args": [
        "mcpad"
      ],
      "env": {
        "MSAD_PASSWORD": "<MSAD_PASSWORD>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "active-directory-ldap-mcp": {
      "command": "uvx",
      "args": [
        "mcpad"
      ],
      "env": {
        "MSAD_PASSWORD": "<MSAD_PASSWORD>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "active-directory-ldap-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcpad"
      ],
      "env": {
        "MSAD_PASSWORD": "<MSAD_PASSWORD>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "active-directory-ldap-mcp": {
      "command": "uvx",
      "args": [
        "mcpad"
      ],
      "env": {
        "MSAD_PASSWORD": "<MSAD_PASSWORD>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "active-directory-ldap-mcp": {
      "command": "uvx",
      "args": [
        "mcpad"
      ],
      "env": {
        "MSAD_PASSWORD": "<MSAD_PASSWORD>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

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_PASSWORDBind password (user/password auth)
  • MCPAD_ALLOW_WRITESet truthy to enable group-membership write tools (default: read-only)

Pricing

Open source

Active Directory / LDAP FAQ

Is Active Directory / LDAP free?

Yes. Active Directory / LDAP is open source, so you can use and self-host it for free.

How do I add Active Directory / LDAP to Claude Code?

Run this command in your terminal: claude mcp add active-directory-ldap-mcp --env MSAD_PASSWORD='<MSAD_PASSWORD>' -- uvx mcpad

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers