Skip to content
VS Code

Medusa for VS Code

io.github.trhonpavel/medusa-mcp

Medusa v2 store: orders, customers, products, inventory, sales reports and safe write actions.

client:VS Code transport:stdio runtime:npm

Install Medusa in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "medusa-backend-url",
      "description": "MEDUSA_BACKEND_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "medusa-api-key",
      "description": "MEDUSA_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "medusa-read-only",
      "description": "MEDUSA_READ_ONLY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "report-timezone",
      "description": "REPORT_TIMEZONE",
      "password": true
    }
  ],
  "servers": {
    "medusa-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "medusa-mcp"
      ],
      "env": {
        "MEDUSA_BACKEND_URL": "${input:medusa-backend-url}",
        "MEDUSA_API_KEY": "${input:medusa-api-key}",
        "MEDUSA_READ_ONLY": "${input:medusa-read-only}",
        "REPORT_TIMEZONE": "${input:report-timezone}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Medusa in other clients