MCP Ecommerce
Magento logo

Installation guide

How to install Magento MCP Server (community)

In Claude, ChatGPT, Gemini, Microsoft Copilot, Perplexity, Cursor and Claude Code, with what to check before you start and the first prompts to run.

This is a community-built, local MCP server. You clone the repository, build it with Node.js, and your MCP client launches it over stdio with `node`. It authenticates to Magento 2 or Adobe Commerce through an Integration (OAuth 1.0), using four credentials passed as environment variables. There is no hosted endpoint. It includes write tools, and it is not vendor-supported.

A developer with Magento Admin access to System > Integrations should do this, ideally with a staging copy of the store first. Read the source before running it, because it holds admin-level credentials. Create a dedicated integration with only the API resources you need, and start with read-only resources where Magento allows it.

Magento MCP Server (community) setup guide: Community's MCP documentation page on github.com, shown in a browser frame (store platform MCP server for e-commerce)
Magento MCP Server (community) setup guide preview: Community’s documentation on github.com, captured Nov 23, 2026. The page may have changed since; the link opens the live version.

Before you start

  • Node.js 18 or later, plus git and npm
  • A Magento 2 or Adobe Commerce instance, preferably a staging copy, and its base URL for MAGENTO_BASE_URL
  • Magento Admin access to create and activate an Integration under System > Integrations
  • The four OAuth values from that integration: Consumer Key, Consumer Secret, Access Token and Access Token Secret
  • Optional: a Fastly service ID and API token if you want targeted cache purge
How it runs
Local, runs on your machine
Access
Read and write
Server address
Copy it from the vendor documentation

Magento MCP Server (community) in Claude

  1. Clone and build the server: git clone https://github.com/thomastx05/magento-mcp.git, then cd magento-mcp, npm install and npm run build. Review the source first.
  2. In Magento Admin, open System > Integrations > Add New Integration, name it (for example MCP Server), and under API select only the resources you need. Save and Activate it, then copy the four OAuth values.
  3. Open claude_desktop_config.json for Claude Desktop (the docs name this file but not its location, so use the Claude Desktop developer settings to find it).
  4. Add the magento-mcp entry from the snippet. Set command to node, point args to the absolute path of dist/index.js, and fill in the five environment variables.
  5. Fully restart Claude Desktop. The docs describe local config only, so the Claude.ai web connector by URL does not apply to this server.
  6. Start a chat and ask it to run auth.login first, then auth.whoami.
claude_desktop_config.json
{
  "mcpServers": {
    "magento-mcp": {
      "command": "node",
      "args": [
        "/absolute/path/to/magento-mcp/dist/index.js"
      ],
      "env": {
        "MAGENTO_BASE_URL": "https://your-magento-instance.com",
        "MAGENTO_OAUTH_CONSUMER_KEY": "<CONSUMER_KEY>",
        "MAGENTO_OAUTH_CONSUMER_SECRET": "<CONSUMER_SECRET>",
        "MAGENTO_OAUTH_TOKEN": "<ACCESS_TOKEN>",
        "MAGENTO_OAUTH_TOKEN_SECRET": "<ACCESS_TOKEN_SECRET>"
      }
    }
  }
}

Magento MCP Server (community) in ChatGPT

  1. The documentation does not cover ChatGPT. This server is local over stdio and has no public URL, and ChatGPT custom connectors in Developer mode expect a remote MCP server URL.
  2. To use it with ChatGPT you would need to expose the stdio server through a separate proxy or gateway. The docs do not describe this, so check the vendor repository and the ChatGPT documentation before trying it.
  3. Do not expose a server that holds admin-level Magento credentials on a public address without authentication.
  4. Until then, use a client with local stdio support, such as Claude Desktop, Cursor or Claude Code.

