isEnabled() / track() calls, reads the real error off a failed deployment before proposing a fix, and can trigger a deploy or roll one back without you leaving the editor.
Meridian MCP never grants access you don’t already have in the dashboard. Every tool call resolves the signed-in user and runs the same permission checks the web app runs, on the same catalog: a tool that mirrors a dashboard action needs the permission that action needs, and a role’s app scope applies to every app-scoped tool.
This server accesses the production Meridian platform only, including the staging and development environments of its apps. Apps created on the separate Meridian staging platform are not available through this server. See Environments.
Connect an AI client
Server URL:https://mcp.the-meridian.ai/mcp. There is no API key and no token to paste anywhere: your client registers itself over OAuth and you approve it once in a browser.
- Claude Code
- Cursor
- Codex
- Claude Desktop
/mcp in Claude Code, pick meridian and approve in the browser.To share the server with everyone on the project, commit a .mcp.json at the repository root instead. The type is required for Claude Code. Claude Code asks each person to approve a project server the first time it starts in the project, then /mcp connects it./plugin marketplace add the-meridian-ai/skill, then /plugin install meridian@meridian.whoami tool: it returns you and every organization you belong to. Then apps_list gives the app_id every other tool takes. See How tools are scoped.
meridian skills install, run from your app’s root, writes this config for Claude Code, Codex and Cursor in one go, together with the Meridian agent skill. See AI coding agents.
What happens when you connect
- Your client reads the server URL and discovers Meridian’s OAuth endpoints, then registers itself. Nothing has to be pre-created in the dashboard.
- The client opens Meridian’s consent screen in a browser. It names the client, what it asks for, and where the access goes: an application on your computer, or a remote server, which the screen names and warns you about. If you are signed out of the dashboard, or your session has expired, Meridian asks you to sign in first and then takes you straight to the consent screen. You don’t need to start the connection again from your client.
- On Approve, the client exchanges the authorization code for its tokens. On Deny, nothing is granted.
- The client appears under Connected AI clients on the Meridian MCP page (
/mcpin the dashboard), with when it connected and when it was last used.
Revoke a client
Connected AI clients lists every client you’ve approved. Revoking one invalidates its access token and refresh token immediately. The client stops working and has to connect and be approved again. Revoked entries stay in the list, marked as revoked, rather than disappearing. Connections are per developer, not per organization.How tools are scoped
The server keeps no state between calls. There’s no “current app” or “current organization”, so every app-scoped tool takes explicit identifiers:
The opening move for an agent is
whoami, then apps_list. The identifiers every other tool needs come from those two calls. Output always uses the same public identifiers the platform API exposes; internal numeric ids never appear.
Tool catalog
Sixty-six tools. Each declares all four MCP behaviour hints (read-only, destructive, idempotent, open world) so a well-behaved client knows what it can run unattended: read-only (no side effects, safe to repeat), idempotent (repeating the same call changes nothing more), destructive (needs confirmation), or write (creates or updates Meridian config, draft-only for emails and automations). A write that is not marked idempotent creates something new on every call. The catalog leans towards facts your repository can’t tell you: the variables injected into the deployed runtime, the live database schema, where webhooks are routed, and the Grow config an agent needs when wiring lifecycle flows.Orientation
Plan Builder
The highest-value surface: what an agent reads before writing SDK integration code, and, since1.13.0, what it uses to set up an app’s plans and features without the dashboard.
The write tools follow the same rules as the Plan Builder in the dashboard, and need Plan builder: Edit on the app:
- A plan name is unique among the app’s plans, and a plan’s shape is checked as on the dashboard: a yearly price needs a monthly one, and at most one event charges for usage, on a plan without a yearly price.
- A plan with live subscribers refuses a change that would cost them more (
PLAN_LOCKED). Save it as a new version from the dashboard: they stay on the version they approved. - Only the current version of a plan can be activated, and an older version keeps its name.
- Activating any plan needs the app’s session store, as in the dashboard. See Publishing plans.
- A paid plan (a price, or an event with an overage rate) can only go live once the app can charge through Shopify:
plan_activate, and aplan_updatethat prices an active free plan, are refused withSHOPIFY_BILLING_NOT_READYand what is missing (the Shopify client ID or secret in Settings > Meridian SDK, the Partner connection in Settings > Integrations). See Paid plans need Shopify billing set up. plan_activatewithoutconfirm: truechanges nothing and says what activating would do. Have your agent ask you before it passesconfirm: true. A plan that is already active is returned unchanged.plan_deactivateundoes it, without confirmation: nobody is charged by it.- Changes to an active plan reach new merchants at once, as a save in the dashboard does.
Deploy
Call
app_readiness_get before deployment_create: it names what would make the deploy fail in seconds and what would break the app after it. Call managed_variables_list before writing any code that reads process.env. Those variables are in neither the repository nor secrets_list, so an agent reading only your config concludes they’re unset. Use github_refs_list to feed deployment_create a real git_sha: a sha that hasn’t been pushed fails late during the build. Before merging into the auto-deploy branch, read auto_deploy.environment_type in environments_list: a development target lands on production when the app has no development environment, so target alone does not say where the merge deploys.
secrets_list without environment_id lists the app-level entries, the ones every environment inherits. With environment_id, it lists what that environment really gets: its own entries plus every app-level entry, marked inherited: true. An app-level entry the environment replaces with its own entry of the same key stays listed with overridden_by_environment: true, like the struck-through line the dashboard shows for it. These entries are sorted by key, so an override sits next to what it replaces, and count counts all of them.
In environments_list and app_get, base_url is where the environment answers once it has been deployed (the same value as public_url), null until its first deploy. public_url is built from platform_hostname ({slug}.the-meridian.app in production, {slug}-staging.the-meridian.app and {slug}-dev.the-meridian.app in the others). domains lists the platform domain first, with status active, not_deployed (never deployed, or its first deploy is still verifying) or disabled (hosting turned off for the organization), then each custom domain with its status, its certificate state tls (active, provisioning, failed, or null when Meridian holds none), dns_all_verified, the dns_records to add, and certificate_expires_at, ownership_expires_at and error_message. database gives the database’s status, engine, and, when it failed, a sanitised error_code and error_message: the database add-on when the environment has one, otherwise the managed environment database, and null when it has neither. database_status is that same status (pending, provisioning, ready, failed, deleting or deleted). Neither tool ever gives the database host, user, name, connection name or password, and an error_message that would name one is replaced with a generic one, while error_code still says what failed.
logs_tail reads a since or until without an offset as UTC, and answers with server_time, the server’s current time in UTC, next to the since and until it queried, also in UTC. A since more than five minutes after the server’s time is refused with an error that gives the server time and the gap, because it could only return nothing: it usually means a local time was sent without its offset. An environment that was never deployed has no runtime, so its tail is empty and carries a note that says so.
source: "release" returns what the environment’s release command printed, such as npx prisma migrate deploy: the run of deployment_id, or of the environment’s latest deployment that ran one, whenever it ran. since and until filter it only when given, limit keeps its last lines, and the answer names the deployment_id it read. When source is omitted and the environment has no runtime yet, which is what a first deploy that failed at its release command leaves, logs_tail returns that release output instead of an empty tail, with a note that says so.
source: "task" returns what the environment’s Scheduler long tasks printed. They run on their own machine, so their output is never in the web logs. Set since and until around a run’s started_at and finished_at from scheduler_runs_list to read one run.
Webhooks
Together these separate the two failures that look identical from inside your code: no delivery row means Shopify never sent it (check the route); a 4xx/5xx
response_code means it arrived and your handler rejected it. Neither tool returns the webhook body or headers.
Before reading “no delivery row” as “Shopify never sent it”, check two things. A topic declared in your shopify.app.toml goes from Shopify straight to your app and never passes through Meridian, so it never has a delivery row (see Webhooks declared in shopify.app.toml). And forwarded webhooks only reach your production environment (an app without one: its first environment), never a development or staging environment or a local meridian dev.
Delivery statuses
In
webhook_routes_list, each route’s registration counts the stores where Shopify accepted the subscription (registered_shops) and where it did not (failed_shops, with last_error). A store Meridian could not reach at all, because its token was revoked or can’t be renewed, or Shopify refused the request, counts as failed on every topic it hasn’t registered, and its last_error starts with Could not reach followed by the store. A store that uninstalled your app drops out of these counts the next time you save the topic set.
forward_host is the origin Meridian really posts to, and forward_host_source says which destination won: external (the verified external domain you selected as the forward host), environment (your app’s Meridian deployment), or platform. A platform source is Meridian’s own receiver, the last resort when an app has neither: forwarded events stop there and never reach your app, and forward_url then gives the single URL they go to. Both are null when nothing is routed at all.
reconcile_available says whether Meridian can reach the stores that already installed your app, which it can only do when the app is deployed on Meridian. When it is false, Meridian can’t register topics on those stores itself: the SDK registers your topic set on each store when that store authenticates your app (see Re-registering webhooks). Managed topics are in that set from install on. A route you added reaches a store only at that store’s first sign-in after you added it, so each such route carries sign_in: installed_shops, and awaiting_shops, the installed stores that haven’t signed in since. A sign-in within five minutes of adding the route still counts as awaiting, because the SDK can serve the topic set it cached before. sign_in is null on managed topics, and on every route when reconcile_available is true.
Shopify API alerts
Both need the Shopify API alerts: View permission on the app.
Databases
Developer database tools only ever reach the caller’s own database, never a teammate’s, even for an organization owner. Read
database_schema_get before writing a migration or query against a deployed environment: the live schema is whatever the last applied migration produced, and your repository may not agree with it.
CRM
Emails
An agent never writes an email body:
email_create and email_update take no design or HTML. The one body Meridian MCP puts in an email is Meridian’s own starter copy, when automation_create_from_template copies a catalog template, the same body Use this template creates in the dashboard. Edit the body and activate in the dashboard. MCP never live-sends.
Automations
Discounts
The write tools follow the dashboard’s discount rules and need Plan builder: Edit on the app:
- A code is unique per app and stored uppercase. A percentage is capped at 100.
- A write that leaves an automatic discount active needs
confirm: true, because it applies by itself to every new subscription it matches. Renaming one or editing its description does not. A code discount, and any inactive discount, never needs it. - A subscription keeps a discount it got when it subscribed, even after the discount is deactivated.
- Creating a discount counts against the app’s discount allowance, as in the dashboard.
Resources and prompts
Two resources give the agent retrievable context:meridian://docs/{path} (Meridian’s public product documentation, the same pages at help.the-meridian.ai; empty path returns an index of .md/.mdx paths). Prefer docs_search mid-task and meridian://apps/{app}/config (an app’s whole configuration as one JSON document).
Two prompts arrive pre-filled with live data:
integrate_sdk: a guided walkthrough for wiring@the-meridian/sdkinto a Shopify embedded app, pre-filled with that app’s real feature and event keys, types, and per-plan values. Optionalsurfacenarrows it toprovider,pricing,usage, orserver.debug_failed_deploy: a guided investigation of a failed deployment, pre-filled with its real status, error, and recent build events, followed by an ordered set of follow-up calls.
What Meridian MCP never returns
No tool ever returns a secret value, not for a secret and not for a plain environment variable. An agent can confirm a variable exists and is spelled correctly, which is what almost every “missing env var” investigation actually needs.secrets_listandmanaged_variables_listreturn metadata only, never values and never the secret store reference.secrets_settakes a value and never returns it, andsdk_credentials_settakes the Shopify client secret and never returns it.dev_database_getreturns no password, connection string, or certificate. Connect with the Meridian CLI (meridian dev).emails_list/email_getreturn metadata only, never HTML or design.webhook_deliveries_listreturns no body and no request headers.- Internal identifiers and internal-team-only flags never appear.
deployment_create with the same git_sha builds a new deployment, it doesn’t bring the verified image forward), webhook topics, forward paths and the forward host, the Shopify Partner connection, the auto-deploy branch and target (environments_list returns them), the always-on server, and adding a database or a domain. Deleting an environment is dashboard-only too.
Mutations
Twenty-five tools write; the other thirty-nine only read. Twenty-four of them change something, and every successful change is recorded in the organization’s activity log with the tool that made it. The twenty-fifth,automation_test_run, is a dry trace that changes nothing and leaves no entry.
events_createadds one metered-usage event to the catalog. It does not touch per-plan terms.feature_create/feature_updateadd a feature or rename one. A plan grants it throughplan_createorplan_update.plan_createwrites a draft plan.plan_updateedits a plan, draft or active, and is refused when the change would cost its live subscribers more.plan_activateputs a plan live: merchants can subscribe right after, and pay if it is paid. Requiresconfirm: true, and is refused for a paid plan while Shopify billing is not set up.plan_deactivatetakes a plan off the pricing page. Its subscribers keep it.secrets_setcreates or updates one environment variable or secret, in any environment, production included, with the permission the dashboard needs for it (Hosting: Edit).scopeis required, so a forgotten one never writes to every environment. An existing key keeps its kind: changingis_secretis refused, so unset the key and set it again. The value goes in and never comes out, and it reaches the app at its next deploy (environments_listreportsconfig_pending_deploy). Names Meridian always sets itself (MERIDIAN_APP_ID,MERIDIAN_API_URL,MERIDIAN_OAUTH_CLIENT_ID,MERIDIAN_OAUTH_CLIENT_SECRET) and theHOSTING_prefix are refused.secrets_unsetdeletes one by key and scope (Hosting: Delete). A key set for every environment can’t be deleted through one environment: the call is refused and says where the key lives. When the key overrides a variable Meridian manages, deleting it gives that variable back to Meridian at the next deploy (restores_managed). With the same value, nothing changes for your app and the call goes through. With adifferentorunknownone, it is refused untilconfirm: true, also when a key set for every environment takes over from the deleted one. A variable of a ready add-on (REDIS_HOST, for example) and theDB_HOST,DB_PORTandDB_SSL_CAMeridian sets for a database the app reaches over TCP count as managed ones, and asunknown.discount_create/discount_updatewrite a discount. Leaving an automatic discount active requiresconfirm: true.environment_createadds a development or staging environment (Hosting: Edit). The plan decides how many of each an app may have, and the environment runs in the app’s region. It never creates a production environment. Adding a development environment changes where pushes land for an app whose auto-deploy target isdevelopment: they deployed to production while there was none, and deploy to the new environment from then on.environments_listreturnsauto_deploywith the environment a push lands on.environment_updatechanges an environment’s settings (Hosting: Edit). The release command and the health check path apply at the next deploy. The port and the compute settings are applied to the running service on save, with no deploy, so a wrong port takes the running app down. The region, the environment type and the always-on server can’t be changed. On development and staging it writes at once. On production it requiresconfirm: true.sdk_credentials_setsaves the Shopify client ID and client secret (Applications: Edit). The pair belongs to the app, so every environment gets it at its next deploy and Plan Builder billing uses it: the call always requiresconfirm: true. It replaces a credential and never clears one. The secret goes in and never comes out.deployment_createis idempotent on(environment_id, git_sha): repeating it while that deployment is in flight returns the same one. A different sha while a deployment is active is refused: one active deployment per environment. It deploys to the environment you name, production or a development or staging one, with the same permissions as the dashboard.deployment_rollbackshifts live traffic (annotated destructive). Refused if the target didn’t succeed or the environment has another deployment in progress.dev_database_migraterecords a run; it does not execute one.meridian migrateruns the migration locally and records it automatically.dev_database_resetdestroys every table and row in your developer database schema. Requiresconfirm: true.custom_field_values_setwrites custom field values on a store and fires the automation trigger a dashboard edit would.email_createwrites an inactive metadata draft.email_updatechanges an email’s metadata and, as a dashboard save does, the snapshot that every automation sending the email sends from. Neither activates, edits the body, or sends.automation_create/automation_updatewrite inactive drafts; graph updates only while inactive; noemailHtml.automation_create_from_templatewrites an inactive automation and inactive emails with Meridian’s starter copy. It neither activates nor sends, and takes no body from the agent.automation_test_runis a dry trace: no mail, no metering, no persisted run.
Plan requirements
Meridian MCP is gated on themcp plan feature, and the deploy-related tools additionally on the deploy feature. Every tier (Private, Lite, Pro, and Enterprise) includes both, so no plan change is needed. Private and Lite meter MCP calls (1,000 requests a month); Pro and Enterprise don’t meter them. Every call about an app counts, tools, prompts and the meridian://apps/{app}/config resource alike.
The Plan Builder belongs to public apps, so the tools that read or write an app’s plans, features and events, the integrate_sdk prompt and the meridian://apps/{app}/config resource refuse a private app with This feature is only available for public applications. On an app on the Private plan, the tools for merchant features answer that the plan does not include them, and they start on Lite.
While an organization is in demo mode, its real apps are out of reach through MCP as on the web: a call naming one answers App not found, or you do not have access to it.