L

Ldap Assistant MCP

by droideck · io.github.droideck/ldap-assistant-mcp

Enables troubleshooting of LDAP directory services through natural language queries, providing health diagnostics, replication status, performance metrics, log analysis, and configuration comparisons across multiple servers.

pypi Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-droideck-ldap-assistant-mcp": {
      "command": "uvx",
      "args": [
        "ldap-assistant-mcp"
      ],
      "env": {
        "LDAP_SERVERS_CONFIG": "<VALUE>",
        "LDAP_URL": "<VALUE>",
        "LDAP_PORT": "389",
        "LDAP_BASE_DN": "<VALUE>",
        "LDAP_BIND_DN": "cn=Directory Manager",
        "LDAP_USE_SSL": "false",
        "LDAP_HOSTNAME": "localhost",
        "LDAP_IS_LOCAL": "false",
        "LDAP_PROVIDER": "dirsrv",
        "LDAP_SERVERID": "<VALUE>",
        "LDAP_MCP_DEBUG": "false",
        "LDAP_USE_LDAPI": "false",
        "LDAP_IS_OFFLINE": "false",
        "LDAP_TLS_VERIFY": "true",
        "LDAP_AUTH_METHOD": "simple",
        "LDAP_BIND_PASSWORD": "<VALUE>",
        "LDAP_CONNECT_TIMEOUT": "30",
        "LDAP_MCP_TOOL_TIMEOUT": "30",
        "LDAP_MCP_MAX_TOOL_TIMEOUT": "120",
        "LDAP_MCP_EXPOSE_SENSITIVE_DATA": "false"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-droideck-ldap-assistant-mcp": {
      "command": "uvx",
      "args": [
        "ldap-assistant-mcp"
      ],
      "env": {
        "LDAP_SERVERS_CONFIG": "<VALUE>",
        "LDAP_URL": "<VALUE>",
        "LDAP_PORT": "389",
        "LDAP_BASE_DN": "<VALUE>",
        "LDAP_BIND_DN": "cn=Directory Manager",
        "LDAP_USE_SSL": "false",
        "LDAP_HOSTNAME": "localhost",
        "LDAP_IS_LOCAL": "false",
        "LDAP_PROVIDER": "dirsrv",
        "LDAP_SERVERID": "<VALUE>",
        "LDAP_MCP_DEBUG": "false",
        "LDAP_USE_LDAPI": "false",
        "LDAP_IS_OFFLINE": "false",
        "LDAP_TLS_VERIFY": "true",
        "LDAP_AUTH_METHOD": "simple",
        "LDAP_BIND_PASSWORD": "<VALUE>",
        "LDAP_CONNECT_TIMEOUT": "30",
        "LDAP_MCP_TOOL_TIMEOUT": "30",
        "LDAP_MCP_MAX_TOOL_TIMEOUT": "120",
        "LDAP_MCP_EXPOSE_SENSITIVE_DATA": "false"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-droideck-ldap-assistant-mcp": {
      "command": "uvx",
      "args": [
        "ldap-assistant-mcp"
      ],
      "env": {
        "LDAP_SERVERS_CONFIG": "<VALUE>",
        "LDAP_URL": "<VALUE>",
        "LDAP_PORT": "389",
        "LDAP_BASE_DN": "<VALUE>",
        "LDAP_BIND_DN": "cn=Directory Manager",
        "LDAP_USE_SSL": "false",
        "LDAP_HOSTNAME": "localhost",
        "LDAP_IS_LOCAL": "false",
        "LDAP_PROVIDER": "dirsrv",
        "LDAP_SERVERID": "<VALUE>",
        "LDAP_MCP_DEBUG": "false",
        "LDAP_USE_LDAPI": "false",
        "LDAP_IS_OFFLINE": "false",
        "LDAP_TLS_VERIFY": "true",
        "LDAP_AUTH_METHOD": "simple",
        "LDAP_BIND_PASSWORD": "<VALUE>",
        "LDAP_CONNECT_TIMEOUT": "30",
        "LDAP_MCP_TOOL_TIMEOUT": "30",
        "LDAP_MCP_MAX_TOOL_TIMEOUT": "120",
        "LDAP_MCP_EXPOSE_SENSITIVE_DATA": "false"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-droideck-ldap-assistant-mcp": {
      "command": "uvx",
      "args": [
        "ldap-assistant-mcp"
      ],
      "env": {
        "LDAP_SERVERS_CONFIG": "<VALUE>",
        "LDAP_URL": "<VALUE>",
        "LDAP_PORT": "389",
        "LDAP_BASE_DN": "<VALUE>",
        "LDAP_BIND_DN": "cn=Directory Manager",
        "LDAP_USE_SSL": "false",
        "LDAP_HOSTNAME": "localhost",
        "LDAP_IS_LOCAL": "false",
        "LDAP_PROVIDER": "dirsrv",
        "LDAP_SERVERID": "<VALUE>",
        "LDAP_MCP_DEBUG": "false",
        "LDAP_USE_LDAPI": "false",
        "LDAP_IS_OFFLINE": "false",
        "LDAP_TLS_VERIFY": "true",
        "LDAP_AUTH_METHOD": "simple",
        "LDAP_BIND_PASSWORD": "<VALUE>",
        "LDAP_CONNECT_TIMEOUT": "30",
        "LDAP_MCP_TOOL_TIMEOUT": "30",
        "LDAP_MCP_MAX_TOOL_TIMEOUT": "120",
        "LDAP_MCP_EXPOSE_SENSITIVE_DATA": "false"
      }
    }
  }
}

