Microsoft Dynamics 365

v1.0.0Business Applicationsstable

This workshop teaches you to build a complete MCP (Model Context Protocol) server with STDIO transport for Claude Desktop, integrated with Microsoft Dynamics 365 Business Central.

albusinesscentralmcp-serverpython
Share:
10
Stars
0
Downloads
0
Weekly
0/5

What is Microsoft Dynamics 365?

Microsoft Dynamics 365 is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to this workshop teaches you to build a complete mcp (model context protocol) server with stdio transport for claude desktop, integrated with microsoft dynamics 365 business central.

This workshop teaches you to build a complete MCP (Model Context Protocol) server with STDIO transport for Claude Desktop, integrated with Microsoft Dynamics 365 Business Central.

This server falls under the Business Applications category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • This workshop teaches you to build a complete MCP (Model Con

Use Cases

Build MCP servers for Microsoft Dynamics 365 Business Central.
Learn to create STDIO transport MCP servers for Claude Desktop.
javiarmesto

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 1, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx workshop-mcp-server-directions-lab

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Microsoft Dynamics 365

This workshop project teaches you to build a complete MCP server with STDIO transport for Claude Desktop integrated with Microsoft Dynamics 365 Business Central, exposing six tools for querying customers, items, sales orders, and exchange rates. It includes mock data mode for learning without Business Central credentials and automated setup scripts for both Windows and macOS/Linux.

Prerequisites

  • Python 3.9+ with pip installed
  • Claude Desktop application installed
  • Azure App Registration with Business Central API permissions (client ID, client secret, tenant ID) — optional; mock data mode works without this
  • Microsoft Dynamics 365 Business Central environment name and company GUID — optional for mock mode
  • Git to clone the repository
1

Clone the repository

Clone the workshop repository from GitHub. This project is a hands-on lab and must be run from source.

git clone https://github.com/javiarmesto/Workshop-MCP-Server-Directions-Lab.git
cd Workshop-MCP-Server-Directions-Lab
2

Run the automated setup script

Use the provided setup script to create the virtual environment and install all dependencies automatically. Use the appropriate script for your OS.

# macOS/Linux:
chmod +x setup.sh
./scripts/setup.sh

# Windows PowerShell:
.\setup.ps1
3

Manual setup (alternative)

If the automated script is unavailable, create a virtual environment and install dependencies manually.

python -m venv workshop-env
source workshop-env/bin/activate  # Windows: workshop-env\Scripts\activate
pip install -r requirements.txt
4

Configure environment variables

Copy the example .env file and fill in your Azure and Business Central credentials. The server runs in mock data mode if these are omitted, which is sufficient for learning the MCP server concepts.

cp .env.example .env

# Contents of .env (all required for live BC connection):
AZURE_TENANT_ID=your-azure-tenant-id
AZURE_CLIENT_ID=your-app-registration-client-id
AZURE_CLIENT_SECRET=your-client-secret
BC_ENVIRONMENT=production
BC_COMPANY_ID=your-company-guid
5

Configure Claude Desktop

Run the automated configure script to update claude_desktop_config.json, or edit it manually. Replace YOUR_PYTHON_PATH with the absolute path to the virtual environment Python binary.

# Automated (Windows):
.\configure_claude.ps1

# Manual edit of claude_desktop_config.json:
{
  "mcpServers": {
    "bc-workshop-server": {
      "command": "/absolute/path/to/workshop-env/bin/python",
      "args": ["server.py"],
      "cwd": "/absolute/path/to/Workshop-MCP-Server-Directions-Lab",
      "env": {
        "PYTHONPATH": "/absolute/path/to/Workshop-MCP-Server-Directions-Lab"
      }
    }
  }
}
6

Test the server

Run the included test script to verify the server and its six tools are working before connecting Claude Desktop.

python ./test_server.py
7

Restart Claude Desktop

Restart Claude Desktop to load the MCP server. The server will use mock data automatically if Business Central credentials are not configured.

Microsoft Dynamics 365 Examples

Client configuration

claude_desktop_config.json entry for the Business Central workshop MCP server with environment variables for Azure authentication.

{
  "mcpServers": {
    "bc-workshop-server": {
      "command": "/path/to/workshop-env/bin/python",
      "args": ["server.py"],
      "cwd": "/path/to/Workshop-MCP-Server-Directions-Lab",
      "env": {
        "AZURE_TENANT_ID": "your-tenant-id",
        "AZURE_CLIENT_ID": "your-client-id",
        "AZURE_CLIENT_SECRET": "your-secret",
        "BC_ENVIRONMENT": "production",
        "BC_COMPANY_ID": "your-company-guid",
        "PYTHONPATH": "/path/to/Workshop-MCP-Server-Directions-Lab"
      }
    }
  }
}

Prompts to try

Sample prompts for the six Business Central tools exposed by the workshop MCP server.

- "Get the list of customers from Business Central"
- "Show me all items in the Business Central catalog"
- "Retrieve the latest sales orders from Business Central"
- "What are the current currency exchange rates in Business Central?"
- "Analyze customer metrics and summarize total outstanding balances"
- "Evaluate vendor performance based on the vendor analysis data"

Troubleshooting Microsoft Dynamics 365

Azure authentication fails with AADSTS errors

Verify AZURE_TENANT_ID, AZURE_CLIENT_ID, and AZURE_CLIENT_SECRET are correct. Ensure the Azure App Registration has been granted Business Central API permissions and that admin consent has been given in the Azure portal.

Server starts but returns mock data instead of live Business Central data

This is expected behavior when BC credentials are missing or invalid. Check that all five environment variables (AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, BC_ENVIRONMENT, BC_COMPANY_ID) are correctly set in the .env file or in the claude_desktop_config.json env block.

test_server.py fails with ModuleNotFoundError

Activate the virtual environment before running the test script (source workshop-env/bin/activate on macOS/Linux). Ensure pip install -r requirements.txt completed without errors inside the activated environment.

Frequently Asked Questions about Microsoft Dynamics 365

What is Microsoft Dynamics 365?

Microsoft Dynamics 365 is a Model Context Protocol (MCP) server that this workshop teaches you to build a complete mcp (model context protocol) server with stdio transport for claude desktop, integrated with microsoft dynamics 365 business central. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Microsoft Dynamics 365?

Follow the installation instructions on the Microsoft Dynamics 365 GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Microsoft Dynamics 365?

Microsoft Dynamics 365 works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Microsoft Dynamics 365 free to use?

Yes, Microsoft Dynamics 365 is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Microsoft Dynamics 365 Alternatives — Similar Business Applications Servers

Looking for alternatives to Microsoft Dynamics 365? Here are other popular business applications servers you can use with Claude, Cursor, and VS Code.

n8n

189.1k

A comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and dou

LobeHub

77.5k

🤯 LobeHub is your Chief Agent Operator, organizing your agents into 7×24 operations by hiring, scheduling, and reporting on your entire AI team.

Jeecgboot

46.4k

AI 低代码平台,「低代码 + 零代码」双模式驱动:低代码一键生成前后端代码,零代码 5 分钟搭建系统,AI Skills 一句话画流程、设计表单、生成整套系统。内置 AI聊天、知识库、流程编排、MCP插件等,兼容主流大模型。引领「AI 生成 → 在线配置 → 代码生成 → 手工合并->AI修改」开发模式,消除 Java 项目 80% 的重复工作,提效而不失灵活。

CowAgent

44.7k

CowAgent (chatgpt-on-wechat) 是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、通过长期记忆和知识库不断成长,比OpenClaw更轻量和便捷。同时支持微信、飞书、钉钉、企微、QQ、公众号、网页等接入,可选择DeepSeek/OpenAI/Claude/Gemini/ MiniMax/Qwen/GLM/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助理和企业数字员工。

Minds Platform

39.2k

Platform dedicated to building an open foundation for applied Artificial Intelligence, designed for people seeking production-ready AI systems they can truly control, extend and deploy anywhere.

Astrbot

32.8k

AI Agent Assistant & development framework that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨

Browse More Business Applications MCP Servers

Explore all business applications servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "workshop-mcp-server-directions-lab": { "command": "npx", "args": ["-y", "workshop-mcp-server-directions-lab"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Microsoft Dynamics 365?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides