- Integrations
- Developer tools
- Estimated reading time:5 min read
Stoify MCP server for AI-assisted store management
Connect an MCP client to read and manage Stoify sites through site-scoped tools for products, blog posts, storefront pages, builder settings, modules, media, and SEO.
Share this page
Give your MCP client a controlled way to work with Stoify
Stoify now includes a hosted Model Context Protocol server for AI clients and developer tools that support MCP. It exposes a growing set of tools for working with a Stoify store through the same site-scoped data and permission checks used by the dashboard.
The endpoint is https://stoify.app/api/mcp. Create an MCP connection from Dashboard → Settings → MCP, then add the endpoint and bearer key to your MCP client. The setup prompt in the dashboard can help configure the client you use and links to the living MCP agent guide.
Work across the store from one connection
The server can list sites available to the account and return the current storefront configuration for a selected site. Its tools cover:
- Products, variants, product media, categories, collections, and brands.
- Blog post search, author and taxonomy details, creation, editing, and deletion.
- Custom storefront pages and publication state.
- Home page, navigation, footer, theme, and template configuration.
- Site settings and optional module state.
- Media library assets and storefront builder media.
- SEO inventory, page details, and queued page audits.
- Supported builder defaults and capabilities.
That lets an MCP client help with a concrete task such as reviewing a catalog, preparing a page update, or checking SEO readiness without pretending to understand tools that are not connected to the store.
Keep access scoped and reviewable
Each request uses an account-level bearer key. Site tools still require owner or admin access to the selected site, and the API Endpoints module must be enabled for that site. Site data is not selected through a user supplied URL; tools receive a site ID and check access before reading or changing its records.
Read tools identify themselves as read-only. Write and destructive tools declare their effects, validate their inputs, and follow the same site-scoped update rules as dashboard actions. Changes that use optimistic concurrency require the latest updatedAt value so a client can detect when someone else has edited the same settings.
The MCP key is shown only when it is created. Store it in the MCP client’s local configuration, and revoke or regenerate it from Settings → MCP if access needs to change. Disabling API Endpoints for a site also turns off MCP access to that site.
Connect in a few steps
- Open Dashboard → Settings → MCP.
- Generate an MCP key and copy it into the client configuration prompt.
- Ask the client to list accessible sites and select the site to work with.
- Review any requested changes and let the client apply them through the validated tools.
The connection is designed to keep the human in control of store changes. The MCP client proposes and performs actions through the server; Stoify continues to enforce the account’s permissions and site settings.
Manage blog posts
With the Blog module enabled, use blog_post_list to search or paginate posts by status, then blog_post_get to read a post and its current updatedAt value. Create a post with blog_post_create; posts start as drafts unless you set status to Published or provide a future scheduledFor time with status: "Scheduled". Use blog_post_update with the latest updatedAt to replace a post’s content and metadata, or blog_post_delete with that version token to permanently remove it. Authors must belong to the selected site, and rich-text images must be in that site’s media library.
For a first look at the workflows this unlocks, read Introducing the Stoify MCP server. Existing public catalog integrations can still use Stoify’s catalog API directly.
Customize standalone form pages
With the Forms module enabled, use builder_list_forms to page through the selected site's forms and builder_get_form_override to read a form's inherited layout and current updatedAt value. Neither tool returns submissions.
Use builder_update_templates to update formTemplate within the full template configuration. Use builder_update_form_override with the form ID, its latest updatedAt as expectedUpdatedAt, and a full resolved pageConfig to customize one form. Passing pageConfig: null restores template inheritance; an omitted or null themeOverride restores the site theme. These operations require manager access and revalidate the storefront. Embedded forms keep their existing settings.
Create a latest-products collection
Use collection_create with type: "Dynamic", dynamicRuleType: "Latest", and dynamicProductLimit to create a collection of the newest visible products by creation date. The limit accepts whole numbers from 1 to 1,000 and defaults to 24. Category and manual product selections do not apply to Latest collections.
Use collection_get before collection_update and pass the returned updatedAt as expectedUpdatedAt. Omitting the dynamic rule or limit on update preserves its saved value. Collection pages and featured collection blocks share the same capped membership.
Custom React blocks
Use schema_get_custom_blocks with the selected site ID before authoring custom components. It returns that site's editing eligibility, current source files, limits, a starter component, a placement template, and TypeScript declarations generated from Stoify's runtime. Custom block writes require manager access, the API Endpoints module, and Developer Mode eligibility.
builder_custom_block_create and builder_custom_block_update accept a block ID, TSX source, and the site's latest updatedAt as expectedUpdatedAt. Declare editable controls with const stoifyProps = { ... } satisfies StoifyProps and type the component's values with StoifyProps<typeof stoifyProps>. Import hooks from react; use the returned declarations for supported stoify controls, Container, and useSite. Export the component as default.
The generated declarations are the source of truth for the active Stoify runtime and include React and JSX types. Use ordinary React function components, hooks, imports, typed callbacks, and intrinsic DOM elements. For example, state and effects are imported from React, while editable values remain declared through Stoify controls:
import { useEffect, useState } from "react";
import { Container, TextInput, type StoifyProps } from "stoify";
const stoifyProps = {
title: { name: "Title", type: TextInput, defaultValue: "Hello" },
} satisfies StoifyProps;
function Greeting(props: StoifyProps<typeof stoifyProps>) {
const [count, setCount] = useState(0);
useEffect(() => {
document.title = props.title;
}, [props.title]);
return (
<Container>
<button
type="button"
onClick={() => setCount((value) => value + 1)}
>
{props.title}: {count}
</button>
</Container>
);
}
export default Greeting;Use useState, useEffect, useMemo, useRef, and other React exports as normal; import each runtime value from react. Import StoifyProps, inspector controls, Container, and site context helpers from stoify. The declarations returned by schema_get_custom_blocks supply types for the available React, JSX, browser, and Stoify APIs, so read the current contract instead of assuming a fixed list of controls or runtime exports.
Saving source preserves page placements and configured values. To place a component, use the returned placement template with a unique section ID and the saved block ID, then update the page, home page, or templates using their existing tools and current version. Preserve other sections and their IDs. Explicit instance values override control defaults; saving a component does not insert it automatically.
builder_custom_block_delete is destructive: it removes the source and its instances from the selected site's templates, pages, resource overrides, and saved themes. Fetch the latest site version before deletion.
Related reading
Deeper Stoify writing connected to this workflow.
- Education
Let Commerce Teams Build Their Own Storefront Workflows, Safely
Give the people closest to your customers more room to shape storefront pages and workflows, while keeping access, review, and publishing under control.
- News
- Product
Introducing the Stoify MCP Server
Connect an MCP-compatible AI client to Stoify and work with site-scoped tools for catalog, storefront builder, settings, media, and SEO tasks.
More features
Explore the rest of the Stoify feature library.
Add-ons
Google tag add-on for storefront tracking
Connect a Google tag ID to a Stoify storefront and control whether tracking waits for Cookie Consent acceptance.
Add-ons
InPost pickup points and shipping
Let shoppers choose an InPost pickup point at checkout, then create shipments and labels from the order workflow.