Fabric MCP Agent2Agent
40by MicrosoftCloudEssentials-LearningHub
Step by step reference implementation for setting up data agents and integrating agent with Copilot Studio
Getting Started
README
Demo: How to configure the Microsoft Fabric (Power BI) MCP connector in Copilot Studio
Costa Rica
Last updated: 2025-10-15
- Consume Fabric data agent from Azure AI Foundry Services (preview) - AI Foundry approach (full code)
- Microsoft Fabric end-to-end security scenario
- Fabric data agent example with the AdventureWorks dataset (preview)
- What is Azure AI Foundry?
- Best Practice Guidance for PTU - blog
- Connect your agent to an existing Model Context Protocol (MCP) server
- Copilot Studio MCP Catalog
- Connect to an existing Model Context Protocol (MCP) server
- Microsoft Copilot Studio - MCP - GitHub repo
- Consume a Fabric Data Agent in Microsoft Copilot Studio (preview) - Agent
- Connect to an existing Model Context Protocol (MCP) server - MCP
- Connecting an Agent in Copilot Studio to an MCP Server - blog
- Connect AI Agents to Fabric API for GraphQL with a local Model Context Protocol (MCP) server
- Fabric data agent concepts (preview)
- How to create a Fabric data agent (preview)
- Fabric data agent example with the AdventureWorks dataset (preview):
This example sets up a Fabric data agent to enable conversational AI over enterprise data. It connects to a lakehouse with the AdventureWorks dataset and allows users to ask natural language questions. The agent interprets queries, accesses data from sources like warehouses, semantic models, and KQL databases, and returns insights. It simplifies data interaction without requiring code or SQL.
- Prepare your data
- Use Fabric Data Agent Preferred for Semantic Models
- Fabric Data linked to Copilot Studio MCP
How we move from basic coding all the way to AI agents?
flowchart LR
A[Scripting: Line-by-line instructions] --> B[Machine Learning: Packages + statistical foundations]
B --> C[LLMs: Reasoning, understanding, human-like responses]
C --> D[Agents: LLMs with ability to act]
%% Styling
classDef step fill:#4a90e2,stroke:#333,stroke-width:2px,color:#fff,font-weight:bold;
class A,B,C,D step;
%% Extra notes
A:::step
B:::step
C:::step
D:::step
- We all
start with scripting, no matter the language, it’s the first step.Simple/complex instructions, written line by line, to get something done- Then comes
machine learning. At this stage, we’re not reinventing the math, we’releveraging powerful packages built on deep statistical and mathematical foundations.These tools let usautomate smarter processes, like reviewing claims with predictive analytics. You’re not just coding anymore; you’re building systems that learn and adapt.LLMs. This is what most people mean when they sayAI.Think ofyourself as the architect, and the LLM as your strategic engine. You can plug into it via an API, a key, or through integrated services. It’s not just about automation, it’s about reasoning, understanding, and generating human-like responses.- And finally,
agents. These are LLMs with theability to act. They don’t just respond,they take initiative. They can create code, trigger workflows, make decisions, interact with tools, with other agents. It’s where intelligence meets execution
E.g of a solution prior Microsoft Fabric:
Now from one place:
Low code approach (Copilot Studio Agents):
Full code approach (AI Foundry Agents):
[!NOTE] About the licensing: Microsoft 365 Copilot Pricing – AI Agents | Copilot Studio Copilot Credit consumption rates:
- Regular (non-generative AI) = 1 Copilot Credit; and
- Generative AI (answers over your data) = 2 Copilot Credits. Customers can use a mix of classic and generative AI messages with the capacity. Learn more
- Copilot Credits are offered via prepaid Copilot Credit pack subscription licenses. One Copilot Credit pack = 25,000 Copilot Credits.
- The Copilot Studio pay-as-you-go meter allows you to post-pay based on the actual number of Copilot Credits consumed in a month.
Prepare your data
Medallion Architecture: Explore the structured approach to data management.
Or if you need to handle
complex data transformations and large-scale data processing, you can use our combined solution of Fabric + Databricks. This powerful combination leverages the strengths of both platforms to provide a robust data processing pipeline. This workshop on Fabric with Databricks for Data Analytics offers a comprehensive step-by-step guide on developing Medallion Architecture using Fabric and Databricks.
Click here to read more about Azure Databricks + Fabric better together
Use Fabric Data Agent (Preferred for Semantic Models)
Data Agent (AI skills in your data) in Microsoft Fabric enable users to
create conversational AI experiences that answer questions about data stored in lakehouses, warehouses, Power BI semantic models, and KQL databases. These skills make data insights accessible and actionable, allowing users tointeract with data naturally and receive relevant answers without needing technical expertise. You can create custom Q&A systems using generative AI, guiding the AI with instructions and examples to ensure it understands your organization's context and data.
Key Features:
- Customizable Q&A Systems: Tailor the AI to answer specific questions relevant to your organization.
- Generative AI: Leverage advanced AI to interact with your data, enhancing data-driven decision-making.
- Ease of Use: Once set up, users can simply ask questions and get accurate answers without needing deep technical knowledge.
E.g:
-
Please ensure you read all the prerequisites
-
Tenant switch enabled: These features must be activated as mentioned here prerequisites
https://github.com/user-attachments/assets/f0df6fb9-e139-4c97-9b68-a6ea05eb6584
-
F2 Fabric capacity or higher: Ensure you have the appropriate Fabric capacity.
-
Workspace configured with Fabric Capacity:
-
At least one of these: A warehouse, a lakehouse, one or more Power BI semantic models, or a KQL database with data.
-
Go to the
workspace, click on+ New item, search forData agent, and select it. -
Choose the name for the Data agent instance:
https://github.com/user-attachments/assets/752734e4-f7f6-44a3-8ccb-069ac005a410
-
Add data:
https://github.com/user-attachments/assets/9800e74e-cbca-45ff-a712-bb2e8a095bb5
-
Relate tables, and start asking!
[!NOTE] Or use: MCP Server (For Custom Integrations) you create it and connect via Power Platform for example.
| Question | Example of it looks |
|---|---|
| Data Exploration | |
| - Can you provide an overview of this dataset? - Are there any missing values or anomalies in this dataset? | |
| What are the key variables in this data? | |
| Data Insights | |
| What patterns or trends can you identify in this data? | |
| Can you highlight any correlations between variables? | |
| What are the outliers in this dataset? |
Fabric Data linked to Copilot Studio (MCP)
- Create a Data Agent in Microsoft Fabric and connect it to your semantic model.
- Publish the agent and verify that it is running successfully.
- In Copilot Studio, go to
Agents → Add an agent, thenselect your Fabric Data Agent from the list. - Test the integration by running sample queries such as:
What was the revenue last quarter?
https://github.com/user-attachments/assets/bdb581c2-ccc9-48b1-a4ce-6b3c465f10bc