Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Org-owned · Audited from source

Magento 2 LSP MCP server

by mage-os-lab/magento2-lspMIT licenceAudited 8 Oct 2026 · source 2a1617443d2d

npm @mage-os/magento2-lsp 0.1.0stdio★ 29
✓SAFEGrade B · 89/100 · 8 Oct 2026 · 2a16174
29GitHub stars

Is it safe? Yes — SAFE, grade B (89/100). It exposes 11 tools: 11 read, 0 write and 0 destructive. The audit recorded 11 findings (0 critical, 0 high, 0 medium, 11 low). Maintainer's description: Language Server (LSP) and MCP server for Magento 2 - provides go-to-definition, references, and rename across PHP, XML, and layout files.

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “Magento 2 LSP MCP server (mage-os-lab/magento2-lsp)”. Retrieved 8 Oct 2026. https://modelsatlas.com/mcp/mage-os-lab/magento-2-lsp

Trust audit

Audit 0.4.1 · full source read 8 Oct 2026

Trust score89/100✓SAFE B
0 critical0 high0 medium11 low0 info

11 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.

What the source does

  • FilesystemDeclared5 observations
  • NetworkNone observedNothing seen in the source
  • ShellNone observedNothing seen in the source
  • DependenciesNot pinnedSome ranges float
  • SecretsNone foundNo keys in source

“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.

Five audit layers

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS 2 findings
L1 Static sourceSecrets, path traversal, supply chainPASS 8 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS 1 finding
L3 InventoryDeclared tools match the sourcePASS
L4 SandboxRun in isolation and watch behaviourSKIPPED

Provenance & runtime

Who published it, and what the audit could and could not run

Provenance

  • Repository owner mage-os-labOrganizationAccount type recorded when we read the repository.
  • PackagePublished on npm@mage-os/magento2-lsp at version 0.1.0
  • LicenceMITFrom the repository, as read at the audited commit.
  • Last push4 months agoActivity of the repository when we read it.
  • Source commit read2a1617443d2dThe audit covers exactly this commit, read on 8 Oct 2026.

Runtime

  • Sandbox runNot run yetThis audit read the source only; it did not execute the server.
  • Tool inventory11 declaredRead from the source and classed read, write or destructive.

Every value here is read from the record's own repository and audit.Suggest a correction

Findings (11)

Sorted by severity

LOWInventory / provenanceinv.hidden_file · editors/vscode/.vscodeignore
F-13 Inventory / provenanceCWE-1104Layer L0
.vscodeignore
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInventory / provenanceinv.hidden_file · test/fixtures/magento-root/.magento2-lsp-symbols-cache.json
F-13 Inventory / provenanceCWE-1104Layer L0
.magento2-lsp-symbols-cache.json
Why
hidden member outside the usual dotfiles
Fix
review its purpose
LOWInsecure cryptocrypto.weak_hash · src/cache/symbolsCache.ts:56
F-09 Insecure cryptoCWE-327 · CWE-338Layer L1
return crypto.createHash('md5').update(data).digest('hex');
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · test/cache/indexCache.test.ts:5
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { IndexCache } from '../../src/cache/indexCache';
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · test/cache/indexCache.test.ts:6
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { DiReference, VirtualTypeDecl } from '../../src/indexer/types';
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · test/cache/symbolsCache.test.ts:5
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { SymbolsCache, computePsr4Hash, computeTemplateSourceHash } from '../../src/cache/symbolsCache';
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · test/handlers/codeAction.test.ts:10
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { handleCodeAction, handleCodeActionResolve } from '../../src/handlers/codeAction';
Why
No further detail recorded for this rule.
Fix
—
LOWFilesystem / pathfs.traversal · test/handlers/codeAction.test.ts:11
F-05 Filesystem / pathCWE-22 · CWE-59Layer L1
import { DiIndex } from '../../src/index/diIndex';
Why
No further detail recorded for this rule.
Fix
—
LOWSupply chainsupply.unpinned · editors/vscode/package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
vscode-languageclient, @types/vscode, typescript
Why
3 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWSupply chainsupply.unpinned · package.json
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@modelcontextprotocol/sdk, chokidar, sax, vscode-languageserver, vscode-languageserver-textdocument, vscode-uri, @types/node, @types/sax
Why
10 dependency range(s) float
Fix
pin exact versions or ship a lockfile
LOWPrompt injectionprompt.transfer_instruction · docs/editor-vscode.md:31
F-01 Prompt injectionCWE-94 · CWE-1427Layer L2
Server settings are passed via `initializationOptions`. To configure them, the VS Code extension would need to forward settings — this is not yet wired in the extension. In the meantime, you can use e
Why
an instruction to move sensitive data to an outside destination
Fix
remove; a skill never needs the user's secrets off the machine