Magento MCP Server (community) in Gemini

  1. The documentation does not mention Gemini. Gemini CLI can run local servers through mcpServers in its settings, which is the standard approach.
  2. Clone and build the server: git clone https://github.com/thomastx05/magento-mcp.git, then cd magento-mcp, npm install and npm run build.
  3. Create a limited Magento Integration under System > Integrations and copy the four OAuth values.
  4. Add a magento-mcp entry under mcpServers in the Gemini CLI settings JSON, using the same command, args and env values as in the snippet.
  5. Restart Gemini CLI, then ask it to run auth.login and auth.whoami. Gemini app extensions are not covered by the docs.
Gemini CLI settings (mcpServers)
{
  "mcpServers": {
    "magento-mcp": {
      "command": "node",
      "args": [
        "/absolute/path/to/magento-mcp/dist/index.js"
      ],
      "env": {
        "MAGENTO_BASE_URL": "https://your-magento-instance.com",
        "MAGENTO_OAUTH_CONSUMER_KEY": "<CONSUMER_KEY>",
        "MAGENTO_OAUTH_CONSUMER_SECRET": "<CONSUMER_SECRET>",
        "MAGENTO_OAUTH_TOKEN": "<ACCESS_TOKEN>",
        "MAGENTO_OAUTH_TOKEN_SECRET": "<ACCESS_TOKEN_SECRET>"
      }
    }
  }
}

Magento MCP Server (community) in Microsoft Copilot

  1. The documentation does not cover Microsoft Copilot Studio or GitHub Copilot. For GitHub Copilot in VS Code, the standard way to add a local server is .vscode/mcp.json.
  2. Clone and build the server: git clone https://github.com/thomastx05/magento-mcp.git, then cd magento-mcp, npm install and npm run build.
  3. Create a limited Magento Integration and copy the four OAuth values.
  4. In .vscode/mcp.json, add a magento-mcp entry under servers with command set to node and args pointing to dist/index.js. Keep real secrets out of any file committed to version control.
  5. Start the server from VS Code, then in Copilot Chat agent mode ask it to run auth.login and auth.whoami.
  6. Copilot Studio expects a remote endpoint, which this local server does not provide.
.vscode/mcp.json
{
  "servers": {
    "magento-mcp": {
      "command": "node",
      "args": [
        "/absolute/path/to/magento-mcp/dist/index.js"
      ],
      "env": {
        "MAGENTO_BASE_URL": "https://your-magento-instance.com",
        "MAGENTO_OAUTH_CONSUMER_KEY": "<CONSUMER_KEY>",
        "MAGENTO_OAUTH_CONSUMER_SECRET": "<CONSUMER_SECRET>",
        "MAGENTO_OAUTH_TOKEN": "<ACCESS_TOKEN>",
        "MAGENTO_OAUTH_TOKEN_SECRET": "<ACCESS_TOKEN_SECRET>"
      }
    }
  }
}

Magento MCP Server (community) in Perplexity

  1. The documentation does not mention Perplexity. Perplexity desktop connectors are added through the app's connector settings, and support for local commands depends on your app version.
  2. Clone and build the server: git clone https://github.com/thomastx05/magento-mcp.git, then cd magento-mcp, npm install and npm run build.
  3. In the Perplexity desktop app, open the connectors or MCP settings and look for an option to add a local server by command.
  4. If it is offered, enter node as the command, the absolute path to dist/index.js as the argument, and the five environment variables from the vendor README.
  5. If only remote URLs are accepted, this server cannot be added directly. Use another client.
  6. After adding it, ask the assistant to run auth.login and auth.whoami.

Magento MCP Server (community) in Cursor

  1. Clone and build the server: git clone https://github.com/thomastx05/magento-mcp.git, then cd magento-mcp, npm install and npm run build. Review the source first.
  2. Create a limited Magento Integration under System > Integrations, activate it, and copy the four OAuth values.
  3. Open Cursor MCP settings, or edit .cursor/mcp.json in your project or ~/.cursor/mcp.json globally. The README names Cursor as compatible but gives no Cursor-specific steps.
  4. Add the magento-mcp entry from the snippet with the absolute path to dist/index.js and the five environment variables.
  5. Reload Cursor and confirm the server shows as enabled in MCP settings.
  6. In chat, ask it to run auth.login, then auth.whoami.
