What is MCP

Modulify runs an MCP server, so an AI client can work on your sites for you.

On this page

MCP, the Model Context Protocol, is the standard way an AI client talks to an outside system. Modulify runs an MCP server, so a client like Claude Code, Claude Desktop or Cursor can connect to your Modulify account and work on your sites from wherever you are already working.

The mental model

Your AI assistant becomes a client of your Modulify workspace. It signs in with an access token you create, and from then on it can call Modulify the same way you would click through the dashboard: list your sites, send a prompt to one, watch the build, read the resulting code, publish it.

The token is the whole boundary. It belongs to you, it acts as you, and it can only do the things you ticked for it.

What a connected client can do

The server exposes 326 tools, grouped by the part of Modulify they touch:

  • Workspaces: read your workspaces, your role in each, your AI credit balance and what the credits were spent on, down to each charge, read and change the monthly spending caps and alerts, and create, rename and hand over workspaces and manage their members, invitations and roles.
  • Sites: list, create, duplicate, rename, archive and unarchive, delete, change the free address, change sharing, group them into folders, move them to another workspace or hand them to another person.
  • Chat: send a prompt to the site agent, poll the generation, read the history, manage the queue.
  • Code: list, read and write the source files of a site, read its server logs, and move its code to a GitHub account and back.
  • Publishing: publish, check the publish, read its build log and steps, stop it, list past publishes, take a site offline, start a build through a deploy hook.
  • Domains: add custom domains, up to 10 for each site, read their DNS records, verify them, remove them. Search for domains to buy, buy and renew them through a checkout link you pay yourself, and manage the DNS records, nameservers, registrant, transfer lock and auto-renew of the domains a workspace bought.
  • Configuration: environment variables, the skills and connectors a site uses, scheduled jobs, webhooks and deploy hooks with their logs and their counts over time, and the system packages and setup commands of the site environment.
  • Emails: the email a site sends, its settings, its allowance, its history with any one email read in full, its counts over time and the addresses it is blocked from emailing, plus sending one email or a bulk email the person asked for, and the domains of your own it sends from and receives at.
  • Content: the collections, schemas and rows of a site database, SQL against it, plus its file storage.
  • Backups: project snapshots, the code backup history, and storage and database backups, which a client can list, take, delete one or all of, and turn the daily run on or off for. A storage backup can also be browsed, read one text file at a time and restored, whole or in part, in two calls: the first answers the plan and changes nothing, and only a second carrying that plan's confirm value starts the restore. A database backup can never be browsed or restored, and neither kind can ever be downloaded through MCP.
  • Analytics: visitor numbers for a published site, the whole Analytics tab in one call, the collection status, and the analytics API key.
  • AI: the AI a site's code calls: whether it is on, its usage and request history, and its key.
  • Comments: read, leave, resolve and react to the review comments on a site, with their replies and attachments.
  • Your account: your profile and preferences, the invitations waiting for you, your referrals and payouts, and your Share and Earn invite.

All tools lists every one of them, and each tool has its own page with the scope it needs and every input it takes.

Every tool is also a plain HTTP method. A script or a backend of your own can call it with the same token as POST https://api.modulify.ai/v1/<tool> with the inputs as a JSON body, under the same scopes and workspace rules. See the HTTP API.

Scopes decide what the client even sees

A token carries a list of scopes. When a client connects, Modulify builds the tool list for that token alone: a tool whose scope the token does not hold is never registered, so the client cannot see it, cannot call it and will not try. Untick data:write and the client behaves as though row editing does not exist. Over the HTTP API, calling a tool outside the token's scopes is refused with a 403 that names the scope it needs.

Each tool is also registered with a read-only hint and a destructive hint. Clients that surface those hints will ask you before running something marked destructive, such as delete_site or clear_collection.

It acts as you, inside your permissions

A token is tied to your user account, not to a workspace. By default it can reach every workspace where you are a member and your role allows API access, and you can narrow it to specific workspaces or sites when you create or edit it.

Every call that works inside a workspace has to resolve to one, from the workspaceId it names or from the workspace that owns the site, folder or comment it names, and one that resolves to none is refused before it runs. That workspace then has to be one the token is allowed to reach, and your role in it has to hold the API access permission. Workspace owners hold it already. For anyone else it is a permission the owner grants to a role, described in the product as "Reach this workspace with an access token, from an AI client or the API".

What it deliberately cannot do

Some things are withheld on purpose, and the riskiest work sits behind scopes that stay unticked until you tick them:

  • Environment variable values stay hidden. list_secrets gives names and flags only. Reading a value back takes get_secret or get_all_secrets and the separate credentials:reveal scope. get_all_secrets leaves the platform-managed rows out, so DATABASE_URL, DATABASE_TOKEN, the storage keys, the email keys and the analytics keys come back only from get_secret, one at a time.
  • Webhook destination URLs are stripped to their host, because a webhook URL is itself a credential.
  • Deploy hook URLs stay masked. list_deploy_hooks and export_deploy_hooks show only the last four characters of the secret part, and create_deploy_hook does not return the URL at all. Reading or rotating one takes get_deploy_hook_url or rotate_deploy_hook_url and the credentials:reveal scope, because anyone holding the URL can publish the site. A hook URL saved as a scheduled job's request URL is hidden too: list_site_crons, list_site_cron_runs and export_site_crons return its secret part as mdh_<redacted>.
  • The data tools never return database credentials. get_site_database tells you whether a database exists and whether it is running, not how to connect to it, and create_site_database returns no more. The stored DATABASE_URL and DATABASE_TOKEN are reachable only through get_secret, so credentials:reveal and the Delete projects permission are the whole boundary here.
  • Writing a file skips the site agent. write_file, behind its own code:write scope, replaces files straight in the running preview, with no review and no code backup taken first. For a change that depends on the surrounding code, the client describes it with send_message and the site agent edits it instead.
  • Buying a domain never charges a card. buy_domain and renew_domain, behind their own domains:buy scope, only open a Stripe checkout and return its link. Paying on that link does not save the card to your account, and the domain is bought or renewed only once you pay on it. Over MCP and the HTTP API, the card saved on your account is charged only through auto-renew: once set_domain_auto_renew or autoRenew on buy_domain, both behind the same domains:buy scope, turns it on, Modulify renews the domain before it expires on that card, so both tools tell the client to get your agreement first.
  • A domain's transfer code needs two scopes. get_domain_transfer_code is the only tool that returns it, and it needs both credentials:reveal and domains:write, because anyone holding the code can move an unlocked domain to another registrar.
  • Running SQL has its own scope. execute_sql, behind data:sql, runs any statement it is sent, including one that drops a table.

Credits and cost

Reading costs nothing. send_message and create_site spend AI credits from the workspace that owns the site, exactly as prompting from the dashboard does. A workspace with no AI credits left refuses both rather than running them part of the way, so a client that checks get_workspace first can tell you before it tries. A site's email spends them too once it is past its monthly allowance on a paid plan: each further block of sends, send_site_email included, is charged in credits the moment a send crosses the line. A domain costs its price, which you pay yourself on the checkout page buy_domain or renew_domain returns. While auto-renew is on for a domain, each renewal is charged to the saved card of whoever turned it on.

Limits

A token may make 240 tool calls per minute, counting its calls over MCP and through the HTTP API together. Past that, calls come back with the number of seconds to wait, and the window is per token rather than per account.

Over MCP, a single tool result is capped at 60,000 characters. A larger result is cut off with a note saying so, which is why the paging tools exist: list_rows, list_sites, list_messages and the rest all page.

Next