Skip to main content

Claude Code

Claude Code is Anthropic's CLI tool for AI-assisted development.

Run the following command in your terminal:

claude mcp add --transport http <server-key> <mcp-server-url>

Replace <server-key> with a name for this connection (e.g., my-store) and <mcp-server-url> with the MCP Server URL from the MCP Info tab in Magento admin.

Complete the authentication steps in the browser window that opens.

tip

You can add a --scope flag to control where the server is registered:

  • --scope user — available globally across all projects
  • --scope project — available only in the current project directory

Manual setup

Add the following to .mcp.json in your project directory, or to ~/.claude.json for global access:

{
"mcpServers": {
"<server-key>": {
"type": "http",
"url": "<mcp-server-url>"
}
}
}

If adding to an existing file, merge the mcpServers section into the corresponding section of the file.


Documentation