Magento 2 Development MCP Server
Enables AI agents to interact with Magento 2 development environments through comprehensive tools for module management, database operations, cache control, configuration management, and system diagnostics. Supports complete development workflows from module creation to deployment and troubleshooting.
README
Magento 2 Development MCP Server
A Model Context Protocol (MCP) server for Magento 2 development, designed to integrate with AI agents like Claude, Cursor, Continue.dev, and Augment Code.
<img width="690" height="705" alt="image" src="https://github.com/user-attachments/assets/491e4f5d-d145-46b7-a509-56982508199a" />
Installation
Using npx
npx -y @elgentos/magento2-dev-mcp
Quick Start
- Add to your AI agent's MCP configuration:
{
"mcpServers": {
"magento2-dev": {
"command": "npx",
"args": ["-y", "@elgentos/magento2-dev-mcp"]
}
}
}
-
Restart your AI agent to load the MCP server
-
Start using Magento 2 development tools through your AI agent!
See AI Platform Configuration Examples for platform-specific setup instructions.
Features
DI & Module Tools
<details> <summary><strong>get-di-preferences</strong> - Get Magento 2 dependency injection preferences list</summary>
Parameters:
scope(optional): The scope to get DI preferences for- Options:
global,adminhtml,frontend,crontab,webapi_rest,webapi_soap,graphql,doc,admin - Default:
global
- Options:
Available Scopes:
global- Global scope (default)adminhtml- Admin areafrontend- Frontend/storefront areacrontab- Cron job execution contextwebapi_rest- REST API contextwebapi_soap- SOAP API contextgraphql- GraphQL API contextdoc- Documentation contextadmin- Admin context (alternative to adminhtml)
</details>
<details> <summary><strong>dev-module-list</strong> - List all Magento 2 modules and their status</summary>
Parameters:
format(optional): Output format (table,json,csv) - Default:tableenabled(optional): Show only enabled modulesdisabled(optional): Show only disabled modules
</details>
<details> <summary><strong>dev-module-observer-list</strong> - List all Magento 2 module observers</summary>
Parameters:
format(optional): Output format (table,json,csv) - Default:tableevent(optional): Filter by specific event name
</details>
<details> <summary><strong>dev-theme-list</strong> - List all available Magento 2 themes</summary>
Parameters:
format(optional): Output format (table,json,csv) - Default:table
</details>
<details> <summary><strong>dev-module-create</strong> - Create and register a new Magento 2 module</summary>
Parameters:
vendorNamespace(required): Namespace (your company prefix)moduleName(required): Name of your moduleminimal(optional): Create only module fileaddBlocks(optional): Add blocksaddHelpers(optional): Add helpersaddModels(optional): Add modelsaddSetup(optional): Add SQL setupaddAll(optional): Add blocks, helpers and modelsenable(optional): Enable module after creationmodman(optional): Create all files in folder with a modman fileaddReadme(optional): Add a readme.md file to generated moduleaddComposer(optional): Add a composer.json file to generated moduleaddStrictTypes(optional): Add strict_types declaration to generated PHP filesauthorName(optional): Author for readme.md or composer.jsonauthorEmail(optional): Author email for readme.md or composer.jsondescription(optional): Description for readme.md or composer.json
Example Usage:
{
"name": "dev-module-create",
"arguments": {
"vendorNamespace": "MyCompany",
"moduleName": "CustomModule",
"addAll": true,
"enable": true,
"addReadme": true,
"addComposer": true,
"authorName": "John Doe",
"authorEmail": "john@example.com",
"description": "A custom Magento 2 module"
}
}
</details>
System Diagnostics
<details> <summary><strong>sys-info</strong> - Get Magento 2 system information</summary>
Parameters:
format(optional): Output format (table,json,csv) - Default:table
</details>
<details> <summary><strong>sys-check</strong> - Check Magento 2 system requirements and configuration</summary>
Parameters: None
</details>
Cache Management
<details> <summary><strong>Cache Management Tools</strong> - Complete cache management suite</summary>
Available Tools:
cache-clean- Clear specific or all cachescache-flush- Flush specific or all cachescache-enable- Enable specific cache typescache-disable- Disable specific cache typescache-status- Check cache statuscache-view- Inspect cache entries
See Cache Types Reference for details.
</details>
Configuration Management
<details> <summary><strong>config-show</strong> - View Magento 2 system configuration values</summary>
Parameters:
path(optional): Configuration path to showscope(optional): Configuration scope (default, website, store)scopeId(optional): Scope ID (website ID or store ID)
</details>
<details> <summary><strong>config-set</strong> - Set Magento 2 system configuration values</summary>
Parameters:
path(required): Configuration path to setvalue(required): Value to setscope(optional): Configuration scopescopeId(optional): Scope IDencrypt(optional): Encrypt the value
</details>
<details> <summary><strong>config-store-get / config-store-set</strong> - Store-specific configuration management tools</summary>
Store-specific configuration management for getting and setting configuration values at the store level.
</details>
Database Tools
<details> <summary><strong>db-query</strong> - Execute SQL queries directly on Magento 2 database</summary>
Parameters:
query(required): SQL query to executeformat(optional): Output format (table,json,csv) - Default:table
</details>
Setup & Deployment
<details> <summary><strong>setup-upgrade</strong> - Run Magento 2 setup upgrade to update database schema and data</summary>
Parameters:
keepGenerated(optional): Keep generated files during upgrade
</details>
<details> <summary><strong>setup-di-compile</strong> - Compile Magento 2 dependency injection configuration</summary>
Parameters: None
</details>
<details> <summary><strong>setup-db-status</strong> - Check database status to see if setup:upgrade is needed</summary>
Parameters: None
</details>
<details> <summary><strong>setup-static-content-deploy</strong> - Deploy Magento 2 static content and assets</summary>
Parameters:
languages(optional): Languages to deploythemes(optional): Themes to deployjobs(optional): Number of parallel jobsforce(optional): Force deployment
</details>
Store Management
<details> <summary><strong>sys-store-list</strong> - List all Magento 2 stores, websites, and store views</summary>
Parameters:
format(optional): Output format (table,json,csv) - Default:table
</details>
<details> <summary><strong>sys-store-config-base-url-list</strong> - List all base URLs for Magento 2 stores</summary>
Parameters:
format(optional): Output format (table,json,csv) - Default:table
</details>
<details> <summary><strong>sys-url-list</strong> - Get all Magento 2 URLs</summary>
Parameters:
format(optional): Output format (table,json,csv) - Default:tablestoreId(optional): Store ID to filter URLs
</details>
<details> <summary><strong>sys-website-list</strong> - List all Magento 2 websites</summary>
Parameters:
format(optional): Output format (table,json,csv) - Default:table
</details>
Cron Management
<details> <summary><strong>sys-cron-list</strong> - List all Magento 2 cron jobs and their configuration</summary>
Parameters:
format(optional): Output format (table,json,csv) - Default:table
</details>
<details> <summary><strong>sys-cron-run</strong> - Run Magento 2 cron jobs</summary>
Parameters:
job(optional): Specific cron job to rungroup(optional): Cron group to run
</details>
License
MIT License - see LICENSE file for details.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。