Back to Home
andreransom58-coder icon

ad-mcp-server

Verified Safe

by andreransom58-coder

Overview

Manage Microsoft Active Directory user accounts (create, modify, enable/disable, delete, reset passwords, search) via a Model Context Protocol (MCP) server.

Installation

Run Command
npx @modelcontextprotocol/inspector python -m src.main

Environment Variables

  • AD_SERVER
  • AD_PORT
  • AD_USE_SSL
  • AD_DOMAIN
  • AD_BASE_DN
  • AD_BIND_DN
  • AD_BIND_PASSWORD
  • AD_USE_INTEGRATED_AUTH
  • AD_TIMEOUT
  • AD_CONNECTION_POOL_SIZE
  • AD_RECONNECT_ATTEMPTS
  • AD_VERIFY_CERT
  • AD_CERT_PATH

Security Notes

Strong input validation and LDAP filter escaping (`escape_ldap_filter`) are implemented to prevent LDAP injection. Uses LDAPS by default with certificate verification. The README explicitly warns against hardcoding secrets and recommends least-privilege service accounts configured via the `.env` file. Logging of AD actions is present. No 'eval' or obfuscation detected. A minor note is that dedicated audit logging to a separate file (as suggested by README) isn't explicitly configured in the provided snippets, but actions are logged via standard logging.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens2000
Stars0
Forks0
Last Update2025-11-25

Tags

Active DirectoryLDAPUser ManagementMCPPythonSystem Administration