MCP server for Excel Power Pivot data models

MCP server for Excel Power Pivot data models

excel-power-pivot-mcp•byback1ply

An MCP server that connects to open Excel workbooks with Power Pivot data models, enabling AI assistants to run DAX queries and manage measures, relationships, and model metadata.

License: MIT License•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Discovers and connects to open Excel workbooks that contain Power Pivot data models.
  • •Runs DAX queries and previews table data, and analyzes column statistics.
  • •Creates, updates, and deletes DAX measures with auto-formatting support.
  • •Creates, deletes, and activates or deactivates table relationships, and explores model objects such as tables, columns, hierarchies, and KPIs.

BEST FOR

  • •Defining and editing DAX measures in an open Excel Power Pivot model through natural language.
  • •Exploring a data model's tables, measures, relationships, and dependencies before making changes.
  • •Running ad-hoc DAX queries to test or preview data in a workbook's data model.

ABOUT EXCEL-POWER-PIVOT-MCP

MCP server for Excel Power Pivot data models is cataloged as an MCP server attributed to back1ply. An MCP server that connects to open Excel workbooks with Power Pivot data models, enabling AI assistants to run DAX queries and manage measures, relationships, and model metadata. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for Excel Power Pivot data models are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does this server modify my Excel workbooks directly?

Yes, the tool modifies Power Pivot data models directly, and the README warns to always maintain backups before use.

Can it create or manage calculated columns?

No, calculated columns cannot be managed via this MCP due to COM API restrictions and must be handled in the Power Pivot window.

What environment is required to run it?

It requires Windows 10 or 11 and Microsoft Excel 2013 or later with Power Pivot enabled.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 7cee14914552 · 采集于 2026-11-13 11:08:03 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Excel Power Pivot MCP Server

A Model Context Protocol (MCP) server that enables AI assistants to interact with Excel Power Pivot data models. Create and manage DAX measures, relationships, and more through natural language.

Features

  • Workbook Discovery & Connection - Discover and connect to open Excel workbooks with Power Pivot data models
  • DAX Query Execution - Run DAX queries and preview table data
  • Measure Management - Create, update, and delete DAX measures with auto-formatting
  • Relationship Management - Create, delete, and activate/deactivate table relationships
  • Model Exploration - List tables, columns, measures, relationships, hierarchies, KPIs, and dependencies
  • Data Profiling - Analyze column statistics (min, max, distinct count, nulls, sample values)
  • Power Query Discovery - List Power Queries (M code) in the workbook
  • Table Management - Add Excel tables to the data model, refresh tables/model

[!WARNING] Use at your own risk. This tool modifies your Excel Power Pivot data models directly. The author is not responsible for any data loss, corruption, or damage to your workbooks. Always maintain backups of your Excel files before using this tool.

Requirements

  • Windows 10/11 (required for Excel COM interop)
  • Microsoft Excel 2013+ with Power Pivot enabled

Installation

Download the latest ExcelPowerPivotMcp.exe from the Releases page.

No installation required - just download and configure your MCP client.

MCP Client Configuration

Claude Desktop

Add to your claude_desktop_config.json:

Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "excel-powerpivot": {
      "command": "C:/path/to/ExcelPowerPivotMcp.exe"
    }
  }
}

Cursor

Add to your Cursor MCP settings:

{
  "mcpServers": {
    "excel-powerpivot": {
      "command": "C:/path/to/ExcelPowerPivotMcp.exe"
    }
  }
}

Antigravity (VS Code)

Add to your .vscode/mcp.json:

{
  "servers": {
    "excel-powerpivot": {
      "type": "stdio",
      "command": "C:/path/to/ExcelPowerPivotMcp.exe"
    }
  }
}

Usage

1. Open Excel with Power Pivot

Open your Excel workbook that contains a Power Pivot data model.

2. Connect via MCP

The AI assistant will first discover and connect to your workbook:

AI: Let me discover your Excel workbooks...
→ discover_workbooks()
→ Found: MyModel.xlsx (hasDataModel: true)

