Skip to main content
The Model Context Protocol (MCP) lets an assistant read catalog or order data, manage products and coupons, or edit theme files. A Paysum API key grants access to one store. The server lists only the tools that the key can call.

Connect

Use Streamable HTTP with an Authorization: Bearer sk_… header. This is the Store MCP endpoint. The docs search MCP is a separate, public endpoint that cannot read or change your store. Never send your store API key to the docs search endpoint.

Connect a client

Set up Cursor, Claude Code, or another Streamable HTTP client.

Tools and scopes

See which tools each key permission enables.

Edit a theme draft

  1. Create a store API key with themes:write. This scope includes themes:read. Review Security before you grant write access.
  2. Call list_theme_files with {"content": false} to see the file paths. Call get_theme_file with the path you want to edit.
  3. Send the complete updated file to write_theme_files in files: [{ "path": "...", "content": "..." }]. Files you do not include stay unchanged.
  4. Call preview_theme to get a temporary preview link. Review the result before you approve publish_theme, which changes your live storefront.
Use this flow for Liquid theme files, such as sections/hero.liquid. Do not use the legacy src/styles.css or src/hosted-overrides.css paths for a draft-only edit. Those paths can update live store styles directly.