Skip to content
MCP server
Registry

Medusa MCP Server

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

Medusa scores 63 (Good), licensed MIT and written in TypeScript. It installs as a local process. It declares 8 tools. Filed under Uncategorized. GitHub shows 2 stars. Package registries report about 66 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by trhonpavelMITTypeScript2 stars
Trust score
63Good
Trust score 63 of 100, Good

Good trust

63 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 63 comes from

22 + 15 + 2 + 10 + 4 + 10 = 63. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance15 / 20

How recently the repository saw a commit or release.

Maintenance: 15 of 20 points.
Popularity2 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 2 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "trhonpavel-medusa-mcp": {      "command": "npx",      "args": [        "-y",        "medusa-mcp@0.4.0"      ],      "env": {        "MEDUSA_BACKEND_URL": "",        "MEDUSA_API_KEY": "YOUR_MEDUSA_API_KEY",        "MEDUSA_READ_ONLY": "false",        "REPORT_TIMEZONE": "UTC"      }    }  }}

Environment variables

NameRequiredNotes
MEDUSA_BACKEND_URLRequiredURL of your Medusa backend, e.g. https://api.example.com
MEDUSA_API_KEYSecretRequiredSecret API key from Medusa Admin → Settings → Developer → Secret API Keys (sk_…)
MEDUSA_READ_ONLYOptionaltrue = register read and report tools only
REPORT_TIMEZONEOptionalIANA timezone for date filters and report buckets, e.g. Europe/Prague

Tools8Tool docs quality grade D

All capabilities
  • new vs returning customers, repeat purchase rate, top customers, lapsed customers worth winning back

  • regions and currencies, sales channels, stock locations, shipping options and profiles, return and refund reasons

  • sales velocity vs stock: days of cover, out-of-stock / reorder-now / reorder-soon, suggested order quantities, slow movers · interactive restock planner

  • categories (tree), collections, tags, product types

  • customer groups

  • stock per location, lowstockthreshold to find what's running out

  • any Admin API endpoint (GET, POST, DELETE under /admin/) for things without a dedicated tool – reservations, exchanges, tax rates… Read-only mode allows GET only; writes to api-keys, users and invites are always blocked. Turn it off with ME

  • revenue, net revenue after refunds, AOV, units, customers – compared with the previous period or last year, day/week/month series, top products and variants, countries, discount codes, sales channels · interactive dashboard

About

medusa-mcp

🇨🇿 Česky

An MCP server for the Medusa v2 Admin API. It lets Claude, ChatGPT or any MCP client run a Medusa store: orders, payments and refunds, returns, order edits, draft orders, products and catalog, inventory, customers, promotions and price lists – plus sales, customer and restock analytics with interactive dashboards right in the chat.

  • 55 tools for day-to-day store management, and medusa_request for any other Admin API endpoint
  • Interactive views (MCP Apps) – a sales dashboard and a restock planner render inline in Claude and ChatGPT
  • Prompts – ready-made workflows (store briefing, fulfillment, returns, restocking, monthly report…) as slash commands
  • Resources – orders, products and customers as attachable context, with autocompletion
  • Guard rails – previews (dry run) for bulk changes, confirmation dialogs for destructive actions, an audit log of every change

It runs in two modes:

  • stdio – locally for Claude Desktop, Claude Code and other MCP clients
  • Streamable HTTP + OAuth 2.1 – as a remote connector for Claude (web, desktop, mobile) and ChatGPT

It is listed in the MCP Registry as io.github.trhonpavel/medusa-mcp, and also ships as a Claude Code / Cowork plugin with skills and as a one-click Claude Desktop extension (.mcpb).

Tools

Read and analyze

