Magento MCP Server
Enables to interact with Magento stores through the Magento REST API. Supports product, order, customer, and category management via natural language.
README
Magento MCP Server + Data Fetcher
Python tools to:
- Fetch Magento store data from the CLI (
app.py) - Expose Magento tools to Claude via MCP (
server.py)
Both share the same REST client in magento_client.py.
Setup
cd magento-mcp
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
Copy .env.example to .env and fill in your store details:
MAGENTO_URL=https://your-store.com/rest/V1
ACCESS_TOKEN=your_integration_access_token
Magento Integration Token
- Magento Admin → System → Extensions → Integrations
- Add New Integration
- API tab: set Resource Access = All (or at least Catalog → Products)
- Activate and copy the Access Token
- Put that token in
.envasACCESS_TOKEN - Required on Magento 2.4.4+:
Admin → Stores → Configuration → Services → OAuth → Consumer Settings
Set Allow OAuth Access Tokens to be used as standalone Bearer tokens = Yes
Then run:php bin/magento cache:flush
Without step 6, Magento returns:
The consumer isn't authorized to access Magento_Catalog::products
even when the integration has full API access.
CLI data fetching
python app.py products --limit 10
python app.py products --search shirt
python app.py product WJ12
python app.py orders --limit 5 --status processing
python app.py order 12
python app.py customers
python app.py categories
Add --json on list commands for raw Magento JSON.
MCP server for Claude Desktop
- Install dependencies (see Setup above).
- Open Claude Desktop config:
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Windows:
- Add the server (update the paths):
{
"mcpServers": {
"magento": {
"command": "C:\\Users\\Etech\\Desktop\\magento-mcp\\.venv\\Scripts\\python.exe",
"args": ["C:\\Users\\Etech\\Desktop\\magento-mcp\\server.py"],
"cwd": "C:\\Users\\Etech\\Desktop\\magento-mcp"
}
}
}
- Restart Claude Desktop.
- Ask Claude things like:
- "List the latest Magento products"
- "Show pending orders"
- "Get product details for SKU WJ12"
Available MCP tools
| Tool | Purpose |
|---|---|
list_products |
List / search products |
get_product |
Product by SKU |
create_product |
Create simple product |
update_product_price |
Update price |
update_product_name |
Update product name |
update_product |
Update name and/or price |
delete_product |
Delete by SKU |
list_orders |
List / filter orders |
get_order |
Order by ID |
list_customers |
List customers |
get_customer |
Customer by ID |
list_categories |
Category tree |
Project layout
magento-mcp/
magento_client.py # Shared Magento REST client
server.py # MCP server for Claude
app.py # CLI data fetcher
.env # Your secrets (do not commit)
.env.example # Template
requirements.txt
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.