Claude CodeSubbly MCP
Run your Subbly store from Claude Code
Add Subbly's MCP server with one command. Claude Code can then manage your products, plans, subscriptions, orders and coupons, and build on your real store data.
3 days free, then $1/wk for 2 weeksNo card needed
https://mcp.subbly.dev/mcpWhich subscriptions cancelled this week, and why?
subbly · list_subscriptions
subbly · list_cancellation_reasons
6 cancelled this week. 4 said they had too much coffee. Want me to draft a fortnightly plan for them?
Set up Subbly’s MCP server in Claude Code
Pick your agent. Each one connects to the same server, in its own way.
Used only to fill in the steps on this page. Never saved or sent anywhere. Get a key
Fastest
Add it with one command
Get your API key
In your Subbly admin, open Settings, then API keys, and generate a Private API key for Claude Code.
Add the server
--scope user makes Subbly available in every project. Leave it out to keep it to the current one.
bashclaude mcp add --transport http --scope user subbly \ https://mcp.subbly.dev/mcp \ --header "X-API-KEY: YOUR_SUBBLY_API_KEY"Check it's connected
subbly should show as connected. Start a new session to load its tools, or run /mcp inside one.
bashclaude mcp list
Share it with your team
Commit a .mcp.json to your project instead. It holds no key: Claude Code reads each person's key from their own environment.
Add .mcp.json to the project root
.mcp.json
json{ "mcpServers": { "subbly": { "type": "http", "url": "https://mcp.subbly.dev/mcp", "headers": { "X-API-KEY": "${SUBBLY_API_KEY}" } } } }Each person sets their own key
Add it to your shell profile so every terminal has it. Claude Code asks you to approve the project's servers the first time.
bashexport SUBBLY_API_KEY="YOUR_SUBBLY_API_KEY"
Check it worked. Run claude mcp list and look for subbly: ✔ Connected. Then ask Claude Code to list your published products.
Why connect Claude Code to Subbly
Build a storefront on your real data
Claude Code reads your products and plans through Subbly's MCP server and writes a custom site that checks out with the SubblyCart.js widget, with nothing hard-coded.
Clear the busywork in one session
Rewrite product descriptions, add a prepaid plan to every subscription or tidy metadata across the catalogue, and see each change in your admin.
Ask your store questions from the terminal
Which plans are growing, who cancelled this week and why: Claude Code pulls the orders and subscriptions and works out the answer.
Try these with Claude Code
Once Subbly is connected, just describe what you want. Copy one to start, or use it as a starting point.
- 01
Build on your data
Read my Subbly products and plans, then build a landing page for my best-selling subscription that shows the real plans and checks out with the SubblyCart.js widget.
- 02
Check the connection
List my published Subbly products with their prices.
- 03
Understand churn
Which Subbly subscriptions were cancelled in the last 30 days? Group them by cancellation reason and tell me what stands out.
- 04
Add a plan
Add a 3-month prepaid plan to my best-selling subscription, priced 10% below three monthly payments. Leave it unpublished so I can review it.
- 05
Run a promotion
Create a coupon called WELCOME15 for 15% off a customer's first order. Show me the settings before you save it.
- 06
Clear the shipping queue
Show me every order that is waiting to ship, oldest first, and flag any that have waited more than 3 days.
Claude Code runs the store. Your Subbly agent builds the site.
The MCP server gives Claude Code 130+ tools for every ecommerce need. Each one is a call to Subbly’s API, so what it changes is real, and you see it in your admin straight away.
Products and plans
Create products, variants and plans, then publish when you're ready.

House blend subscription
From $24 a month
- Monthly
- Every 2 weeks
- 3 months prepaid, 10% off
get_productcreate_plan
Subscriptions
Find, cancel or restore them, and change what's in the box.
- Ava ThompsonMonthlyActive
- Leo MartinEvery 2 weeksPaused
- Priya ShahPrepaidActive
list_subscriptionscancel_subscription
Orders and shipping
Clear the queue, mark shipments and hold orders for later.
- #1042House blend, 2 bagsShipped
- #1043Gift boxShipped
- #1044Decaf, 1 bagShip
list_ordersship_order
Coupons and customers
Create offers, and look up customers, payments and invoices.
WELCOME15
15% off a first order
15%offcreate_couponget_customer
Bundles and stock
Build-a-box bundles, collections and inventory across groups.

