Skip to content

MCP server

Magento 2 LSP

Language Server and MCP server for Magento 2 codebases, exposing merged XML configuration, class and plugin relationships to AI coding agents and editors.

  • Third-party company
  • Runs locally
  • No credentials

Repository and documentation last checked Built from public product pages and documentation. SourcesClaim this listing

ecommerceguide summary

Magento 2 LSP is a language server and MCP server for Magento 2 codebases. The MCP side exposes Magento's merged XML configuration plus class and plugin relationships to AI coding agents, detail no single file holds. It runs locally over stdio with no authentication, installed globally from npm as @mage-os/magento2-lsp or run from Docker on Node 20 or later. Maintained by Mage-OS Lab (Vinai Kopp) under the MIT licence.

Why it stands out

One npm package ships two binaries: an editor language server and an MCP server sharing the same Magento index.

What Magento 2 LSP does

ecommerceguide editorial
  • MCP server exposes merged Magento 2 configuration to AI coding agents
  • Local stdio server, no credentials, runs against a Magento project directory
  • Install globally with npm install -g @mage-os/magento2-lsp
  • Setup documented for Claude Code, Cursor and VS Code
  • Companion LSP gives go-to-definition, references, rename and diagnostics across XML and PHP
  • Indexes active modules from app/etc/config.php and caches parse results
  • MIT licensed, written in TypeScript, Docker option documented

How ecommerce teams could use it

ecommerceguide editorial

Illustrative scenarios written by ecommerceguide from the product's documented capabilities. They are not customer case studies.

  1. Agency team maintaining custom and third-party modules on Magento 2

    Developers need to know how DI preferences and plugin chains resolve across modules

    Intended outcomeThe MCP server hands the coding agent the merged configuration rather than individual XML files

  2. In-house backend team running a Magento 2 store

    Daily edits to layout XML, di.xml and system.xml inside VS Code or Cursor

    Intended outcomeThe language server provides completions, go-to-definition and diagnostics for class references, templates and config paths

  3. Developer using Claude Code on a Magento 2 project

    Tracing which plugins intercept a method and where a config path is declared

    Intended outcomeThe stdio MCP server answers from its local index of active modules, with no credentials to configure

Who it suits

ecommerceguide editorial

Best for

You work on Magento 2 code and want an MIT licensed, locally run MCP server and language server wired into Claude Code, Cursor or VS Code.

Probably not for

You are not on Magento 2, cannot run Node 20 or Docker locally, or need a hosted remote endpoint rather than a stdio process.

Business size
Any stageA free, MIT licensed local package with no pricing tiers or stated audience size.
Verticals
Agencies and services

Technical details

From the vendor's own pages

From the server's repository, documentation and MCP directory listings.

What an agent can do
Store development
Transport
stdio (local)
Authentication
No credentialsNo credentials mentioned; runs locally against a Magento project directory.
Package
@mage-os/magento2-lsp (npm)
Language
TypeScript
Licence
MIT
Repository last updated
8 Jun 2026

Connect Magento 2 LSP

Third-party data

Setup documented for

Install command
npm install -g @mage-os/magento2-lsp

Command as listed on the repository README, not tested by ecommerceguide. Check the repository README (opens in a new tab) for configuration and credentials before running it.

Works with

Ecommerce platforms and services

  • Magento / Adobe Commerce logoMagento / Adobe Commerce

Systems this server reads from or writes to.

Sources

ecommerceguide profiles are built from public product information and written for ecommerce teams. We do not test products, and paying never changes where a listing ranks.

Also listed on MCP Market.

See something incorrect? Report an update