Download the PHP package adwise/magento2-mcp without Composer
On this page you can find all versions of the php package adwise/magento2-mcp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download adwise/magento2-mcp
More information about adwise/magento2-mcp
Files in adwise/magento2-mcp
Package magento2-mcp
Short Description A lightweight Magento MCP (Model Context Protocol) server.
License MIT
Informations about the package magento2-mcp
Adwise_Mcp
A lightweight Magento MCP (Model Context Protocol) server.
Installation
stdio transport
From the Magento project root:
For a local MCP client, configure the command as ddev with arguments:
SSE transport
The server is also available over SSE:
Authentication uses bearer tokens. Send the token with either:
or, for clients that cannot set SSE headers:
The token owner must have the ACL resource Adwise_Mcp::mcp (System > Adwise Magento MCP). Integration tokens also need this resource granted in the integration API permissions.
MCP OAuth discovery and browser login
The SSE endpoint returns a WWW-Authenticate header with a protected resource metadata URL when no token is supplied. Metadata endpoints:
The OAuth authorization endpoint returned by metadata is an adminhtml URL. MCP clients can open it in the browser. Magento will require admin login and the Adwise_Mcp::mcp ACL, then redirect back with an authorization code. The token endpoint exchanges the code for a Magento admin bearer token. Authorization code + PKCE (S256 or plain) is supported.
Included tools
magento_info- Magento name, edition, version, and mode.module_status- List modules or inspect a single module.config_get- Read config values by path and scope.cache- Read cache status, clean cache, or flush cache.indexer_status- List indexer statuses or inspect a single indexer.
Add a tool
- Create a class implementing
Adwise\Mcp\Api\ToolInterface. - Register it in
etc/di.xmlunderAdwise\Mcp\Model\Mcp\JsonRpcServer'stoolsargument. - Run
bin/magento setup:di:compileif generated DI is in use.
Tool results can return any JSON-serializable data. The server wraps that data in an MCP text content response.
All versions of magento2-mcp with dependencies
magento/framework Version ^103.0
magento/module-authorization Version ^100.4
magento/module-integration Version ^100.4