Netwrix Access Analyzer MCP server

Enables security administrators to analyze file system permissions, identify excessive access rights, and detect shadow access paths in enterprise environments through SQL Server database queries.
Back to servers
Setup instructions
Provider
Netwrix Corporation
Release date
Apr 09, 2025
Language
Python

The Netwrix Access Analyzer MCP Server provides integration between Netwrix Access Analyzer and Claude Desktop, allowing you to work with Active Directory and File System solutions through a streamlined interface.

Installation Requirements

Prerequisites

  • Python 3.12 or higher
  • MCP SDK
  • pyodbc 4.0.39 or higher
  • python-dotenv 1.0.0 or higher
  • ODBC Driver 17 for SQL Server or later (system installation required)
  • Completed Netwrix Access Analyzer (NAA) File System or Active Directory scans

Setup Process

  1. Clone the repository

    git clone https://github.com/netwrix/mcp-server-naa.git
    cd mcp-server-naa
    
  2. Configure Claude Desktop integration

    Add the following configuration to your Claude Desktop MCP Configuration:

    "NAA_AD": {
      "command": "/path/to/uv",
      "args": [
        "run",
        "--with",
        "pyodbc",
        "fastmcp",
        "run",
        "/path/to/mcp-server-naa/run.py"
      ],
      "env": {
        "DB_SERVER": "HOST OR IP",
        "DB_NAME": "DATABASENAME", 
        "DB_USER": "USERNAME",
        "DB_PASSWORD": "PASSWORD",
        "DB_USE_WINDOWS_AUTH": "FALSE|TRUE"
      }
    }
    

    Be sure to replace the placeholder values with your actual SQL Server connection details.

Using the MCP Server

The MCP server provides various tools for working with Active Directory and File System data through Netwrix Access Analyzer.

Active Directory Tools

  • Get-ADEffectiveMembership: Discover effective group membership with filters
  • Get-ADExceptions: Retrieve AD exceptions with optional filters
  • Get-ADPermissions: Get AD permissions with filters
  • Get-DomainControllers: List all domain controllers
  • Get-CertificateVulnerabilities: List certificate vulnerabilities
  • Get-ADCARights: List AD CA rights
  • Get-ADSecurityAssessment: Retrieve security assessment results
  • Get-ADUsers: Retrieve user details with filters
  • Get-ADGroups: Retrieve group details with filters
  • Get-ADComputers: Retrieve computer details with filters

Database Tools

  • Connect-Database: Connect to a specified MSSQL database
  • Show-ConnectionStatus: Check current database connection status
  • Show-TableSchema: View schema for a specific table

File System Tools

  • Discover-SensitiveData: Find where sensitive data exists (DLP matches)
  • Get-OpenShares: Identify open shares accessible to broad groups
  • Get-TrusteeAccess: Find resources where a specific trustee has access
  • Get-TrusteePermissionSource: Determine the source of access for a trustee/resource
  • Get-ResourceAccess: View effective access for a resource path
  • Get-UnusedAccess: Find users with unused access to a share
  • Get-RunningJobs: List running Netwrix Access Auditor jobs
  • Get-ShadowAccess: View details about shadow access

Troubleshooting

Connection Issues

If you experience connection problems:

  1. Verify your SQL Server is running and accessible
  2. Check your credentials in the configuration
  3. Ensure the ODBC driver is properly installed
  4. Check logs for detailed error messages

Claude Desktop Integration Issues

If Claude Desktop can't find the uv command:

  1. Use the full path to uv in your configuration
  2. Restart Claude Desktop after making configuration changes
  3. Check Claude logs for MCP server-related error messages

For additional help, visit the Netwrix Community.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "NetwrixAccessAnalyzer" '{"command":"/path/to/your/uv","args":["run","--with","pyodbc,fastmcp","fastmcp","run","/path/to/mcp/main.py"],"env":{"DB_SERVER":"your_server_address","DB_NAME":"your_database_name","DB_USER":"your_username","DB_PASSWORD":"your_password","DB_USE_WINDOWS_AUTH":"FALSE"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "NetwrixAccessAnalyzer": {
            "command": "/path/to/your/uv",
            "args": [
                "run",
                "--with",
                "pyodbc,fastmcp",
                "fastmcp",
                "run",
                "/path/to/mcp/main.py"
            ],
            "env": {
                "DB_SERVER": "your_server_address",
                "DB_NAME": "your_database_name",
                "DB_USER": "your_username",
                "DB_PASSWORD": "your_password",
                "DB_USE_WINDOWS_AUTH": "FALSE"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "NetwrixAccessAnalyzer": {
            "command": "/path/to/your/uv",
            "args": [
                "run",
                "--with",
                "pyodbc,fastmcp",
                "fastmcp",
                "run",
                "/path/to/mcp/main.py"
            ],
            "env": {
                "DB_SERVER": "your_server_address",
                "DB_NAME": "your_database_name",
                "DB_USER": "your_username",
                "DB_PASSWORD": "your_password",
                "DB_USE_WINDOWS_AUTH": "FALSE"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later