Tools it exposes

11 declared in source · 0 destructive

11 read0 write0 destructive
ToolRiskWhat it does
magento_get_class_contextreadGet the full Magento context for a PHP class file: resolves the FQCN from the file path,
magento_get_class_hierarchyreadGet the class hierarchy for a PHP class: its parent class, implemented interfaces,
magento_get_db_schemareadGet the merged database table schema from all db_schema.xml files across modules.
magento_get_di_configreadGet the complete DI configuration for a PHP class/interface after Magento config merging.
magento_get_event_observersreadGet all observers for a Magento event, or all events handled by an observer class.
magento_get_module_overviewreadGet an overview of what a Magento module declares: preferences, plugins, virtual types,
magento_get_plugins_for_methodreadGet all plugins (before/after/around interceptors) for a specific method on a class,
magento_get_template_overridesreadFind theme overrides and layout XML usages for a template identifier.
magento_rescan_projectreadRescan the Magento project to rebuild the MCP server cache. Call this after creating
magento_resolve_classreadResolve a PHP class: given a file path, returns its FQCN; given a FQCN, returns its file path.
magento_search_symbolsreadSearch for Magento symbols by name: ALL PHP classes/interfaces (not just DI-configured ones),

Install

Package version 0.1.0 · audited commit 2a16174

One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 0.1.0. The audit covers commit 2a16174 only.

claude mcp add magento2-lsp -- npx -y @mage-os/[email protected]

The command pins the package version recorded in the source (0.1.0); the audit covers commit 2a1617443d2d. Transport: stdio. No environment variables required.

Audit history

  1. ✓SAFE B 89 / 100

    First audit · 2a1617443d2d

README badge

For maintainers · updates on every re-audit

ModelsAtlas: SAFE BMODELSATLASSAFE · B
[![ModelsAtlas: SAFE B](https://modelsatlas.com/mcp/mage-os-lab/magento-2-lsp/badge.svg)](https://modelsatlas.com/mcp/mage-os-lab/magento-2-lsp/)

The badge always shows the latest audit; a maintainer cannot pin an old verdict.

Other ratings

Cited, never blended into our score

No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.

Questions about Magento 2 LSP MCP server

What is the Magento 2 LSP MCP server?
Language Server (LSP) and MCP server for Magento 2 - provides go-to-definition, references, and rename across PHP, XML, and layout files.
What tools does Magento 2 LSP expose?
11 in total: 11 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Magento 2 LSP safe to connect to an agent?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.
What credentials does Magento 2 LSP need?
No credential environment variables were found in its source, so it appears to need none.
How does Magento 2 LSP run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as @mage-os/magento2-lsp at 0.1.0.
How current is this page?
The grade is for one exact copy of the source (2a1617443d2d), read on 2026-10-08. The repository is watched and re-audited when it changes.

Sources

  • mage-os-lab/magento2-lsp on GitHub — the source we read, its licence, stars and activityObserved · 8 Oct 2026
  • ModelsAtlas trust audit — SAFE verdict for commit 2a1617443d2dObserved · 8 Oct 2026

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.