Skip to main content
Glama
Midhun-edv

Magento 2 Coding Standards MCP

by Midhun-edv

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MAGENTO_MCP_THEME_DIRNoOptional environment variable to override the default directory for custom theme standards (~/.magento-mcp/themes/).

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
get_magento_pattern

Get the correct Magento 2 way to accomplish a task. Returns the proper pattern, code example, and what to avoid. Use this for "vibe coding" - writing Magento-compliant code naturally.

validate_code

Validate code against Magento 2 coding standards. Returns violations with severity, line numbers, and fix suggestions.

check_security

Perform security-focused validation on code. Checks for XSS vulnerabilities, SQL injection risks, insecure functions, and other security issues.

explain_rule

Get detailed explanation of a Magento coding standard rule including reasoning, bad/good examples, and fix suggestions.

list_rules

List all Magento coding standard rules. Can filter by category (Security, Legacy, PHP, Functions, Templates, Less, etc.), minimum severity (1-10), or search term.

get_rules_summary

Get a summary of all Magento coding standard rules grouped by category, showing counts of errors and warnings.

manage_theme

Manage theme-specific coding standards. Themes layer additional rules on top of base Magento standards. Built-in presets: hyva (Alpine.js + TailwindCSS), luma (jQuery + RequireJS + LESS), breeze (Vanilla JS), porto (Luma-based + Porto widgets). Custom themes can be added as JSON files.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Midhun-edv/magento2-coding-standards-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server