community postIntegration & APIscommunity - not Microsoftreviewed - checked by Opus

Building BcMCPProxy.exe and Connecting to Claude Desktop (BLOG 3 OF 4)

Building and configuring BcMCPProxy.exe as a self-contained executable in Visual Studio, then connecting it to Claude Desktop via Azure App Registration for delegated authentication to Business Central. This enables Claude to interact with BC through the MCP protocol.

post Mohana's Dynamics NAV & BC blog

Mohana Yadav · 2026-02-11 · 829 words · about 4 min

"The BcMCPProxy uses delegated permissions - it authenticates as the signed-in user via Azure AD."

Key points

  • Create an Azure App Registration with delegated permissions for Dynamics 365 Business Central (Financials.ReadWrite.All and user_impersonation)
  • Build BcMCPProxy.exe as a self-contained release using either Visual Studio UI or command line dotnet publish with –self-contained flag
  • Configure Claude Desktop by editing claude_desktop_config.json with the BcMCPProxy.exe path and parameters including TenantId, ClientId, Environment, Company, and ConfigurationName
  • Publish as a single file (~60-80 MB self-contained) and place in a permanent location like C:\Tools\BcMCPProxy\
  • Authenticate via Azure AD on first Claude Desktop launch to enable BC MCP tools access

Quotes

  • “The BcMCPProxy uses delegated permissions - it authenticates as the signed-in user via Azure AD.” (Clarifies the authentication model: the proxy acts as the user, not as a separate service principal, enabling proper user-level access to Business Central.)
  • “On first launch, an Azure sign-in prompt will appear. Authenticate with a user from the same tenant.” (Documents the expected user interaction flow and confirms that Claude Desktop will prompt for Azure credentials before tools become available.)

Context

  • Features: BcMCPProxy.exe, MCP Server, Azure App Registration, Claude Desktop integration, Delegated authentication, Self-contained publishing, BC MCP configuration
  • Versions: .NET 8, Visual Studio 2022

Source: Mohana’s Dynamics NAV & BC blog, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.