AI: Connecting to your workbook...
→ connect_workbook(workbook_name: "MyModel.xlsx")
→ Connected!

3. Explore and Modify

AI: Let me see what's in your data model...
→ get_model_summary()
→ 5 tables, 12 measures, 6 relationships

AI: I'll create a new measure for you...
→ create_measure(
    tableName: "Sales",
    measureName: "Total Revenue",
    expression: "SUM(Sales[Amount])"
  )

AI: Don't forget to save!
→ save_workbook()

Available Tools

Connection

ToolDescription
discover_workbooksFind open Excel workbooks with Power Pivot models
connect_workbookConnect to a specific workbook
get_connection_statusCheck current connection status
save_workbookSave the connected workbook
refresh_modelRefresh the entire data model

Model Metadata

ToolDescription
get_model_summaryComprehensive model overview
list_tablesList all tables with row counts
list_columnsList columns in a table
list_measuresList measures with expressions
list_relationshipsShow table relationships
list_hierarchiesList user-defined hierarchies
list_kpisList Key Performance Indicators
get_dependenciesShow calculation dependencies
list_power_queriesList Power Queries (M code)
list_excel_tablesList Excel tables (ListObjects)

DAX Queries

ToolDescription
run_daxExecute DAX queries or preview table data
analyze_columnGet column statistics and sample values

Measure CRUD

ToolDescription
create_measureCreate a new DAX measure (supports autoFormat=false for speed)
update_measureUpdate expression/name/description
delete_measureDelete a measure

Relationship CRUD

ToolDescription
create_relationshipCreate a table relationship
delete_relationshipDelete a relationship
set_relationship_activeActivate/deactivate a relationship

Table Operations

ToolDescription
add_table_to_model[DESTRUCTIVE] Add Excel table to data model
delete_table[DESTRUCTIVE] Delete a table from the model
refresh_tableRefresh a single table

Prompts

PromptDescription
describe_modelDescribe the data model in plain English
workflow_create_measureGuided workflow to create a measure
workflow_analyze_modelAnalyze model structure and suggest improvements
workflow_test_daxTest DAX before creating permanent measures
workflow_fix_measureDebug and fix a broken measure
workflow_add_relationshipGuided workflow to add a relationship
recover_connectionRecover from a lost Excel connection

Resources

URIDescription
model://schemaCurrent Power Pivot data model schema (JSON)
model://dirty-stateCheck for unsaved changes
model://logsRecent server diagnostic logs
model://instructionsGuidelines for working with Power Pivot
model://best-practicesMeasure best practices guide
model://dax-guideDAX query guide for Excel
model://workflowsCommon workflow reference

Performance Tips

Fast Measure Creation

Use autoFormat: false to skip DAX formatting for faster measure creation (~1.5s savings):

{
  "tableName": "Sales",
  "measureName": "Quick Measure",
  "expression": "SUM(Sales[Amount])",
  "autoFormat": false
}

Limitations

Excel Power Pivot Limitations

These features are not available in Excel Power Pivot (unlike Power BI):

FeatureExcel Power Pivot
Calculation Groups❌ Not supported
Perspectives❌ Not supported
Row-Level Security (RLS)❌ Not supported
DEFINE COLUMN in DAX queries❌ Not supported

MCP Server Limitations

These exist in Excel but cannot be managed via this MCP due to COM API restrictions:

FeatureStatus
Create/Update/Delete Calculated Columns❌ Use Power Pivot window
Set Column Descriptions❌ Use Power Pivot window

Troubleshooting

ErrorSolution
"Excel is not running"Open Excel with your workbook
"Workbook not found"Ensure the workbook is open in Excel
"No data model"Create a Power Pivot data model first
"Not connected"Call connect_workbook first

License

MIT License - see LICENSE file.

Contributing

Contributions welcome! Please open an issue or pull request.

Acknowledgments

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for Excel Power Pivot data models from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/excel-power-pivot-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage