Home Power PlatformsCopilot and AI Dataverse MCP: Give Your Agent Hands

Dataverse MCP: Give Your Agent Hands

by Mo Faheem
Dataverse MCP: Give Your Agent Hands

⚙️ Lab note (added September 2026): every agent in this series was built and run in the new Copilot Studio experience. What Microsoft now calls the GitHub Copilot harness (GA August 2026). The classic “standard harness” is a different build experience with different behaviour. My standard-harness rebuild and full harness comparison are scheduled on this blog for late October 2026.

An agent that can only read is a very well-spoken FAQ page. The moment it can also query and update your Dataverse data, count records, look up an account, create one on request, it becomes something you can actually put to work. This post wires the Microsoft Dataverse MCP Server into the agent we built in part one and walks through a real test against a real environment, including the part where the agent wrote records and then checked its own work. (If MCP is a new term, the plug-and-appliance post covers the concept in ten minutes.)

Step 1. Add the Dataverse MCP Server

Open your agent, and in the right rail choose Tools › + Add tool, then switch to the Model Context Protocol (MCP) tab. The row you want is Microsoft Dataverse MCP Server, “Provides Remote MCP Server access to Dataverse”, a premium, Microsoft-built server.

The MCP tool catalog with the Microsoft Dataverse MCP Server entry
Tools › Add a tool › MCP tab. One row in a catalog, and suddenly your agent knows SQL.

Selecting it prompts for a connection. Create new connection signs in as you, in my case silently, since the browser session was already authenticated. Click Add, save the agent, and the tool chip appears in the rail. That is the entire integration. No endpoints, no API keys, no custom connector JSON.

⚠️ Important: the connection runs under the identity that created it, and the server is scoped to the environment the agent lives in. The agent can do exactly what that user can do in that environment. No more, and certainly no less. Choose the identity like you would choose a service account.

Step 2. Ask a Question That Requires a Query

In the Preview tab I asked: “How many account records exist in this environment? List up to 5 account names.” The first thing that happened was not an answer. It was a permission prompt:

A Permission Required card asking to allow the Microsoft Dataverse MCP Server to perform read_query
The consent card. Every tool action asks before it runs, Allow or Deny, per action. This one panel is the whole governance trick.

After I clicked Allow, the agent ran SQL-style queries, SELECT COUNT(accountid) FROM account, a TOP 5 by name, even a GROUP BY statecode to rule out inactive rows, and came back with the honest answer: zero accounts. My test sandbox was empty. Better still, it cross-checked the contact table, concluded the environment was simply unpopulated rather than broken, and offered to create sample data. Diagnosis before prescription, from a chat window.

Step 3. Let It Write (Deliberately)

I took the agent up on its offer: “Yes, create 3 sample accounts: Contoso Cafe Group, Northwind Beans Ltd, and Adventure Works Espresso. Then confirm the new account count.” Each create_record call raised its own consent card, writes do not piggyback on the permission you gave a read. Then:

The agent reports 3 of 3 accounts created with GUIDs and timestamps, verified by re-querying the account table
3 of 3 succeeded, 0 failures, with GUIDs, timestamps, and a re-query to prove the count went from 0 to 3. The agent graded its own homework, with citations.

Note what it did unprompted: after writing, it re-queried the table, verified the count, listed exactly which fields it had set (only name, everything else at defaults), and asked whether I wanted contacts or cases linked next. That verification loop is the behavior you want from any integration, human or otherwise.

Limitations Worth Knowing

  • The server targets the agent’s own environment. Cross-environment access is a different setup, not a checkbox.
  • Consent cards are per action in the test pane, excellent for demos and audits, worth understanding before you imagine a fully hands-off flow.
  • Every query and write burns Copilot Credits. The meter from part two of this series never sleeps.

What I Learned

The Dataverse MCP server collapses what used to be a custom-connector project into a single catalog row, and the interesting engineering has moved from plumbing to policy: which identity connects, which environment is in scope, and who clicks Allow. Give your agent hands, but count its fingers: the consent card, the scoped identity, and the credit meter are the three controls that make writes safe to hand over.

Next in this series: Work IQ hands-on. The agent reads my actual work data, refuses to guess, and retrieves the one document that matters.

Related Articles

Leave a Comment