Execute a KQL query against the configured Azure Data Explorer database
List all tables in the configured database
Get the schema for a specific table
Get sample data from a specific table
Get detailed statistics and information about a specific table
Azure Data Explorer MCP Server provides a seamless interface for AI assistants to interact with Azure Data Explorer (ADX) and Eventhouse in Microsoft Fabric. It enables executing KQL queries, exploring database schemas, and analyzing data through standardized Model Context Protocol interfaces. With this MCP, AI assistants can discover database resources, view table schemas, sample data, and get detailed statistics - all while leveraging Azure's authentication mechanisms including token credentials and workload identity support for Kubernetes environments.
Azure Data Explorer MCP Server enables AI assistants to interact with your Azure Data Explorer (ADX) or Eventhouse databases through the Model Context Protocol. This allows your AI assistant to execute KQL queries, explore database schemas, and analyze your data directly.
git clone https://github.com/pab1it0/adx-mcp-server.git
cd adx-mcp-server
pip install -e .
.env
file in the project root:# Required: Azure Data Explorer configuration
ADX_CLUSTER_URL=https://yourcluster.region.kusto.windows.net
ADX_DATABASE=your_database
# Optional: Azure Workload Identity credentials (for AKS deployments)
# AZURE_TENANT_ID=your-tenant-id
# AZURE_CLIENT_ID=your-client-id
# ADX_TOKEN_FILE_PATH=/var/run/secrets/azure/tokens/azure-identity-token
az login
)The server supports multiple authentication methods:
For AKS with Azure Workload Identity, ensure your pod has the required environment variables (AZURE_TENANT_ID
and AZURE_CLIENT_ID
) and the token file is properly mounted.
You can also run the server as a Docker container:
docker build -t adx-mcp-server .
docker run -p 8000:8000 --env-file .env adx-mcp-server
Once the server is running, you can configure your AI assistant to use it. The server exposes MCP-compatible endpoints that allow the AI to:
The server automatically handles authentication with your Azure Data Explorer cluster using the configured credentials.