Trail box, pick 438 in stock
create_bundle_itemupdate_inventory_item
See every tool in the developer docs
Built by Subbly
Describe your store. Your Subbly agent builds it.
Your website, checkout and customer portal are designed and built by your Subbly agent, around your brand. Site editing through MCP is coming soon, so the agent you already use will be able to change your pages too.
See what it buildsNot through MCP yet
Coming soon- Design or edit your website (your Subbly agent does that, and site editing through MCP is coming soon)
- Set up funnels, automations, dunning or the referral program
- Read analytics reports (it can pull the raw orders and subscriptions to work them out)
You set those up in your Subbly admin.
Frequently asked questions
Where do I find my Subbly API key for Claude Code?
In your Subbly admin, open Settings, then API keys (https://www.subbly.co/admin/settings/api-keys). In the Private API keys card, choose Generate API key and copy it. Only the store owner and admins can create keys, and Subbly asks for two-factor authentication first. Give Claude Code its own key, so you can delete it without breaking anything else.
What's the difference between Claude Code and Claude?
Claude Code is Anthropic's coding agent: it runs in your terminal, IDE or the desktop app and can run commands and edit files. Claude is the chat app on the web, desktop and mobile. They keep separate MCP setups, so adding Subbly to one doesn't add it to the other. For Claude, follow the steps on our Claude page.
Should I use --scope user, project or the default?
Use --scope user to have Subbly in every project on your computer. The default (local) keeps it to the folder you're in. Use a committed .mcp.json (project scope) when a team shares a repo, with each person's key in their own SUBBLY_API_KEY.
Claude Code doesn't see the Subbly tools. What should I check?
Start a new session: servers load when a session starts. Run claude mcp list: if subbly shows Failed to connect, check the key has no space or line break at the end. In a .mcp.json the entry needs "type": "http", or Claude Code reads it as a local server and skips it. If the key was deleted in Subbly, generate a new one and add the server again.
Can Claude Code build my storefront?
Yes, in code. It can build a custom site that reads your products from Subbly and checks out with the SubblyCart.js widget or the Subbly.js SDK. If you'd rather not run your own site, your Subbly agent builds and hosts the store for you, checkout included.
Is it safe to give Claude Code my Subbly API key?
The key can read and change everything in your store, so treat it like a password and keep it out of files you share or commit. Claude Code asks before running a tool unless you allow it, and Subbly's tools tell the agent to confirm with you before archiving or deleting anything. If a key leaks, delete it under Settings, API keys, and it stops working straight away.
Can Claude Code build my website through Subbly's MCP server?
Not yet. The MCP server runs your store: products, plans, subscriptions, orders, customers and coupons. Your website is built by your Subbly agent: describe it in Subbly and it designs and builds the store, checkout included. Site editing through MCP is coming soon, so Claude Code will be able to change your pages too. Until then, Claude Code can build a custom storefront in code that checks out with the SubblyCart.js widget.
Which Subbly plans work with Claude Code?
Every plan includes the MCP server, with usage limits that depend on your plan.
Using a different agent?
ClaudeA custom connector, or Claude Desktop's config file
Claude CoworkA custom connector, shared with Claude
- ChatGPTThe desktop app, with the Codex command
CodexOne command in your terminal
- CursorOne click, or ~/.cursor/mcp.json
VS CodeOne click, or Copilot's MCP config
- Grok BuildOne command in your terminal
- Grok BotSend your Bot one message
OpenClawOne command in your terminal
- Any MCP clientThe server URL and your key in a header
Give your agent a store worth running
Your Subbly agent builds a store that looks like your brand. Your own agent runs it. No plugins, no developers, no lock-in.
Start for free3 days free, then $1/wk for 2 weeksNo card needed