web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

[OnPrem] Can you connect Visual Studio Code to and work with the Business Central MCP Server?

(10) ShareShare
ReportReport
Posted on by 90
Hi,I got a local BC Container running and am trying to integrate the copilot agents via VSC. Is it possible and how? I am mostly lost when it comes to the environment configuration in the MCP settings ( URL / Authentication ) .
 
Cheers
I have the same question (0)
  • Suggested answer
    OussamaSabbouh Profile Picture
    17,623 Super User 2026 Season 1 on at
    Hello,
     
    you can’t fully run or test Business Central Copilot agents against a local Docker container because Copilot relies on cloud services, Entra ID, and Microsoft-managed endpoints, so real agent development is only supported against BC online (sandbox). Locally, you can only integrate like a normal client: point your tooling/MCP config to the BC API endpoint of the container and authenticate with Basic auth (user + password or web service access key), e.g. http://localhost:7048/BC/api/v2.0/; this works for calling APIs, not for Copilot runtime. If your goal is actual Copilot/agent development, the correct setup is VS Code → publish to a BC online sandbox → OAuth (Entra app) auth against api.businesscentral.dynamics.com.
  • Verified answer
    YUN ZHU Profile Picture
    101,995 Super User 2026 Season 1 on at
    Hi, If you are referring to the standard Business Central MCP server, it currently only supports SaaS and cannot be used on-premises.
    Business Central 2025 wave 2 (BC27.1): Connect AI agents to Business Central through MCP server (Dynamics 365 Business Central MCP)
     
    Thanks.
    ZHU
  • CC-05111201-0 Profile Picture
    90 on at
    rHi, If you are referring to the standard Business Central MCP server, it currently only supports SaaS and cannot be used on-premises.
    Business Central 2025 wave 2 (BC27.1): Connect AI agents to Business Central through MCP server (Dynamics 365 Business Central MCP)
     
    Thanks.
    ZHU
     
     
    Hi, thanks for the answer. That's unfortunate, are there plans for OnPrem solutions?  
  • CU24040703-0 Profile Picture
    14 on at
    Check the container's documentation or configuration files for exposed ports and authentication settings. You can also test the endpoint with a browser, curl, or Postman before configuring VS Code.
    Sprunki
  • Gerardo Rentería García Profile Picture
    27,261 Most Valuable Professional on at

    Hi, good day
    I hope this can help you, and give you some hints.

    Features not implemented in on-premises deployments - Business Central | Microsoft Learn

    Best Regards
    Gerardo

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,028 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,366 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,175 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans