Cover image
Try Now
2025-04-03

用于Active Directory的模型 - 秘密协议(MCP)服务器

3 years

Works with Finder

2

Github Watches

2

Github Forks

9

Github Stars

Koppla

Koppla is a model-context-protocol server for Active Directory that enables you to manage users, groups, and computer objects using natural language.

Koppla Demo

For more information, visit https://lazyadmin.nl/koppla

With Koppla, you can seamlessly query and manage your Active Directory environment using Claude Desktop or other MCP capable AI agents.

🔹 What Can Koppla Do?

Koppla allows you to execute complex Active Directory queries and updates effortlessly. Examples:

  • "Find all inactive users who haven't logged in for 90 days."
  • "Add John Doe to the 'IT Admins' security group."
  • "List all locked-out user accounts."
  • "Find all users in the Sales department."
  • "Which groups does Jane Smith belong to?"
  • "Show me empty groups."
  • "Find users in group A but not in group B."

🚀 Getting Started

1️⃣ Prerequisites

  • Python 3.7 or higher
  • Active Directory environment
  • Claude Desktop application (for integration with Claude)

2️⃣ Installation

Koppla requires Python and can be installed using:

pip install koppla

3️⃣ Configuration

Using the Configuration Manager (Recommended)

Koppla includes a secure configuration manager that handles encryption of sensitive credentials:

koppla-config configure

This interactive tool will:

  1. Prompt for your Active Directory connection details
  2. Securely encrypt your password using Fernet symmetric encryption
  3. Create or update the Claude Desktop configuration file with Koppla server settings
  4. Automatically create a backup of your existing Claude Desktop configuration
  5. Test the connection to verify your credentials

You can also:

  • Display current configuration: koppla-config show
  • Test your AD connection: koppla-config test

Manual Configuration

Koppla uses environment variables for configuration:

Name Description
AD_SERVER The address of the Active Directory server.
AD_USER Username for authentication.
AD_PASSWORD Password for authentication.
BASE_DN Base DN for LDAP queries.
AD_WRITE_ENABLED Enable or disable write operations (true/false).

To manually configure Koppla with the Claude Desktop app, add the following configuration to the "mcpServers" section of your claude_desktop_config.json:

{
  "mcpServers": {
    "Koppla-Active-Directory": {
        "command": "python",
        "args": ["-m", "koppla.server"],
        "env": {
            "AD_SERVER": "ldap://<domain-controller-name>:389",
            "AD_USER": "<domain\\username>",
            "AD_PASSWORD": "<password>",
            "BASE_DN": "DC=lazyadmin,DC=nl",
            "AD_WRITE_ENABLED": "false"
        }
    }
  }
}

⚠️ Data Processing & Privacy Notice

Important: Koppla transmits Active Directory data to external AI models for processing. This may have security and compliance implications, particularly for organizations subject to GDPR or similar regulations. No AD data is stored by Koppla itself, but be aware that AI agents may retain conversation history according to their own policies. Ensure usage complies with your organization's data handling requirements and consider limiting the scope of queryable data through careful configuration.

🔒 Security Features

Password Encryption

  • Koppla uses Fernet symmetric encryption (from the cryptography package) to secure your Active Directory password
  • The encryption key is stored separately from the configuration in a key file with restricted permissions
  • When using the configuration manager, passwords are never stored in plain text
  • Encrypted passwords appear as ENCRYPTED:xxxx... in the configuration file

Backup System

  • Before any configuration changes, Koppla automatically creates timestamped backups of your Claude Desktop configuration
  • Backups are stored alongside your configuration with format: claude_desktop_config.json.backup_YYYYMMDD_HHMMSS

Write Protection

  • By default, all write operations (adding/removing users from groups, updating user attributes) are disabled
  • To enable write operations, set AD_WRITE_ENABLED to "true"
  • Critical accounts and groups have additional protection regardless of write settings

Supported Write Operations

Koppla supports the following write operations when AD_WRITE_ENABLED is set to "true":

  1. Update User Attributes

    • Modify standard user attributes like description, title, department, etc.
    • Protected fields (passwords, security identifiers, account control) cannot be modified
    • Protected accounts (administrators, service accounts, etc.) cannot be modified
  2. Add User to Group

    • Add standard users to security or distribution groups
    • Cannot add users to protected administrative groups
    • Protected accounts cannot be added to any groups
  3. Remove User from Group

    • Remove users from most security or distribution groups
    • Cannot remove users from critical system groups
    • Protected accounts cannot be removed from any groups

All write operations require explicit confirmation before execution.

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Lists Tailwind CSS classes in monospaced font

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • HiveNexus
  • 一个适用于中小型团队的AI聊天机器人,支持DeepSeek,Open AI,Claude和Gemini等车型。 专为中小团队设计的ai聊天应用,支持deepSeek,打开ai,claude,双子座等模型。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

    Reviews

    4 (1)
    Avatar
    user_8QokCach
    2025-04-16

    As an ardent MCP application user, I must say Koppla by ruudmens is a fantastic addition to my toolkit. It's well-crafted, intuitive, and makes managing multiple connections seamless. The community and developer support are top-notch. Highly recommended for anyone looking to streamline their workflow. Check it out here: https://github.com/ruudmens/Koppla.