mcp.json
{
  "mcpServers": {
    "magento-mcp": {
      "command": "node",
      "args": [
        "/absolute/path/to/magento-mcp/dist/index.js"
      ],
      "env": {
        "MAGENTO_BASE_URL": "https://your-magento-instance.com",
        "MAGENTO_OAUTH_CONSUMER_KEY": "<CONSUMER_KEY>",
        "MAGENTO_OAUTH_CONSUMER_SECRET": "<CONSUMER_SECRET>",
        "MAGENTO_OAUTH_TOKEN": "<ACCESS_TOKEN>",
        "MAGENTO_OAUTH_TOKEN_SECRET": "<ACCESS_TOKEN_SECRET>"
      }
    }
  }
}

Magento MCP Server (community) in Claude Code

  1. Clone and build the server: git clone https://github.com/thomastx05/magento-mcp.git, then cd magento-mcp, npm install and npm run build. Review the source first.
  2. Create a limited Magento Integration under System > Integrations, activate it, and copy the four OAuth values.
  3. Register the server with claude mcp add, passing the five environment variables with -e and using node with the absolute path to dist/index.js, as in the snippet. The docs do not cover Claude Code, so this uses the standard local-server form.
  4. Run claude mcp list to confirm magento-mcp is registered, then start claude.
  5. Ask it to run auth.login first, then auth.whoami.
Terminal
claude mcp add magento-mcp \
  -e MAGENTO_BASE_URL=https://your-magento-instance.com \
  -e MAGENTO_OAUTH_CONSUMER_KEY=<CONSUMER_KEY> \
  -e MAGENTO_OAUTH_CONSUMER_SECRET=<CONSUMER_SECRET> \
  -e MAGENTO_OAUTH_TOKEN=<ACCESS_TOKEN> \
  -e MAGENTO_OAUTH_TOKEN_SECRET=<ACCESS_TOKEN_SECRET> \
  -- node /absolute/path/to/magento-mcp/dist/index.js

Check that it works

Start with questions that only read data. If these answer from your real account, the connection is good.

  • Run `auth.login`, then `auth.whoami`, and tell me which authentication method and session the server reports.
  • Use `scope.list_websites_stores` to list the websites and store views on this Magento instance.
  • Use `catalog.search_products` to find five products by name and show their SKUs, without changing anything.

Troubleshooting

+

The client does not list the server or shows it as failed. What should I check?

Confirm `npm run build` finished and that `dist/index.js` exists. Use an absolute path in `args`, since relative paths often fail. Check that Node.js is version 18 or later with `node --version`, and that the JSON is valid. Then fully restart the client, not just the chat window.

+

auth.login fails or Magento returns authorization errors. What is wrong?

Check that `MAGENTO_BASE_URL` matches your store, with no typo or wrong scheme. Confirm the integration is activated and all four OAuth values are copied into the correct variables. If a tool returns permission denied, the integration probably lacks that API resource under `System > Integrations`, since Magento ACL applies.

+

A bulk update or write tool did not apply my change. Why?

Bulk operations use two phases. A prepare call creates a plan for review, and a separate commit call applies it. Guardrails such as `maxSkusPerBulkCommit` (default 500) and the price change threshold can also block or warn. Limits are set in `src/config/index.ts`. Test on staging and review any changes there before use.

Written Nov 23, 2026 from the vendor documentation. Exact menus, addresses and commands change; the official documentation is the source of truth.

Questions and answers

Questions readers and searchers ask about installing Magento MCP Server (community), answered by the site editor from the vendor documentation, plus reader experience. Every comment is reviewed before it appears.

Ask a question or share what worked

Reviewed before publishing. One link max, no HTML.