ToolWhat it does
get_store_inforegions and currencies, sales channels, stock locations, shipping options and profiles, return and refund reasons
list_orders / get_orderorders by full-text, date range, customer or status; full detail by ID or order number (1042) with payments, refunds, discount codes and returns
list_customers / get_customercustomers (also by group or e-mail), order history, total spent
list_customer_groupscustomer groups
list_products / get_productproducts by status, collection, category or tag; variants, options, prices, images, inventory items (by ID or handle)
list_catalogcategories (tree), collections, tags, product types
list_inventorystock per location, low_stock_threshold to find what's running out
list_promotions / list_price_listsdiscount codes with conditions, usage and validity; sale and customer-group price lists
sales_reportrevenue, net revenue after refunds, AOV, units, customers – compared with the previous period or last year, day/week/month series, top products and variants, countries, discount codes, sales channels · interactive dashboard
customer_reportnew vs returning customers, repeat purchase rate, top customers, lapsed customers worth winning back
inventory_forecastsales velocity vs stock: days of cover, out-of-stock / reorder-now / reorder-soon, suggested order quantities, slow movers · interactive restock planner

Write (not registered with MEDUSA_READ_ONLY=true)

AreaTools
Fulfillmentcreate_fulfillment (defaults: all remaining items, the only stock location), create_shipment (tracking number), mark_delivered, cancel_fulfillment
Ordersupdate_order (email, addresses, metadata), edit_order (add, change or remove items – previews the new total first), complete_order, cancel_order
Paymentsmark_order_paid (bank transfer, cash on delivery – also for converted draft orders), capture_payment, refund_payment (checks the refundable amount)
Returnscreate_return (defaults to every shipped item), receive_return (puts goods back in stock)
Draft orderscreate_draft_order (items by variant or SKU, custom prices, shipping), convert_draft_order
Productscreate_product (simple or with options and variants, initial stock, defaults for sales channel and shipping profile), update_product, add_product_images (from URLs, copied to the shop's storage), delete_product
Variantscreate_variant (adds new option values automatically), update_variant, delete_variant, set_variant_price (keeps all other prices)
Catalogsave_category, delete_category, save_collection, delete_collection (create or update, add/remove products)
Inventoryset_stock_level (absolute or adjust_by: +10, adds the item to a new location)
Customerssave_customer (create/update, address, groups), save_customer_group, delete_customer_group
Promotionscreate_promotion (percentage, fixed or free shipping; products, categories, collections, customer groups; dates and usage limit), update_promotion, delete_promotion
Price listssave_price_list (sales and B2B prices, upserts prices by variant or SKU), delete_price_list
Bulkbulk_update_prices (percent, amount or fixed price with price endings like 199 or 19.99), bulk_set_stock (deliveries, stock-takes), bulk_update_products (publish, categories, tags, collection, sales channels) – all preview first with dry_run

Generic

ToolWhat it does
medusa_requestany Admin API endpoint (GET, POST, DELETE under /admin/) for things without a dedicated tool – reservations, exchanges, tax rates… Read-only mode allows GET only; writes to api-keys, users and invites are always blocked. Turn it off with MEDUSA_RAW_API=false.

Amounts are in major currency units (Medusa v2 does not store minor units). Plain dates (2026-09-01) are interpreted in REPORT_TIMEZONE (default UTC). Large reports send MCP progress notifications.

Fewer tools, less context: MEDUSA_TOOLSETS=orders,reports registers only those groups (orders, customers, products, catalog, inventory, pricing, promotions, reports, bulk, raw; get_store_info is always on).

Beyond tools

Interactive views (MCP Apps). sales_report and inventory_forecast come with HTML views that clients supporting MCP Apps – Claude, ChatGPT, VS Code, Goose – render inline: KPI tiles with period-over-period changes, a revenue chart, top products, discount codes and countries; and a sortable restock table with status filters, adjustable lead time and a button that asks the assistant to draft a purchase order. The views follow the client's theme and language (Czech or English), switch periods by calling the tools themselves, and make no network requests of their own. Other clients get the same data as text.

Prompts. store_briefing, fulfill_orders, restock_plan, handle_return, customer_overview, monthly_report and plan_promotion – each walks the assistant through a whole workflow and asks before changing anything. Arguments autocomplete (order numbers, customer e-mails, months).

Resources. medusa://store, medusa://orders/{order}, medusa://products/{handle} and medusa://customers/{email} – attach an order or a product to the conversation (e.g. with @ in Claude Code); recent orders are listed and every template autocompletes.

Confirmations. Destructive actions – canceling, refunding, capturing, deleting, bulk changes and writes through medusa_request – ask the user directly through MCP elicitation with a plain-language summary ("Refund 249 CZK to the customer of order 1042?") when the client supports it (Claude Code). A declined dialog changes nothing. Turn it off with MEDUSA_CONFIRM_DESTRUCTIVE=false. The stateless remote connector cannot elicit, so there the client's own tool approval applies.

1. Create a Medusa API key

In the Medusa Admin go to Settings → Developer → Secret API Keys → Create. The key (sk_…) acts with the permissions of the user who created it, so consider a dedicated admin user that you can revoke independently.

2. Local use (stdio)

Claude Code / Cowork plugin

claude plugin marketplace add trhonpavel/medusa-mcp
claude plugin install medusa@medusa-mcp

Claude Code asks for the backend URL and the API key when you enable the plugin (the key goes to the system keychain). Write tools stay off until you turn off Read-only in /config. Besides the server's prompts, the plugin adds two skills:

  • store-briefing – sales vs the previous period, paid orders waiting to ship, what to restock
  • fulfill-orders – fulfill paid orders and add tracking numbers, after you confirm the list

Claude Desktop extension

Download medusa-mcp-<version>.mcpb from the latest release and open it, or drag it to Settings → Extensions. Claude Desktop asks for the same settings and runs the server with its bundled Node.js. Build it yourself with npm run build:mcpb.

Manual configuration

Claude Desktop – claude_desktop_config.json:

{
  "mcpServers": {
    "medusa": {
      "command": "npx",
      "args": ["-y", "medusa-mcp", "stdio"],
      "env": {
        "MEDUSA_BACKEND_URL": "https://api.example.com",
        "MEDUSA_API_KEY": "sk_...",
        "MEDUSA_READ_ONLY": "true"
      }
    }
  }
}

Claude Code:

claude mcp add medusa \
  -e MEDUSA_BACKEND_URL=https://api.example.com -e MEDUSA_API_KEY=sk_... \
  -- npx -y medusa-mcp stdio

3. Remote connector (HTTP + OAuth)

docker run -d --name medusa-mcp -p 127.0.0.1:3000:3000 -v medusa-mcp-data:/data \
  -e MEDUSA_BACKEND_URL=https://api.example.com \
  -e MEDUSA_API_KEY=sk_... \
  -e PUBLIC_URL=https://mcp.example.com \
  -e OWNER_PASSWORD="$(openssl rand -base64 24)" \
  ghcr.io/trhonpavel/medusa-mcp:latest

Or clone the repo, copy .env.example to .env and run docker compose up -d --build.

The server listens on 127.0.0.1:3000; expose it through a reverse proxy with TLS. Claude connects to remote connectors from Anthropic's servers, so the endpoint must be publicly reachable over HTTPS. Caddy example:

mcp.example.com {
    reverse_proxy 127.0.0.1:3000
}

Then add a custom connector in Claude with the URL https://mcp.example.com/mcp. Claude registers itself (Dynamic Client Registration), opens the consent page, you enter OWNER_PASSWORD and click Allow.

ChatGPT

In ChatGPT turn on developer mode in the settings, then create an app (connector) with the MCP server URL https://mcp.example.com/mcp and OAuth authentication. ChatGPT registers itself the same way and redirects to chatgpt.com, which is in the default ALLOWED_REDIRECT_HOSTS. The server returns the RFC 9207 iss parameter, so ChatGPT uses its stable callback URL.

Claude Code

Claude Code can use the same OAuth flow, or a static token if you set MCP_STATIC_TOKEN:

claude mcp add --transport http medusa https://mcp.example.com/mcp \
  --header "Authorization: Bearer <MCP_STATIC_TOKEN>"

Configuration

VariableRequiredDefaultDescription
MEDUSA_BACKEND_URLyesMedusa backend URL
MEDUSA_API_KEYyesSecret API key (sk_…)
MEDUSA_READ_ONLYfalseRegister read and report tools only
MEDUSA_RAW_APItrueRegister the generic medusa_request tool (GET only when read-only)
MEDUSA_TOOLSETSallComma-separated tool groups to register, e.g. orders,reports
MEDUSA_CONFIRM_DESTRUCTIVEtrueAsk for confirmation through MCP elicitation before destructive actions (clients that support it)
AUDIT_LOGFile that receives every write tool call as a JSON line (they always go to stderr too)
REPORT_TIMEZONEUTCIANA timezone for date filters and report buckets
MEDUSA_TIMEOUT_MS20000Timeout for Medusa requests
PUBLIC_URLHTTPPublic HTTPS origin of this server (without /mcp)
OWNER_PASSWORDHTTPPassword required on the consent page
MCP_STATIC_TOKENOptional static bearer token
ALLOWED_REDIRECT_HOSTSclaude.ai,claude.com,chatgpt.com,localhost,127.0.0.1Hosts OAuth clients may use as redirect targets
TRUST_PROXY1Express trust proxy – number of proxies in front
PORT / HOST3000 / 0.0.0.0Listen address
DATA_DIR./dataWhere OAuth clients and token hashes are stored
ACCESS_TOKEN_TTL / REFRESH_TOKEN_TTL3600 / 2592000Token lifetimes in seconds

Endpoints

PathPurpose
POST /mcpMCP over Streamable HTTP (stateless), requires a bearer token
/.well-known/oauth-protected-resource/mcpRFC 9728 protected resource metadata
/.well-known/oauth-authorization-serverRFC 8414 authorization server metadata
/register, /authorize, /token, /revokeOAuth 2.1 (DCR, PKCE S256)
POST /oauth/loginconsent form (rate limited: 10 attempts / 15 min / IP)
GET /healthzhealth check

Security model

  • The Medusa API key never leaves the server. Clients get their own short-lived tokens (1 h access, 30-day refresh with rotation).
  • Only SHA-256 hashes of tokens are stored, in DATA_DIR/oauth-state.json (mode 600). Delete the file to sign out every client.
  • Dynamic Client Registration only accepts redirect URIs on ALLOWED_REDIRECT_HOSTS, so an arbitrary app cannot register its own callback and phish a token.
  • Authorization codes are single-use, expire after 5 minutes, and PKCE S256 is mandatory.
  • The consent page sends Content-Security-Policy: default-src 'none' and X-Frame-Options: DENY, and compares the password in constant time.
  • Write tools are not marked readOnlyHint, and tools that cancel, delete or move money carry destructiveHint, so clients like Claude ask for approval before running them.
  • medusa_request only reaches /admin/… paths, never writes to api-keys, users or invites (so a prompt injection cannot mint new credentials), and can be disabled with MEDUSA_RAW_API=false.
  • Every write tool call is logged as [audit] {…} on stderr (docker logs) – time, tool, OAuth client (e.g. "Claude"), outcome and arguments – and to AUDIT_LOG when set.
  • Destructive actions ask for confirmation through MCP elicitation when the client supports it; bulk tools and edit_order preview by default and change nothing until called with dry_run: false.
  • add_product_images downloads only from public http(s) addresses: private, loopback and link-local targets are refused, also after redirects, so the server cannot be used to reach its own network.
  • The interactive views are self-contained HTML (no external scripts or requests) and are rendered by the client in a sandboxed iframe.
  • Set TRUST_PROXY to the number of reverse proxies in front of the server, otherwise rate limiting only sees the proxy's IP.

See SECURITY.md for reporting vulnerabilities.

Development

npm ci
npm run build   # TypeScript + the MCP Apps views (dist/apps/*.html with the ext-apps runtime inlined)
npm test        # build + tests against a mock Medusa (tools, prompts, resources, views and the full OAuth flow)
npm run smoke   # read-only check against a real Medusa – prints response shapes only, no data
npm run dev     # HTTP mode via tsx

npm run smoke needs MEDUSA_BACKEND_URL and MEDUSA_API_KEY. Its output contains only keys and types, so it is safe to paste into an issue.

License

MIT

Frequently asked questions

What is Medusa MCP Server?

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

How do I install Medusa MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Medusa MCP Server runs locally from the npm package medusa-mcp with the command npx -y medusa-mcp@0.4.0.

Is Medusa MCP Server free and open source?

Yes. Medusa MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Medusa MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Medusa MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does Medusa MCP Server provide?

Medusa MCP Server provides 8 tools, including customer_report, get_store_info, inventory_forecast, and list_catalog. See the full tool list for descriptions and parameters.

How is Medusa MCP Server's trust score calculated?

Medusa MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server