SSAS MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SSAS MCP Serverlist measures in the Sales cube"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SSAS MCP Server
A read-only Model Context Protocol server for querying SQL Server Analysis Services — both multidimensional cubes (MDX) and tabular models (DAX) — with Windows Integrated Security (Kerberos/NTLM, no passwords).
Companion to mssql_mcp_server, but for the OLAP side of the house.
Features
list_metadata— discover a cube/model's measures, dimensions and hierarchies (viaMDSCHEMA_*DMVs, which work for both model types), so the agent never guesses bracketed unique names. The overview stays compact — measures, dimension names and multi-level user hierarchies; passdimension="[Dim Event]"to drill into one dimension's full attribute hierarchies and levels (a whole cube's attribute list can run to tens of thousands of tokens).execute_query— run an MDX (SELECT/WITH) or DAX (EVALUATE/DEFINE) query and get a flattened JSON table back.execute_dmv— guarded passthrough forSELECT ... FROM $SYSTEM.*schema rowsets (MDSCHEMA_*,TMSCHEMA_*,DISCOVER_*) for deeper introspection.Read-only by construction — statements that don't start with
SELECT/WITH/EVALUATE/DEFINEare rejected, XMLA payloads are rejected, and there is no DDL/process surface at all.Row cap + query timeout on every call so a runaway crossjoin can't flood the context window.
Related MCP server: sql-explorer-mcp
Requirements
Windows-only by construction (the server drives ADOMD.NET via pythonnet):
Windows, domain-joined, with network access to the SSAS instance (default instance = TCP 2383).
The Windows account running the server has Read access to the SSAS database (role membership). Integrated auth means "whoever runs the process".
ADOMD.NET client libraries — ships with SSMS, or install the Analysis Services client libraries redistributable. Typically lands in
C:\Program Files\Microsoft.NET\ADOMD.NET\160.Python 3.11+
Installation
git clone https://github.com/dbdave/mssas_mcp_server
cd mssas_mcp_server
pip install -e .Smoke-test connectivity before wiring up MCP (if this fails it's network/auth/ADOMD install, not the server):
python test_connection.py <server> <catalog>Configuration
Variable | Required | Default | Notes |
| yes | — | Host, |
| yes | — | SSAS database name |
| no | — | Cube/model |
| no |
| Hard cap on returned rows |
| no |
| Per-query timeout, seconds |
| no | auto-detected | Folder containing |
Authentication is always Windows Integrated Security (Integrated Security=SSPI) —
no credentials in config.
MCP registration (Claude Code / Claude Desktop)
{
"mcpServers": {
"ssas-cube": {
"command": "python",
"args": ["-m", "ssas_mcp.server"],
"env": {
"SSAS_SERVER": "my-ssas-host",
"SSAS_CATALOG": "My_Cube_Db",
"SSAS_DEFAULT_CUBE": "Sales"
}
}
}
}One registered server targets one SSAS database. To use both a multidimensional and a
tabular instance, register the server twice with different SSAS_SERVER/SSAS_CATALOG
env blocks — the query language is chosen per call (execute_query accepts MDX or DAX,
and the engine itself only accepts the language matching the model type).
Example usage
Multidimensional (MDX):
SELECT NON EMPTY { [Measures].[Tickets Issued] } ON COLUMNS,
NON EMPTY { [Sales Item Fact Ordered Date].[Calendar].[Year Name].MEMBERS } ON ROWS
FROM [Sales]Tabular (DAX):
EVALUATE SUMMARIZECOLUMNS('Date'[Year], "Total Sales", [Total Sales])DMV introspection:
SELECT [MEASURE_NAME], [MEASUREGROUP_NAME] FROM $SYSTEM.MDSCHEMA_MEASURES WHERE [CUBE_NAME] = 'Sales'
SELECT * FROM $SYSTEM.TMSCHEMA_MEASURES -- tabular modelsResult format
Tools return JSON:
{
"columns": ["[Sales Item Fact Ordered Date].[Calendar].[Year Name].[MEMBER_CAPTION]", "[Measures].[Tickets Issued]"],
"rows": [["2025", 123456], ["2026", 98765]],
"row_count": 2,
"truncated": false
}Cells can be null and columns can be mixed-type — MDX cellsets are flattened
defensively (nulls preserved, Decimal → float, DateTime → ISO string).
Tests
pip install pytest
pytest tests/License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dbdave/mssas_mcp_server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server