Powerbi Claude Mcp Pipeline
БесплатноНе проверенEnd-to-end BI pipeline — Python data cleaning, MS SQL Server, Power BI dashboards, and Claude AI via MCP for natural language analysis and DAX generation.
Описание
End-to-end BI pipeline — Python data cleaning, MS SQL Server, Power BI dashboards, and Claude AI via MCP for natural language analysis and DAX generation.
README
An end-to-end Business Intelligence pipeline that integrates Claude AI via Model Context Protocol (MCP) into a real Power BI workflow — from raw data cleaning to AI-assisted dashboard development.
Dashboard Preview

Overview
This project demonstrates a complete, production-style BI pipeline where Claude AI acts as an active collaborator — not just a chatbot — helping build DAX measures, answer business questions, validate data, and create visuals directly within Power BI.
Pipeline — Step by Step
1. Data Cleaning (Python + Pandas)
- Ingested raw data and performed cleaning using Python and Pandas
- Handled null values, standardised field names, and validated record integrity
- Ensured data was analysis-ready before loading to the database
2. Database Layer (MS SQL Server)
- Established a Python-to-SQL Server connection using
pyodbc/sqlalchemy - Pushed the cleaned dataset into a structured SQL Server table
- Created a reliable, queryable single source of truth for downstream reporting
3. Power BI Connection
- Connected Power BI directly to the SQL Server table
- Loaded the clean dataset into the data model for reporting and visualisation
4. Claude MCP Integration
- Downloaded and configured the Claude MCP server
- Established a live AI-to-Power BI bridge
- Enabled Claude to interact directly with the Power BI data model
5. AI-Assisted Analysis & Development
With the MCP integration active, Claude was used to:
- Write and validate DAX measures for business KPIs
- Answer business questions in natural language (counts, aggregations, trends)
- Audit data quality — verifying total record counts and identifying anomalies
- Rename and standardise field labels for business-friendly reporting
- Recommend and generate appropriate visuals for each metric
Features
- AI-assisted Power BI development using Claude MCP
- Natural language querying against BI datasets
- Automated DAX measure generation
- SQL Server integration pipeline
- Python-based data cleaning and validation
- AI-assisted visual recommendation workflow
- Production-style BI architecture
Example AI Queries
With Claude MCP connected to Power BI, the assistant can respond to prompts such as:
- "Create a DAX measure for YoY sales growth"
- "Which customer segment generated the highest revenue?"
- "Recommend the best visual for monthly sales trends"
- "Validate total order counts against the SQL source table"
- "Show the top 5 products by profit margin"
Tech Stack
| Layer | Technology |
|---|---|
| Data cleaning | Python 3.x, Pandas |
| Database | Microsoft SQL Server |
| BI & Visualisation | Power BI |
| AI Integration | Claude AI, MCP Server |
| Query & Measures | DAX, SQL |
Architecture Flow
Raw CSV Data
↓
Python + Pandas Cleaning
↓
SQL Server Database
↓
Power BI Data Model
↓
Claude MCP Integration
↓
AI-Assisted Analytics & DAX Generation
Project Structure
powerbi-claude-mcp-pipeline/
├── README.md
├── data/
│ └── sample_data.csv # Anonymised sample dataset
├── python/
│ ├── data_cleaning.py # Data cleaning and transformation
│ └── sql_upload.py # SQL Server connection and data upload
├── powerbi/
│ └── dashboard_screenshot.png # Final dashboard preview
├── mcp/
│ └── mcp_config.json # MCP server config (credentials removed)
├── .env.example # Environment variable template
├── requirements.txt # Python dependencies
└── .gitignore
Getting Started
Prerequisites
- Python 3.x
- Microsoft SQL Server (local or remote)
- Power BI Desktop
- Anthropic API key (get one here)
- Claude MCP server
Installation
# Clone the repository
git clone https://github.com/aakshadha/powerbi-claude-mcp-pipeline.git
cd powerbi-claude-mcp-pipeline
# Install Python dependencies
pip install -r requirements.txt
# Set up environment variables
cp .env.example .env
# Edit .env with your SQL Server credentials and Anthropic API key
Running the Pipeline
# Step 1: Clean the data
python python/data_cleaning.py
# Step 2: Upload to SQL Server
python python/sql_upload.py
# Step 3: Open Power BI Desktop and connect to your SQL Server table
# Step 4: Configure the MCP server (see mcp/mcp_config.json)
# Step 5: Connect Claude and start querying your data
Key Learnings
- MCP enables Claude to act as a BI collaborator — it understands the data model and contributes directly to report development, not just answers generic questions
- Combining a clean data pipeline with AI assistance dramatically reduces the time from raw data to business insight
- DAX measure creation, which typically requires specialist knowledge, can be accelerated significantly with Claude's assistance
Security Notes
- Never commit real credentials — use
.envfiles and environment variables - The
mcp_config.jsonfile in this repository contains placeholder API keys only - Sample data has been anonymized — do not upload real business or personal data
Author
Anjali Akshadha Singh
BI Engineer | Power BI · Snowflake · SQL | AI-augmented analytics
LinkedIn
License
MIT License — feel free to use and adapt this project.
Установка Powerbi Claude Mcp Pipeline
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/aakshadha/powerbi-claude-mcp-pipelineFAQ
Powerbi Claude Mcp Pipeline MCP бесплатный?
Да, Powerbi Claude Mcp Pipeline MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Powerbi Claude Mcp Pipeline?
Нет, Powerbi Claude Mcp Pipeline работает без API-ключей и переменных окружения.
Powerbi Claude Mcp Pipeline — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Powerbi Claude Mcp Pipeline в Claude Desktop, Claude Code или Cursor?
Открой Powerbi Claude Mcp Pipeline на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
wenb1n-dev/SmartDB_MCP
A universal database MCP server supporting simultaneous connections to multiple databases. It provides tools for database operations, health analysis, SQL optim
автор: wenb1n-devPostgres Server
This server enables interaction with PostgreSQL databases through the Model Context Protocol, optimized for the AWS Bedrock AgentCore Runtime. It provides tools
автор: madhurprashPostgres
Query your database in natural language
автор: AnthropicPostgreSQL
Read-only database access with schema inspection.
автор: modelcontextprotocolCompare Powerbi Claude Mcp Pipeline with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории data
