iranimij / magento-mcp
A Magento 2 module that provides MCP features.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- magento/framework: ^103.0
- php-mcp/server: *
README
Magento 2 MCP server
Iranimij_McpServer
This module provides general MCP features for Magento 2.
Installation
composer require iranimij/magento-mcp
Tools
This server exposes the following tools. Click each tool for detailed documentation:
- get-product-details: Fetch product details for a given product ID from the Magento API.
- get-todays-orders: Fetch all orders placed today from the Magento API.
- create-customer: Create a new customer in Magento.
- create-simple-product: Create a new simple product in Magento.
- search-product-details: Search for product details by SKU, name, or ID from the Magento API.
Example Output
Below is an example output for a product search using the search-product-details
tool:
AI client configuration (Cursor, etc.)
"testServer": { "command": "npx", "args": ["@iranimij/magento-mcp-remote-server"], "env": { "MAGENTO_API_URL": "https://app.magento.test/", "MAGENTO_ADMIN_USERNAME": "admin", "MAGENTO_ADMIN_PASSWORD": "admin1234" } },
Make sure to put your magento URL in MAGENTO_API_URL
.
Future useful prompts:
- Send client names
- Send client addresses
- Send order details
- Send order items
- Send order totals
- Send order shipping details
- Send order payment details
- Send order status
- Send order history
- create order
- create admin
- create product
- create category
- create customer
- Send blog posts
The remote server
This modules remote server https://github.com/iranimij/mcp-node-server works with this module to provide a remote MCP server for Magento 2. It is designed to work with the Model Context Protocol (MCP) and provides a CLI server that exposes tools for demonstration and fetching product details from a Magento backend.