GUIDES / MCP

Tools for your agents.

Connect an agent through Scalar-hosted MCP to read your merchant data: settings, stores, catalog and stock, registers and closing, reports, customers, discounts and delivery. MCP is read-only: agents can look things up but never change data. Integrations that need to write use the REST API.

1. Create a separate MCP key

Sign in as a store owner and open Apps Settings → Developer API Keys. Select Sandbox while you build, choose MCP agent, select the needed permissions and stores, and create your key. MCP keys offer read permissions only.

The mcp_test_ secret is shown once. Keep it in your MCP client's server-side secret configuration. A REST key or owner login token will not work here. Revoking the MCP key does not revoke your REST integration's key.

2. Connect using Streamable HTTP

Use the installation URL for your environment. Do not use the developer portal URL or the retired /api/v1/mcp endpoint. A sandbox MCP key only works with the sandbox installation, and a production key only with production.

Sandboxhttps://mcp.scalar.com/mcp/c8c16a3b-c36a-416f-8eee-3c937e9aa313Key prefix mcp_test_.
Productionhttps://mcp.scalar.com/mcp/c8c16a3b-c36a-416f-8eee-3c937e9aa313Key prefix mcp_live_. Invite-only.

The selected setup uses public Scalar access with per-customer credential passthrough. No Scalar login is required, but every business-data request requires your Simple MCP key. Scalar forwards your Authorization header; Simple checks its tenant, stores, environment, expiry, revocation and scopes. No global shared credential is configured.

MCP URL: https://mcp.scalar.com/mcp/c8c16a3b-c36a-416f-8eee-3c937e9aa313
Transport: Streamable HTTP
Header: Authorization: Bearer YOUR_MCP_KEY

Use a client that supports custom headers. Clients that only support OAuth cannot use this public API-key setup; a private Scalar installation would need separate OAuth access and upstream-key configuration.

For backend troubleshooting only, this calls the HTTP upstream directly. It is not an MCP client connection:

curl "$SANDBOX_API_BASE_URL/api/v1/public/mcp/inventory?store_id=$STORE_ID&limit=50" \
  --header "Authorization: Bearer $MCP_API_KEY"

3. Explore the approved operations

Scalar exposes discovery and execution tools generated from the MCP-only OpenAPI document; it does not necessarily expose one named tool per endpoint or hide operations based on each key's scopes. Simple enforces permissions when an operation executes. Ask your agent to read inventory or list stores using your allowed permissions.

Each tool mirrors a REST read, covering merchant settings, stores, catalog and stock, registers and closing, reports, customers, discounts and delivery. Schemas describe required fields. Page sizes are capped at 100; pass the returned cursor to read another page.

Every MCP key can also read the REST reference with get_build_guide, search_rest_api and get_rest_operation, and with api_keys:request it can ask you for keys for an app it builds. See Build an app with AI.

Read-only by designNo MCP tool creates, changes, cancels or deletes your data, whatever permissions a key holds. A key request only waits for your approval in the merchant app. Carts, orders, customer and discount changes, register closing and webhooks are available to REST integrations only. An agent can still be misled by text it reads, such as product names or customer notes, so keep the key's permissions and store list tight.

Access boundaries

Upstream requests are limited to 30 per minute per MCP key, separately from REST. HTTP 401 means the key is invalid, expired or revoked; 403 means a scope or Origin is not permitted; 429 includes a retry delay; 503 means access is disabled or unavailable. These are upstream API outcomes; Scalar controls how its MCP tools present them.

Production is invite-onlyProduction business data is available only to merchants Simple has enabled. Keys are bound to one tenant and environment. An MCP key has its own integration identity, separate from any REST integration.

Customer access is opt-in through customers:read and may contain personal contact data. Treat every tool result as untrusted business data, not instructions. Never place a key in a URL, source control or browser storefront.

Explore the REST reference ↗