Reload the VS Code window to activate.

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

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-droideck-ldap-assistant-mcp": {
      "command": "uvx",
      "args": [
        "ldap-assistant-mcp"
      ],
      "env": {
        "LDAP_SERVERS_CONFIG": "<VALUE>",
        "LDAP_URL": "<VALUE>",
        "LDAP_PORT": "389",
        "LDAP_BASE_DN": "<VALUE>",
        "LDAP_BIND_DN": "cn=Directory Manager",
        "LDAP_USE_SSL": "false",
        "LDAP_HOSTNAME": "localhost",
        "LDAP_IS_LOCAL": "false",
        "LDAP_PROVIDER": "dirsrv",
        "LDAP_SERVERID": "<VALUE>",
        "LDAP_MCP_DEBUG": "false",
        "LDAP_USE_LDAPI": "false",
        "LDAP_IS_OFFLINE": "false",
        "LDAP_TLS_VERIFY": "true",
        "LDAP_AUTH_METHOD": "simple",
        "LDAP_BIND_PASSWORD": "<VALUE>",
        "LDAP_CONNECT_TIMEOUT": "30",
        "LDAP_MCP_TOOL_TIMEOUT": "30",
        "LDAP_MCP_MAX_TOOL_TIMEOUT": "120",
        "LDAP_MCP_EXPOSE_SENSITIVE_DATA": "false"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-droideck-ldap-assistant-mcp": {
      "command": "uvx",
      "args": [
        "ldap-assistant-mcp"
      ],
      "env": {
        "LDAP_SERVERS_CONFIG": "<VALUE>",
        "LDAP_URL": "<VALUE>",
        "LDAP_PORT": "389",
        "LDAP_BASE_DN": "<VALUE>",
        "LDAP_BIND_DN": "cn=Directory Manager",
        "LDAP_USE_SSL": "false",
        "LDAP_HOSTNAME": "localhost",
        "LDAP_IS_LOCAL": "false",
        "LDAP_PROVIDER": "dirsrv",
        "LDAP_SERVERID": "<VALUE>",
        "LDAP_MCP_DEBUG": "false",
        "LDAP_USE_LDAPI": "false",
        "LDAP_IS_OFFLINE": "false",
        "LDAP_TLS_VERIFY": "true",
        "LDAP_AUTH_METHOD": "simple",
        "LDAP_BIND_PASSWORD": "<VALUE>",
        "LDAP_CONNECT_TIMEOUT": "30",
        "LDAP_MCP_TOOL_TIMEOUT": "30",
        "LDAP_MCP_MAX_TOOL_TIMEOUT": "120",
        "LDAP_MCP_EXPOSE_SENSITIVE_DATA": "false"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
LDAP_SERVERS_CONFIG Yes Absolute path to servers.json (multi-server config; preferred)
LDAP_URL No Full LDAP URL (alternative to hostname/port/SSL)
LDAP_PORT No LDAP server port Default: 389
LDAP_BASE_DN No Default search base DN
LDAP_BIND_DN No Bind DN Default: cn=Directory Manager
LDAP_USE_SSL No Use SSL (ldaps://) Default: false
LDAP_HOSTNAME No LDAP server hostname Default: localhost
LDAP_IS_LOCAL No Enable local-instance features Default: false
LDAP_PROVIDER No Server implementation: dirsrv (389 DS) or openldap (experimental) Default: dirsrv
LDAP_SERVERID No Local instance server ID (without slapd- prefix)
LDAP_MCP_DEBUG No Enable debug logging Default: false
LDAP_USE_LDAPI No Connect over LDAPI unix socket Default: false
LDAP_IS_OFFLINE No Treat local instance as stopped Default: false
LDAP_TLS_VERIFY No Verify server certificate on remote ldaps:// connections Default: true
LDAP_AUTH_METHOD No Authentication method (simple, anonymous, sasl_external) Default: simple
LDAP_BIND_PASSWORD No Bind password
LDAP_CONNECT_TIMEOUT No LDAP network/operation timeout in seconds Default: 30
LDAP_MCP_TOOL_TIMEOUT No Per-tool-call timeout in seconds Default: 30
LDAP_MCP_MAX_TOOL_TIMEOUT No Timeout ceiling for heavy tools in seconds Default: 120
LDAP_MCP_EXPOSE_SENSITIVE_DATA No Disable privacy mode (set to 'true' to expose sensitive data) Default: false

Similar servers