MCP Server for Netwrix Access Analyzer
What is netwrix mcp server naa
MCP Server for Netwrix Access Analyzer
A FastMCP-based server for Netwrix Access Analyzer data analysis, designed to integrate with Claude Desktop for enhanced data analysis capabilities.
Features
- SQL Server integration with automatic connection on startup
- Dynamic database schema exploration
- SQL query execution
- Netwrix Access Analyzer File System tools
Dependencies
This MCP server requires the following dependencies:
- Python 3.12 or higher
- MCP SDK
- pyodbc 4.0.39 or higher (for SQL Server connectivity)
- python-dotenv 1.0.0 or higher (for environment variable management)
- ODBC Driver 17 for SQL Server or later (must be installed on your system)
Netwrix Access Analyzer (NAA) Dependencies
This MCP Server requires Netwrix Access Analyzer (NAA) File System scans to be completed.
Installation
System Dependencies
First, ensure you have the ODBC Driver for SQL Server installed:
- macOS: Install using Homebrew:
brew install microsoft/mssql-release/msodbcsql17
- Windows: Download and install from the Microsoft ODBC Driver page
- Linux: Follow Microsoft's instructions for your distribution
Python Dependencies
Install required Python packages using uv
Database Setup
For development or testing purposes only:
- Create a
.env
file in your project directory with your SQL Server connection details:
# Database Connection Information
DB_SERVER=your_server_name
DB_NAME=your_database_name
DB_USER=your_username
DB_PASSWORD=your_password
DB_USE_WINDOWS_AUTH=FALSE # Set to TRUE to use Windows Authentication
- Replace the example values with your actual database connection information.
Integration with Claude Desktop
To make this MCP server available in Claude Desktop:
- Open Claude Desktop
- Navigate to the Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
- Add the following configuration to the
mcpServers
section. - Restart Claude Desktop
Example Configuration
"NetwrixAccessAnalyzer": {
```json
"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"
}
}
- Replace
/path/to/your/uv
with the actual path to youruv
executable (find withwhich uv
orwhere uv
), and update the path to yourmain.py
file as well as the database connection information. - Restart Claude Desktop to apply the changes
Available Tools and Sample Prompts
The MCP server provides the following tools for interacting with database systems and analyzing access data:
Database Connection Tools
Connect-Database
Connect to a MS SQL Server database.
Parameters:
server
: SQL Server addressdatabase
: Database nameusername
: SQL Server username (optional if using Windows auth)password
: SQL Server password (optional if using Windows auth)trusted_connection
: Boolean flag for Windows Authentication
Example prompt: "Connect to our SQL Server database at [DBSERVER] with the name [DBNAME] using the [USERNAME] user and [PASSWORD] password."
Show-ConnectionStatus
Check the current database connection status.
Example prompt: "Is the database currently connected? Show me the connection status."
Data Query and Schema Tools
Show-TableSchema
Get a detailed explanation of a database table's schema.
Parameters:
table_name
: Name of the table to explain
Example prompt: "Explain the schema of the Permissions table. What columns does it have?"
Get-TableSchema
Retrieves the schema information for a specific table.
Parameters:
table_name
: Name of the table to get schema for.
Example prompt: "Show me the schema for the Users table."
Get-TableSample
Retrieves a sample of 10 rows from the specified table.
Parameters:
tablename
: Name of the table to sample
Example prompt: "Give me a sample of 10 rows from the Permissions table."
Access Analysis Tools
Discover-SensitiveData
Identify locations containing sensitive data.
Example prompt: "Find all shares that contain sensitive data in our environment."
Get-TrusteeAccess
Identify where a specific user or group has access.
Parameters:
trustee
: Domain\Username formatlevelsdown
: How many directory levels to traverse (default: 0)
Example prompt: "Where does DOMAIN\JohnDoe have access in our file systems?"
Get-TrusteePermissionSource
Determine the source of a user's permissions for a specific resource.
Parameters:
trustee
: Domain\Username formatresourcepath
: Path to the resource
Example prompt: "Why does DOMAIN\JaneDoe have access to \server\share\folder? What's the source of this permission?"
Get-ResourceAccess
Show who has access to a specific resource.
Parameters:
resource
: Path to the resource
Example prompt: "Who has access to \server\finance? Show me all users and groups."
Get-UnusedAccess
Find users with unused access to a specific resource.
Parameters:
resource
: Path to the resource
Example prompt: "Find all users who haven't accessed \server\hr in the last year."
Get-ShadowAccess
Find users with shadow access to critical resources.
Example prompt: "Find all users who have shadow access to credit cards" "Find sbcloudlab\admins shadow access"
Operational Tools
Get-RunningJobs
Check currently running Netwrix Access Analyzer jobs.
Example prompt: "Are there any Access Analyzer jobs running right now? Show me the status."
Troubleshooting
Connection Issues
If you encounter connection issues:
- Verify your SQL Server is running and accessible from your network
- Check your credentials in the
.env
file - Ensure the ODBC driver is correctly installed
- Check the logs for detailed error messages
Claude Desktop Integration
If Claude Desktop can't find the uv
command:
- Use the full path to
uv
in your configuration (usewhich uv
orwhere uv
to find it) - Make sure you've restarted Claude Desktop after configuration changes
- Check the Claude logs for any error messages related to the MCP server
Leave a Comment
Frequently Asked Questions
What is MCP?
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.
What are MCP Servers?
MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.
How do MCP Servers work?
MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.
Are MCP Servers secure?
Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.
Related MCP Servers
chrisdoc hevy mcp
sylphlab pdf reader mcp
An MCP server built with Node.js/TypeScript that allows AI agents to securely read PDF files (local or URL) and extract text, metadata, or page counts. Uses pdf-parse.
aashari mcp server atlassian bitbucket
Node.js/TypeScript MCP server for Atlassian Bitbucket. Enables AI systems (LLMs) to interact with workspaces, repositories, and pull requests via tools (list, get, comment, search). Connects AI directly to version control workflows through the standard MCP interface.
aashari mcp server atlassian confluence
Node.js/TypeScript MCP server for Atlassian Confluence. Provides tools enabling AI systems (LLMs) to list/get spaces & pages (content formatted as Markdown) and search via CQL. Connects AI seamlessly to Confluence knowledge bases using the standard MCP interface.
prisma prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite, MongoDB and CockroachDB
Zzzccs123 mcp sentry
mcp sentry for typescript sdk
zhuzhoulin dify mcp server
zhongmingyuan mcp my mac
zhixiaoqiang desktop image manager mcp
MCP 服务器,用于管理桌面图片、查看详情、压缩、移动等(完全让Trae实现)
zhixiaoqiang antd components mcp
An MCP service for Ant Design components query | 一个减少 Ant Design 组件代码生成幻觉的 MCP 服务,包含系统提示词、组件文档、API 文档、代码示例和更新日志查询
Submit Your MCP Server
Share your MCP server with the community
Submit Now