Dynamics 365 Business Central Admin MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Dynamics 365 Business Central Admin MCP ServerList all my environments"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Dynamics 365 Business Central Admin MCP Server (YAMPI)
A Model Context Protocol (MCP) server that enables AI assistants like Claude Desktop, GitHub Copilot, and Cursor to manage Dynamics 365 Business Central environments through natural language commands.
๐ Features
๐ Interactive Authentication - Secure Microsoft Entra ID authentication with browser-based login
๐ฆ 34 Administrative Tools - Complete environment, app, session, PTE upload, and extension management
โก Smart Token Caching - Automatic token refresh to minimize authentication prompts
๐ Multi-Tenant Support - Manage multiple Business Central tenants seamlessly
๐ฌ Natural Language Interface - Control BC through conversational AI commands
๐ Secure by Design - No credentials stored, uses Azure authentication standards
๐ฆ Installation
Via npm (Recommended)
npm install -g @demiliani/d365bc-admin-mcpPrerequisites
Node.js 16+ - Download
Dynamics 365 Business Central - Admin access to your tenant
Microsoft Entra ID - Azure account with BC admin privileges
โ๏ธ Configuration
After installation, configure your AI assistant to use the MCP server.
Claude Desktop
Location:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Configuration:
{
"mcpServers": {
"d365bc-admin": {
"command": "d365bc-admin-mcp"
}
}
}Steps:
Open the configuration file (create it if it doesn't exist)
Add the above configuration
Save the file
Restart Claude Desktop
You should see the MCP server connected in the chat window
GitHub Copilot (VS Code)
Location: .vscode/settings.json in your workspace or global settings
Configuration:
{
"github.copilot.chat.mcp.servers": {
"d365bc-admin": {
"command": "d365bc-admin-mcp"
}
}
}Steps:
Open VS Code Settings (JSON)
Add the above configuration
Save the file
Restart VS Code
Open GitHub Copilot Chat to start using the MCP server
Cursor
Location: .cursor/config.json in your workspace
Configuration:
{
"mcp": {
"servers": {
"d365bc-admin": {
"command": "d365bc-admin-mcp"
}
}
}
}Steps:
Create
.cursor/config.jsonin your workspace rootAdd the above configuration
Save the file
Restart Cursor
The MCP server will be available in Cursor's AI chat
๐ Authentication
On first use, a browser window will open for Microsoft Entra ID authentication. Sign in with your Business Central administrator account. The token is cached for 50 minutes and automatically refreshed.
No additional setup required - the MCP server handles authentication automatically!
๐ก Usage Examples
Once configured, use natural language commands in your AI assistant:
Environment Management
"Show me all my Business Central environments"
"What's the status of my Production environment?"
"Create a new sandbox environment called 'Dev-Test' in the US"
"Copy Production environment to a new sandbox called 'Testing'"
"Delete the 'Old-Test' sandbox environment"Application Management
"List all installed apps in Production"
"Show available updates for my apps"
"Install app with ID <app-id> in my Production environment"
"Update the Sales Module app to version 2.0"
"Uninstall the old Marketing app from Sandbox"Session Management
"Show active user sessions in Production"
"Terminate session abc123 in my Sandbox environment"Update Windows
"Get the update window settings for Production"
"Set update window for Production to 10 PM - 6 AM UTC"Storage & Monitoring
"Show storage usage for all environments"
"What's the storage usage for Production?"Extension Deployment & PTE Uploads
"Upload the app c:\\Packages\\MyPTE.app to Production (Fabrikam)"
"Bulk upload all .app files from c:\\Packages into Sandbox and wait for deployments"
"Check the extension deployment status for Fabrikam in Production"๐ ๏ธ Available Tools (34 Total)
The MCP server exposes 33 administrative tools organized by category:
๐ Authentication & Tenant Management (2 tools)
Tool | Description |
| Get authentication token with intelligent caching |
| Retrieve tenant ID from tenant name |
๐ Environment Management (10 tools)
Tool | Description |
| List all BC environments in a tenant |
| Create a new BC environment |
| Copy an existing environment to create a new one |
| Delete a Business Central environment |
| Get update window settings for an environment |
| Configure update window for an environment |
| Set Application Insights connection string |
| Get storage usage for a specific environment |
| Get storage usage for all environments |
| List companies in an environment |
๐ฆ Application Management (6 tools)
Tool | Description |
| List apps installed in an environment |
| Check for available app updates |
| Install a Marketplace (AppSource) app in a Business Central environment |
| Update an app to a specific version |
| Remove an app from an environment |
| Get status of app install/update/uninstall operations |
๐ Environment Updates (2 tools)
Tool | Description |
| Check for available BC version updates |
| Schedule or run an environment update |
๐ฅ Session Management (2 tools)
Tool | Description |
| List active user sessions in an environment |
| Terminate a specific active session |
๐ Notification Management (3 tools)
Tool | Description |
| List notification recipients |
| Add a new notification recipient |
| Remove a notification recipient |
๐ง Feature Management (3 tools)
Tool | Description |
| List available features in an environment |
| Activate a feature in a Business Central environment |
| Deactivate a feature in a Business Central environment |
๐งฉ Extension Deployment & PTE Uploads (4 tools)
Tool | Description |
| Get extension deployment status for an environment/company |
| Create and upload a single PTE (.app) file |
| Bulk upload PTEs from a folder, waiting for each deployment |
| Retrieve the status of a specific extension upload task |
๐งน Token Management (2 tools)
Tool | Description |
| Clear cached authentication token for a tenant |
| View cached token status for all tenants |
๐ฏ Quick Start
Install the package:
npm install -g @demiliani/d365bc-admin-mcp๐ Need detailed installation instructions? See the Installation Guide for platform-specific steps (Windows, macOS, Linux) and troubleshooting.
Configure your AI assistant (see Configuration section above)
Start using it:
Open your AI assistant (Claude, Copilot, or Cursor)
Type: "Show me all my Business Central environments"
Authenticate when prompted (first time only)
Start managing your BC environments with natural language!
๐ Documentation
For detailed installation documentation, see:
Installation Guide - Detailed installation steps
๐ Troubleshooting
"Command not found: d365bc-admin-mcp"
npm install -g @demiliani/d365bc-admin-mcp
which d365bc-admin-mcpAuthentication Issues
Ensure you have Business Central admin privileges
Check that you're signing in with the correct Microsoft account
Try clearing the token cache: "Clear cached token for tenant [tenant-id]"
MCP Server Not Appearing
Verify the config file location for your OS
Check for JSON syntax errors in the config
Restart your AI assistant completely
Check the assistant's logs for error messages
๐ค Contributing
Contributions are welcome! Please feel free to submit issues, feature requests, or pull requests.
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
๐ฎ Support
npm Package: https://www.npmjs.com/package/@demiliani/d365bc-admin-mcp
Issues: Report bugs or request features via GitHub Issues
Version: 1.2.0
๐ Acknowledgments
Built with:
Model Context Protocol - Standard for AI assistant integrations
Azure Identity - Microsoft authentication
Business Central Admin API - BC administration
Made with โค๏ธ for the Dynamics 365 Business Central community
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/demiliani/D365BCAdminMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server