home / mcp / dynamics365 mcp server
Provides tools to interact with Dynamics 365 Commerce APIs, including customers, carts, orders, products, and store data via an MCP interface.
Configuration
View docs{
"mcpServers": {
"jiantmo-mcp-commerce": {
"command": "python",
"args": [
"/path/to/mcp-commerce/mcp_dynamics365_commerce_server/server.py"
],
"env": {
"DYNAMICS365_BASE_URL": "https://your-commerce-site.com"
}
}
}
}You can run and interact with Dynamics 365 Commerce data through an MCP server that exposes a comprehensive set of tools organized by controller. This server lets AI assistants perform common commerce operations, including customer management, cart and checkout actions, product lookups, store data access, and more, all via a consistent MCP interface.
You will connect your MCP client to the Dynamics 365 Commerce MCP server and invoke tools by name to perform actions such as searching customers, managing carts, viewing order details, and querying products. Start by ensuring the MCP server is running and the client is configured with the correct server entry. Use natural language prompts to request operations (for example, search for a customer by email, fetch a customerβs order history, search for products by criteria, or checkout a cart). The tools are organized into controllers and cover the main Dynamics 365 Commerce API endpoints, enabling you to automate typical workflows without building custom integrations.
Prerequisites: you need Python installed on your system. You may also use a Python environment manager to isolate dependencies.
# Clone the project repository
git clone <repository-url>
cd mcp-commerce
# Install dependencies
pip install -r requirements.txt
# Or install in editable mode for development
pip install -e .Two configuration examples show how to run the server locally via standard input/output (stdio) using Python to execute the server script and set the base URL for Dynamics 365 Commerce.
Get order shipments history for a customer
Create a new customer entity
Update an existing customer entity
Get order history for a customer
Search for customers by various criteria
Get purchase history for a customer
Get customers list from account numbers
Get customer search fields for the store
Search for customers by specified fields
Post non-transactional loyalty points
Get receipts for a sales order based on form types for printing
Get gift receipts for specific sales line numbers
Get sales orders by receipt identifier
Search sales transactions by receipt ID
Search for orders matching given search criteria
Search for orders matching order search criteria
Get sales invoices by sales identifier
Get open order invoices by customer account
Checkout the cart with payment processing
Add cart lines (items) to the cart
Void cart lines in the cart
Update existing cart lines in the cart
Add balance to a gift card
Issue a new gift card
Search for products by various criteria
Get detailed information about a specific product
Get recommended products based on a specific product
Get product availability across different locations
Get store locations within a specific area
Get available inventory for a store/warehouse
Get operating hours for a specific store
Issue a new loyalty card to a customer
Get loyalty card information and status
Get transaction history for a loyalty card
Get information about a specific shift
Open a new shift for an employee
Close an existing shift
Resume a previously suspended shift