MCP server · Org-owned · Audited from source
Magento 2 LSP MCP server
by mage-os-lab/magento2-lspMIT licenceAudited 8 Oct 2026 · source 2a1617443d2d
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.
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
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
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 2 findings |
L1 Static source | Secrets, path traversal, supply chain | PASS 8 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 1 finding |
L3 Inventory | Declared tools match the source | PASS |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
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-lspat 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
LOWInsecure cryptocrypto.weak_hash · src/cache/symbolsCache.ts:56
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
import { IndexCache } from '../../src/cache/indexCache';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · test/cache/indexCache.test.ts:6
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
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
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
import { DiIndex } from '../../src/index/diIndex';- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · editors/vscode/package.json
vscode-languageclient, @types/vscode, typescript
- Why
- 3 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
LOWSupply chainsupply.unpinned · package.json
@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
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
| Tool | Risk | What it does |
|---|---|---|
magento_get_class_context | read | Get the full Magento context for a PHP class file: resolves the FQCN from the file path, |
magento_get_class_hierarchy | read | Get the class hierarchy for a PHP class: its parent class, implemented interfaces, |
magento_get_db_schema | read | Get the merged database table schema from all db_schema.xml files across modules. |
magento_get_di_config | read | Get the complete DI configuration for a PHP class/interface after Magento config merging. |
magento_get_event_observers | read | Get all observers for a Magento event, or all events handled by an observer class. |
magento_get_module_overview | read | Get an overview of what a Magento module declares: preferences, plugins, virtual types, |
magento_get_plugins_for_method | read | Get all plugins (before/after/around interceptors) for a specific method on a class, |
magento_get_template_overrides | read | Find theme overrides and layout XML usages for a template identifier. |
magento_rescan_project | read | Rescan the Magento project to rebuild the MCP server cache. Call this after creating |
magento_resolve_class | read | Resolve a PHP class: given a file path, returns its FQCN; given a FQCN, returns its file path. |
magento_search_symbols | read | Search 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]
{
"mcpServers": {
"magento2-lsp": {
"command": "npx",
"args": [
"-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
- ✓SAFE B 89 / 100
First audit ·
2a1617443d2d
README badge
For maintainers · updates on every re-audit
[](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?
What tools does Magento 2 LSP expose?
Is Magento 2 LSP safe to connect to an agent?
What credentials does Magento 2 LSP need?
How does Magento 2 LSP run?
How current is this page?
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.
- What is the Magento 2 LSP MCP server?
- What tools does Magento 2 LSP expose?
- Is Magento 2 LSP safe to connect to an agent?