gumroad_create_offer_code
Creates a new offer code for a product
Run the Gumroad side of a launch in place: read the sales, switch a product on or off, and create, adjust or delete the offer codes behind a promotion.
LABSCO SUMMARY
Offer codes are where the depth sits: create, read, update and delete are all present, which is enough to run a launch promotion end to end and take it down cleanly afterwards. Products can only be switched on or off — not created, priced or edited — so this operates a catalogue that already exists rather than building one.
A server over the Gumroad API with 11 tools covering the authenticated user, products, successful sales, and full create-read-update-delete on offer codes.
GUMROAD_ACCESS_TOKEN. Its scope decides how much of the surface answers — the user lookup is the one call available with any scope.
One command plus a key — npx gumroad-mcp@latest init, then supply credentials
USE CASES
Create the code with the amount off and a cap on how many can be claimed, list what is already live on the product so two promotions do not overlap, and raise the cap if it runs out early.
Read the code back by its id to confirm which product it belongs to, then delete it — the codes that get forgotten are the ones nobody listed before the campaign ended.
Pull the successful sales inside a date window, narrowed to one product or one buyer's email, and fetch the product itself when the numbers need naming.
Disable it so the page stops selling, do the work, and enable it again — two calls, no editing of the listing in between.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
gumroad_create_offer_codeCreates a new offer code for a product
gumroad_delete_offer_codeDeletes an offer code for a product
gumroad_disable_productDisables a product by its ID
gumroad_enable_productEnables a product by its ID
gumroad_get_offer_codeRetrieves a single offer code by its ID for a specific product
gumroad_get_offer_codesRetrieves all offer codes for a product
gumroad_get_productRetrieves a single product by its ID
gumroad_get_productsRetrieves all of the products
gumroad_get_salesRetrieves all of the successful sales
gumroad_get_userRetrieves the authenticated user's data. Available with any scope.
gumroad_update_offer_codeUpdates the max purchase count of an existing offer code for a product
BEFORE YOU INSTALL
11 tools when we connected. Five change your live store: gumroad_disable_product and gumroad_enable_product take products off and back on sale, and three offer-code tools create, change and delete discount codes. Check what your client approves automatically.
CONTEXT COST
Rated by the size of the 11 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
npx gumroad-mcp@latest init{
"mcpServers": {
"gumroad": {
"command": "npx",
"args": [
"-y",
"gumroad-mcp@latest"
],
"env": {
"GUMROAD_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}{
"mcpServers": {
"gumroad": {
"command": "npx",
"args": [
"-y",
"gumroad-mcp@latest"
],
"env": {
"GUMROAD_ACCESS_TOKEN": "<YOUR_TOKEN>",
"GUMROAD_BASE_URL": "<YOUR_GUMROAD_BASE_URL>"
}
}
}
}Only for a self-hosted Gumroad instance: <YOUR_GUMROAD_BASE_URL> is your instance's base URL. The server appends the API version itself, so with <YOUR_GUMROAD_BASE_URL> requests go to <YOUR_GUMROAD_BASE_URL>/v2. <YOUR_TOKEN> is your Gumroad access token.