Edit

Share via


Connect Dataverse MCP with GitHub Copilot in Visual Studio Code

This article explains how to set up and use the Microsoft Dataverse model context protocol (MCP) server with Visual Studio GitHub Copilot.

Prerequisites

Steps to connect to Dataverse MCP server in Visual Studio Code

  1. Open Visual Studio Code. Select View > Command Palette (Ctrl+Shift+P), type MCP: Add Server and press Enter. 

  2. Select HTTP or Server Sent Events and then press Enter. 

  3. Paste your instance URL, such as https://contoso.crm.dynamics.com/, append /api/mcp to it, and press Enter. You can get the instance URL at make.powerapps.com > Settings (gear icon) > Session details > Instance url. Organization URL with appendix.

    This step generates the MCP server configuration in Visual Studio Code. 

  4. Press Ctrl+Alt+I and ensure that agent mode is selected. Agent mode in Visual Studio Code GitHub Copilot

Connect to Dataverse with Model Context Protocol