Microsoft Agent Framework and Business Central MCP server

Microsoft Agent Framework and Business Central MCP server

On Directions EMEA 2025 the Business Central team launched the Business Central MCP server:
Connect AI agents to Business Central through MCP server | Microsoft Learn

That means when you have Microsoft Copilot Studio you can easily connect to the MCP server of Business Central with the standard connector:

Well that is perfect for low-code agents.
But what if you want to have a pro-code agent using the MCP server of Business Central? Well that is also possible!

Microsoft Agent Framework

Recently Microsoft introduced the Agent Framework. The agent framework combines the Semantic Kernel and AutoGen together as an open-source development kit for building AI agents in .Net and Python:
Introduction to Microsoft Agent Framework | Microsoft Learn
microsoft/agent-framework: A framework for building, orchestrating and deploying AI agents and multi-agent workflows with support for Python and .NET.

When connecting your agent to the Business Central MCP server you have to do the following steps:
1. Setting up authentication
2. Connecting to Business Central MCP Endpoint
3. Creating the MCP Plugin

All code it on mine GitHub repo:
Bertverbeek4PS/BusinessCentralMCPserver

Setting up the authentication you can find in the class ‘BusinessCentralTokenProvider’:

After that you need to connect to the MCP endpoint:

Then creating the plugin:

Then we need to create the agent and initialize the plugin to the kernel:

Inside Business Central I have only those tools available for the agent:

And then final in action

1 COMMENT

GAC support – Ernst Bürer

Dag Bert,

Mooie & handige post.

Groet
Ernst Bürer

Leave a Reply

Your email address will not be published. Required fields are marked *