ssas-mcp-server
MCP server for querying SQL Server Analysis Services (SSAS) via DAX and MDX. Connects AI agents like GitHub Copilot, Claude, and other MCP clients to your SSAS cubes.
Documentation
SSAS MCP Server
A Model Context Protocol (MCP) server that connects AI agents to SQL Server Analysis Services (SSAS). It lets tools like GitHub Copilot, Claude (via Codex or Claude Code), and other MCP clients run DAX and MDX queries, explore models, and list measures, all through natural language.
> Windows only \
> SSAS uses the ADOMD.NET client library, which requires .NET Framework on Windows.
Features
| Tool | Description |
|---|---|
| `execute_query` | Run any DAX (`EVALUATE ...`) or MDX (`SELECT ...`) query |
| `list_catalogs` | List all databases on the SSAS instance |
| `list_tables` | List tables, dimensions, and measure groups |
| `list_columns` | List columns for a specific table |
| `list_measures` | List all visible measures with their DAX expressions |
| `describe_model` | High-level summary: tables, measures, metadata |
Prerequisites
1. Python 3.10+
2. ADOMD.NET client library \
The DLL `Microsoft.AnalysisServices.AdomdClient.dll` must be present on the machine. It ships with any of these:
The server auto-detects common install locations. If your DLL is elsewhere, set the `ADOMD_DLL_PATH` environment variable to the folder containing it.
Installation
pip install ssas-mcp-serverAfter installation, the server can be started with:
ssas-mcp-serverOr install from source:
git clone https://github.com/NexusAI-Solutions/ssas-mcp-server.git
cd ssas-mcp-server
pip install .Configuration
The server is configured through environment variables:
| Variable | Required | Description |
|---|---|---|
| `SSAS_SERVER` | Yes | SSAS instance name (e.g. `SERVER\INSTANCE`) |
| `SSAS_DATABASE` | Yes | Database / catalog name |
| `SSAS_PROVIDER` | No | OLAP provider (default: `MSOLAP`) |
| `SSAS_CONNECTION_STRING` | No | Full ADOMD connection string (overrides server/database/provider) |
| `ADOMD_DLL_PATH` | No | Explicit path to the folder containing the ADOMD.NET DLL |
Usage
Run directly
set SSAS_SERVER=SERVER\INSTANCE
set SSAS_DATABASE=My Cube
ssas-mcp-serverThe server starts in stdio mode and waits for an MCP client to connect.
You can also run it as a Python module:
python -m ssas_mcp_serverVS Code / Codex
Add this to your `.vscode/mcp.json`:
{
"servers": {
"ssas": {
"command": "ssas-mcp-server",
"env": {
"SSAS_SERVER": "SERVER\\INSTANCE",
"SSAS_DATABASE": "My Cube"
}
}
}
}Claude Code
claude mcp add ssas -- ssas-mcp-serverThen set the environment variables in your shell before starting Claude Code, or pass them inline.
Claude Desktop
Add to your `claude_desktop_config.json`:
{
"mcpServers": {
"ssas": {
"command": "ssas-mcp-server",
"env": {
"SSAS_SERVER": "SERVER\\INSTANCE",
"SSAS_DATABASE": "My Cube"
}
}
}
}Example queries
Once connected, you can ask your AI assistant things like:
- "List all tables in the SSAS model"
- "Show me the measures and their DAX expressions"
- "Run this DAX query: `EVALUATE TOPN(10, 'Sales', [Revenue], DESC)`"
- "Describe the data model"
- "What columns does the Customers table have?"
Troubleshooting
`Could not load file or assembly 'Microsoft.AnalysisServices.AdomdClient'`
The ADOMD.NET DLL was not found. Solutions:
1. Install SSMS, Power BI Desktop, or the standalone AMO client libraries.
2. Set `ADOMD_DLL_PATH` to the folder containing `Microsoft.AnalysisServices.AdomdClient.dll`.
To find the DLL on your system:
where /r "C:\Program Files" Microsoft.AnalysisServices.AdomdClient.dll`Server is not found or not accessible`
- Verify the server name matches exactly what works in SSMS or Power BI.
- For named instances, use the `SERVER\INSTANCE` format.
- Make sure the SQL Server Browser service is running if you are connecting by instance name.
License
MIT
Frequently asked questions
What is ssas-mcp-server?
ssas-mcp-server is MCP server for querying SQL Server Analysis Services (SSAS) via DAX and MDX. Connects AI agents like GitHub Copilot, Claude, and other MCP clients to your SSAS cubes.
How do I install ssas-mcp-server?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is ssas-mcp-server open source?
Yes — it is hosted on GitHub at https://github.com/NexusAI-Solutions/ssas-mcp-server and has 4 stars.
Related MCP tools
MCP Server for Computer Use in Windows
An AI Gateway, registry, and proxy that sits in front of any MCP, A2A, or REST/gRPC APIs, exposing a unified endpoint with centralized discovery, guardrails and management. Optimizes Agent & Tool calling, and supports plugins.
Control Gmail, Google Calendar, Docs, Sheets, Slides, Chat, Forms, Tasks, Search & Drive with AI - Comprehensive Google Workspace MCP Server & CLI Tool
⚡ 需求分析效率提升 200%!全球首个为 AI 编程时代设计的团队协作 MCP 服务器,自动分析需求自动编写前后端代码,下载切图
MCP server and Claude plugin for Postgres skills and documentation. Helps AI coding tools generate better PostgreSQL code.
MCP server for web fetching with Cloudflare bypass, Trafilatura extraction, and smart routing. Free, self-hosted, no API keys.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP