Skip to main content
Connect any Model Context Protocol client to your Pocketsflow account. The hosted server at https://api.pocketsflow.com/mcp exposes the full public API as tools — create products, read orders, issue refunds, manage webhooks, send newsletters, and more — scoped by your API key.

Endpoint

https://api.pocketsflow.com/mcp — Streamable HTTP. Authenticate with Authorization: Bearer <API key>.
This page is the copy-paste setup guide. For the full tool list and how the server works, see MCP server. For editor-specific workflows (project rules, scaffolding), see Claude Code, Cursor, and Windsurf.

1. Create an API key (auth)

Every MCP connection uses the same API keys as the REST API.
  1. Open the dashboard → Developers → API keys.
  2. Create a key. Prefer pk_test_… while you set things up.
  3. Copy the key once — it is shown only at creation.
Send it on every request:
Treat API keys like passwords. An agent with a pk_live_… key can create and delete real data. Use a dedicated, revocable key per client, keep configs out of git, and rotate if a key leaks.

2. Add the server to your client

Pick your client and paste the config. Replace the placeholder key with yours.
Claude Desktop’s local config only launches stdio servers. Bridge the hosted HTTP endpoint with mcp-remote (requires Node.js 18+).
  1. Open Settings → Developer → Edit Config (creates claude_desktop_config.json if needed).
  2. Merge the block below into mcpServers.
  3. Quit Claude Desktop completely and relaunch.
Config paths
Put the Bearer value in env, not inline in args. Claude Desktop does not escape spaces in args reliably (especially on Windows) — the Authorization:${AUTH_HEADER} form avoids that.
After restart, open a new chat and confirm pocketsflow tools appear under the hammer / tools menu.
Prefer the terminal? Claude Code supports remote HTTP natively:

3. First tool call walkthrough

Once the client shows Pocketsflow tools, verify the connection with a read-only call before anything that writes.
1

Confirm the account

Ask:
Using the Pocketsflow tools, call get_account and summarize who I’m authenticated as.
You should see your store / account details. A 401 or “API key” error means the header is missing, mistyped, or the key was revoked — fix the config and reload the client.
2

List products

Ask:
List my products with list_products.
Empty is fine in a fresh test account — a successful empty list still proves auth and tool discovery work. (list_products takes no filters today.)
3

Create something in test mode

With a pk_test_… key:
Create a $19 product called “MCP Starter Kit” and give me a checkout link.
The agent should call create_product then create_checkout_session and return a hosted checkout URL. Open it to confirm the sandbox product.

Handy prompts

Destructive or expensive actions (refunds, deletes, live sends) deserve an explicit confirmation in the chat. Prefer pk_test_… until the flow is trusted.

4. Verify without an AI client

You can hit the same endpoint with curl to isolate client vs. server issues:
A JSON result with account fields means the key and endpoint are healthy — if the AI client still fails, re-check its config and reload.

Troubleshooting