M

Medusa MCP

by trhonpavel · io.github.trhonpavel/medusa-mcp

Provides Claude and other MCP clients with access to the Medusa v2 Admin API, enabling order, customer, product, and inventory management, sales reporting, and carefully scoped write actions. It can run locally over stdio or remotely over Streamable HTTP with OAuth 2.1.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-trhonpavel-medusa-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "medusa-mcp"
      ],
      "env": {
        "MEDUSA_BACKEND_URL": "<VALUE>",
        "MEDUSA_API_KEY": "<YOUR_VALUE>",
        "MEDUSA_READ_ONLY": "false",
        "REPORT_TIMEZONE": "UTC",
        "HOST": "0.0.0.0",
        "PORT": "3000",
        "DATA_DIR": "./data",
        "PUBLIC_URL": "<VALUE>",
        "TRUST_PROXY": "1",
        "OWNER_PASSWORD": "<VALUE>",
        "ACCESS_TOKEN_TTL": "3600",
        "MCP_STATIC_TOKEN": "<VALUE>",
        "MEDUSA_TIMEOUT_MS": "20000",
        "REFRESH_TOKEN_TTL": "2592000",
        "ALLOWED_REDIRECT_HOSTS": "claude.ai,claude.com,localhost,127.0.0.1"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-trhonpavel-medusa-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "medusa-mcp"
      ],
      "env": {
        "MEDUSA_BACKEND_URL": "<VALUE>",
        "MEDUSA_API_KEY": "<YOUR_VALUE>",
        "MEDUSA_READ_ONLY": "false",
        "REPORT_TIMEZONE": "UTC",
        "HOST": "0.0.0.0",
        "PORT": "3000",
        "DATA_DIR": "./data",
        "PUBLIC_URL": "<VALUE>",
        "TRUST_PROXY": "1",
        "OWNER_PASSWORD": "<VALUE>",
        "ACCESS_TOKEN_TTL": "3600",
        "MCP_STATIC_TOKEN": "<VALUE>",
        "MEDUSA_TIMEOUT_MS": "20000",
        "REFRESH_TOKEN_TTL": "2592000",
        "ALLOWED_REDIRECT_HOSTS": "claude.ai,claude.com,localhost,127.0.0.1"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-trhonpavel-medusa-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "medusa-mcp"
      ],
      "env": {
        "MEDUSA_BACKEND_URL": "<VALUE>",
        "MEDUSA_API_KEY": "<YOUR_VALUE>",
        "MEDUSA_READ_ONLY": "false",
        "REPORT_TIMEZONE": "UTC",
        "HOST": "0.0.0.0",
        "PORT": "3000",
        "DATA_DIR": "./data",
        "PUBLIC_URL": "<VALUE>",
        "TRUST_PROXY": "1",
        "OWNER_PASSWORD": "<VALUE>",
        "ACCESS_TOKEN_TTL": "3600",
        "MCP_STATIC_TOKEN": "<VALUE>",
        "MEDUSA_TIMEOUT_MS": "20000",
        "REFRESH_TOKEN_TTL": "2592000",
        "ALLOWED_REDIRECT_HOSTS": "claude.ai,claude.com,localhost,127.0.0.1"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-trhonpavel-medusa-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "medusa-mcp"
      ],
      "env": {
        "MEDUSA_BACKEND_URL": "<VALUE>",
        "MEDUSA_API_KEY": "<YOUR_VALUE>",
        "MEDUSA_READ_ONLY": "false",
        "REPORT_TIMEZONE": "UTC",
        "HOST": "0.0.0.0",
        "PORT": "3000",
        "DATA_DIR": "./data",
        "PUBLIC_URL": "<VALUE>",
        "TRUST_PROXY": "1",
        "OWNER_PASSWORD": "<VALUE>",
        "ACCESS_TOKEN_TTL": "3600",
        "MCP_STATIC_TOKEN": "<VALUE>",
        "MEDUSA_TIMEOUT_MS": "20000",
        "REFRESH_TOKEN_TTL": "2592000",
        "ALLOWED_REDIRECT_HOSTS": "claude.ai,claude.com,localhost,127.0.0.1"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-trhonpavel-medusa-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "medusa-mcp"
      ],
      "env": {
        "MEDUSA_BACKEND_URL": "<VALUE>",
        "MEDUSA_API_KEY": "<YOUR_VALUE>",
        "MEDUSA_READ_ONLY": "false",
        "REPORT_TIMEZONE": "UTC",
        "HOST": "0.0.0.0",
        "PORT": "3000",
        "DATA_DIR": "./data",
        "PUBLIC_URL": "<VALUE>",
        "TRUST_PROXY": "1",
        "OWNER_PASSWORD": "<VALUE>",
        "ACCESS_TOKEN_TTL": "3600",
        "MCP_STATIC_TOKEN": "<VALUE>",
        "MEDUSA_TIMEOUT_MS": "20000",
        "REFRESH_TOKEN_TTL": "2592000",
        "ALLOWED_REDIRECT_HOSTS": "claude.ai,claude.com,localhost,127.0.0.1"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-trhonpavel-medusa-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "medusa-mcp"
      ],
      "env": {
        "MEDUSA_BACKEND_URL": "<VALUE>",
        "MEDUSA_API_KEY": "<YOUR_VALUE>",
        "MEDUSA_READ_ONLY": "false",
        "REPORT_TIMEZONE": "UTC",
        "HOST": "0.0.0.0",
        "PORT": "3000",
        "DATA_DIR": "./data",
        "PUBLIC_URL": "<VALUE>",
        "TRUST_PROXY": "1",
        "OWNER_PASSWORD": "<VALUE>",
        "ACCESS_TOKEN_TTL": "3600",
        "MCP_STATIC_TOKEN": "<VALUE>",
        "MEDUSA_TIMEOUT_MS": "20000",
        "REFRESH_TOKEN_TTL": "2592000",
        "ALLOWED_REDIRECT_HOSTS": "claude.ai,claude.com,localhost,127.0.0.1"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
MEDUSA_BACKEND_URL Yes Medusa backend URL
MEDUSA_API_KEY secret Yes Secret API key (sk_…)
MEDUSA_READ_ONLY No Register read and report tools only Default: false
REPORT_TIMEZONE No IANA timezone for date filters and report buckets Default: UTC
HOST No Listen host Default: 0.0.0.0
PORT No Listen port Default: 3000
DATA_DIR No Where OAuth clients and token hashes are stored Default: ./data
PUBLIC_URL No Public HTTPS origin of this server (without /mcp)
TRUST_PROXY No Express trust proxy – number of proxies in front Default: 1
OWNER_PASSWORD No Password required on the consent page
ACCESS_TOKEN_TTL No Access token lifetime in seconds Default: 3600
MCP_STATIC_TOKEN No Optional static bearer token
MEDUSA_TIMEOUT_MS No Timeout for Medusa requests Default: 20000
REFRESH_TOKEN_TTL No Refresh token lifetime in seconds Default: 2592000
ALLOWED_REDIRECT_HOSTS No Hosts OAuth clients may use as redirect targets Default: claude.ai,claude.com,localhost,127.0.0.1

Similar servers