Build an app with your AI assistant.
Connect the Simple MCP to an assistant such as Claude and ask it to build an app on your store data. It reads the REST reference through the MCP, asks you for the keys it needs, and never sees a secret key.
1. Connect your assistant
Create an MCP agent key in Apps Settings → Developer API Keys (sandbox while you build) and connect it as described in MCP tools. Grant the read permissions the assistant needs to see your data, and tick Ask you for API keys for apps it builds (api_keys:request).
Every MCP key can also use the reference tools: get_build_guide, search_rest_api and get_rest_operation. They describe the REST API (endpoints, fields, permissions, idempotency, errors and limits) so the assistant does not guess.
2. Ask for an app
Build me a pickup storefront for my Simple Commerce sandbox.
Start with get_build_guide, then use search_rest_api and get_rest_operation
for every endpoint you use. Request the keys you need with request_api_key.The assistant designs screens around your real sample data, then calls request_api_key for each key the app needs. A browser app gets a publishable key for catalog pages; its server gets a secret REST key for carts, orders and customers.
// Browser: catalog only, with the publishable key
const res = await fetch(
`${API_BASE}/api/v1/public/catalog/products?store_id=${STORE_ID}`,
{ headers: { Authorization: `Bearer ${PUBLISHABLE_KEY}` } } // pk_test_…
);// Server route: carts and orders, with the secret key from the environment
const res = await fetch(`${API_BASE}/api/v1/public/carts`, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.SIMPLE_API_KEY}`, // simple_test_…
"Content-Type": "application/json",
"Idempotency-Key": crypto.randomUUID(),
},
body: JSON.stringify({ store_id, customer_id, fulfillment: "pickup", items }),
});3. Approve key requests
Each request returns a link to Developer API Keys, where the request waits under Key requests from AI agents. You see the permissions (writes are highlighted), the stores, the website or server addresses and the assistant's note. You can remove permissions or stores before approving, but not add any. Requests expire after 7 days.
- Publishable key: the assistant receives it after you approve, because publishable keys are public by design.
- Secret key: shown to you once. Paste it into the app server's environment as
SIMPLE_API_KEY. The assistant only sees its last four characters.
Publishable keys and browser apps
Publishable keys (pk_test_, pk_live_) go in website code. They can only read the public catalog: merchant:read, stores:read, catalog:read, inventory:read and delivery:read. Each works only from the exact website addresses you list, such as https://shop.example.com (and http://localhost:3000 in the sandbox). Requests from other sites get 403 origin_not_allowed, and each visitor is limited to 60 requests a minute.
Secret keys are refused when sent from a browser (403 secret_key_in_browser), so they cannot end up in a web page by accident. Carts, checkout, customers, sales and reports always go through your server.
IP allowlists
A secret REST key can be limited to your servers' IP addresses or ranges, such as 203.0.113.10 or 198.51.100.0/24. Other addresses get 403 ip_not_allowed. Set it when creating the key, or later with IP addresses on the key's row. Replacement keys keep the list.
What it cannot build yet
Orders are unpaid pickup orders: there is no payment capture. Orders created through the API are not credited to an employee. Loyalty, inventory and product changes are not available. The assistant reads these limits from get_build_guide and should tell you before building around them.