NERD Functions MCP server
NERD Functions lets Shopify merchants build discounts and bundles (Shopify Functions) without code, on any Shopify plan. Its MCP server lets the AI assistant a merchant already uses list, explain, debug, create, and edit those functions for their store. For the offers the app can build and the plan each needs, see what NERD Functions can build.
Connect
Server URL: https://nerd-functions.onrender.com/mcp (Streamable HTTP). Add it as a custom connector in Claude, ChatGPT, Cursor, or any MCP client and sign in: you confirm the connection inside your Shopify admin, choose whether the assistant may make changes, and return to the assistant. Clients that cannot sign in can use a token created on the MCP Server page of the app, sent as Authorization: Bearer <token>.
Requirements: the NERD Functions app installed on the store with an active plan. Everything an assistant creates starts inactive; changing a live function or activating one needs the merchant's explicit confirmation in the conversation.
Read tools
- get_store_overview: The connected store, what its NERD Functions plan includes (rule limits, variables, metaobjects, number of discount functions), how many functions exist by type and status, and the link to the app.
- list_functions: List the functions the merchant has configured in NERD Functions (cart transform bundles and discounts), with name, type, status (active, inactive, or locked), and a link to open each one.
- get_function: Describe one NERD Functions function in plain language: each rule (what it discounts or bundles, which lines it targets, and when it applies), variables, data access (line properties, cart attribute, metafields), and discount settings. With include_config it also returns the raw rule config, the format update_function accepts.
- check_function_health: Check why a NERD Functions bundle or discount may not work at checkout even when its rules look right: status and lock, Shopify discount or cart transform missing, expired, or scheduled, saved rules out of sync with Shopify, missing discount classes, invalid rules, and deleted products, variants, or collections. Returns issues with fixes.
- find_functions_for_product: Find which NERD Functions bundles and discounts refer to a product, through its product id, one of its variants, a collection it belongs to, or one of its tags. Also lists functions whose rules do not name any product and can apply to every product.
- list_templates: List the NERD Functions starting templates (volume discount, cart total discount, collection discount, mix and match bundle, fixed bundle) with what each does and whether it needs storefront changes. Each template's full config is available as the nerd-functions://templates/{id} resource.
- get_config_reference: Get the NERD Functions rule config format: rule types, conditions, value sources, and complete examples. Without a topic it returns the basics and a list of topics; topics cover variables (calculations such as packs or per-N pricing), line_groups, aggregates, bundle_pricing, metaobjects, and plans (what each plan includes). This is the format create_function and update_function accept.
- debug_function: Simulate a NERD Functions cart transform or discount function against a test cart and return the resulting operations plus a step-by-step evaluation trace explaining why each rule, line, or operation was applied or skipped. Runs the same rule logic as checkout on the sample data; it is not a log of live checkouts.
- export_functions: Export some or all of the store's NERD Functions as the app's portable JSON envelope, which the app's Import button accepts on any store.
Write tools (need write access)
- create_function: Create a NERD Functions discount or bundle from a rule config in the get_config_reference format. The function is saved inactive with a review note; nothing changes at checkout until it is activated. Returns the saved function, warnings about what the merchant still has to pick, errors to fix, or plan_blockers.
- update_function: Replace a NERD Functions function's rules, name, data access, discount settings, or linked metaobject type. function_config replaces all rules, so it must be the full edited list (get_function with include_config returns the current one). Changing an active function takes effect at checkout immediately and requires confirm_live_change, meaning the merchant agreed to a live change.
- activate_function: Make a NERD Functions function live at checkout; a change that needs the merchant's agreement. Creates the Shopify discount or cart transform on first activation. Only one cart transform can be active; replace_active switches checkout from the active one to this one.
- deactivate_function: Stop a NERD Functions function from applying at checkout. The configuration is kept and can be activated again; a change that needs the merchant's agreement.
- duplicate_function: Copy a NERD Functions function's configuration into a new inactive function, for example to try a variation without touching the live one.
Prompts
- create_discount: Turn an offer described in plain words into a NERD Functions discount, test it, and hand it to the merchant for activation.
- create_bundle: Turn a bundle idea into a NERD Functions cart transform, test it, and hand it to the merchant for activation.
- explain_function: Explain what one of the store's functions does, in words a merchant can check against their intent.
- debug_checkout: Find out why a discount or bundle did not apply at checkout for a given cart.
Resources
The rule config reference and the starting templates are also available as resources, plus one resource per function in the store:
nerd-functions://referencenerd-functions://reference/basicsnerd-functions://reference/discountnerd-functions://reference/variablesnerd-functions://reference/line_groupsnerd-functions://reference/aggregatesnerd-functions://reference/cart_transformnerd-functions://reference/bundle_pricingnerd-functions://reference/metaobjectsnerd-functions://reference/plansnerd-functions://templates/discount-volume-qtynerd-functions://templates/discount-cart-thresholdnerd-functions://templates/discount-collection-linesnerd-functions://templates/cart-mix-match-bundlenerd-functions://templates/cart-fixed-bundlenerd-functions://functions/{id}
Example requests
- “List my discounts and explain what the volume discount does.”
- “Why didn't my bundle apply for 2 hoodies and a cap?”
- “Create a 10% discount on orders over 100 and show me a test cart.”
Privacy: what the connection stores and shares. Support: info@bosidev.com or the chat inside the NERD Functions app.