Fabric IQ Ontology MCP (preview)

Important

  • This is a preview feature.
  • Preview features aren't meant for production use and might have restricted functionality. These features are subject to supplemental terms of use, and are available before an official release so that customers can get early access and provide feedback.

This document defines the MCP server endpoints for Fabric Ontology that expose list entities and query capabilities to MCP clients. These endpoints are part of the Fabric Data Plane and enable AI assistants, agents, and tools to discover ontology entities and execute natural language-based queries over Fabric Ontology through a standards-based MCP interface.

Server endpoints (preview)

For public preview, there are new MCP server endpoints.

New server name: mcp_FabricIQOntology

Endpoint: https://agent365.svc.cloud.microsoft/agents/tenants/<tenant_id>/servers/mcp_FabricIQOntology/workspaces/<workspace-ID>/ontologies/<ontology-item-ID>

The scopes required for the new server are: McpServers.FabricIQOntology.All

Tool definition

Available tools for the Fabric IQ Ontology MCP server include:

Tool name Purpose Usage
list_ontology_entity_types Retrieves the specified or all entity types in the ontology and their details, such as property names, property types, and available telemetry. Helps users explore the schema of the ontology. Useful for exploring available entity types in an ontology.
search_ontology Retrieves the answer to a natural language question from the ontology data estate. Returns raw results in JSON format and optionally a derived natural language answer. Enables users to run queries against the ontology using plain language.

Important

This feature is in preview.

Prerequisites

Before using ontology as an MCP server, make sure you have the following prerequisites:

Connect to Fabric IQ MCP using VS Code

To create the MCP server endpoint, you need the URL of your ontology (preview) item.

To find the URL, follow these steps:

  1. Open your ontology item in Fabric.

  2. Copy the values of <environment id>, <workspace-ID>, and <ontology-item-ID> from the URL.

    Screenshot of the values in the URL.

  3. Form the MCP server URL by entering the copied values into this string: https://agent365.svc.cloud.microsoft/mcp/environments/<environment id>/servers/mcp_FabricIQOntology/workspaces/<workspace-ID>/ontologies/<ontology-item-ID>

  4. Use this MCP server URL in the next section.

Set up the MCP server in VS Code

  1. Open VS Code and select a folder to work in.

  2. Inside this folder, create a folder named .vscode.

  3. Inside the inner folder, create a file called mcp.json.

  4. Select the Add Server button at the bottom right of the window.

    Screenshot showing the MCP server json file.

  5. Select HTTP. You're prompted to enter a URL. Use the MCP server URL that you copied in the previous section.

    Screenshot showing the MCP server URL entry.

    Screenshot showing to enter the URL for MCP server.

  6. Select Enter and provide a name for your MCP server. Use this name to display the MCP server in your VS Code environment.

  7. VS Code attempts to authenticate with the server. Select Allow and sign in with your credentials.

The server is created.

Screenshot showing the created MCP server in VS Code.

Enable Agent Mode

After adding the MCP server, enable Agent Mode in VS Code. Agent Mode lets VS Code act as an orchestrator interface, connecting your editor with MCP servers to interact with external tools like ontology. To enable it:

  1. In VS Code, open Chat (Ctrl + Shift + I).

  2. Start the MCP server.

    Screenshot showing the MCP server starting in VS Code.

  3. Confirm that the server is running. Then, enter any prompts to activate the mode.

    Screenshot showing the activation of Agent Mode in VS Code.

  4. When Agent Mode is active, select an orchestrator to handle your queries. Available orchestrators in public preview include GPT-5, GPT-4.1, Claude Sonnet 4.5, Gemini 2.5 pro, and many more. The orchestrator manages the flow of information between your queries in VS Code and the ontology MCP server.

Use Fabric IQ Ontology in Microsoft Copilot Studio

Follow this tutorial to connect your Fabric IQ Ontology MCP server to an agent in Microsoft Copilot Studio.

This tutorial walks you through how to:

  1. Create a new agent in Copilot Studio.
  2. Configure your agent to use a Fabric IQ Ontology as a data source by connecting to an existing ontology.
  3. Validate your agent's functionality using the built-in Test pane.

By the end, you'll have a fully functional agent capable of answering business questions by leveraging your ontology as a trusted, single source of truth.

Before you begin

Before you get started, make sure you have the following items:

  • An active Copilot Studio environment with Fabric IQ Ontology MCP tools enabled
  • A Microsoft Fabric workspace that contains at least one Fabric IQ Ontology item, accessible through the OneLake catalog
  • A modern browser (Microsoft Edge or Google Chrome) signed in with an identity that has access to both your Copilot Studio environment and your Fabric workspace

Step 1: Sign in to Copilot Studio

  1. Open your browser and go to Copilot Studio.
  2. Sign in with your work or school account.
  3. Select the environment where you want to build your agent from the environment picker on the top bar.

Step 2: Create a new agent

  1. Select Agents from the left navigation pane and choose + New agent.
  2. Select Skip to configure if you want to set up the agent manually.
  3. Enter a unique name for your agent, such as Retail Insights Agent, and a short description.
  4. Select Create to provision your agent.

Step 3: Add the Fabric IQ MCP Tool

  1. Open your agent and select the Tools tab.
  2. Select + Add a tool.
  3. Select Model Context Protocol.
  4. Search for Fabric IQ Ontology and select Fabric IQ MCP (preview).
  5. Create a new connection by providing the following details for the ontology you want to ground your agent in:
    • Workspace ID — The ID of the Fabric workspace that contains your ontology.
    • Ontology ID — The ID of the Fabric IQ Ontology item you want to use.

Tip

You can find both IDs in the OneLake catalog or in the URL of your ontology item in the Fabric portal.

  1. After you add the tool, select Fabric IQ MCP (Preview) from your list of tools to view its details. Scroll down and confirm that the list_ontology_entity_types and search_ontology tools are listed and available to your agent.

Step 4: Test your agent

  1. Open the Test pane by selecting the Test button in the upper-right corner.
  2. Ask a sample business question that's relevant to your ontology. For example, "What were our top-selling products last quarter?"
  3. When prompted, select Allow to give the agent permission to use the MCP tool.
  4. If asked, open the Connection manager and select Connect to authorize the Fabric IQ connection.
  5. Select Retry on your original question and verify that the agent returns a grounded response based on your ontology.

Fabric IQ documentation