Skip to content

MCP server

The deploybase MCP server exposes the platform to AI assistants that speak the Model Context Protocol: Claude Code, Cursor, and anything else with an MCP client. It is a client of the public REST API, so an assistant can never do more than the access you give it.

39 tools, across projects, deployments, domains, forms, site analytics, environment variables, share links, private previews, team and migration.

Add the hosted server without a key. The first time the agent connects, it opens a browser window. Sign in to deploybase, choose the team the agent works in and what it can do, and select Allow. The agent then works in that team only, and renews its own sign-in: there is no token to copy or store.

In Claude Code:

claude mcp add --transport http deploybase https://mcp.deploybase.eu/mcp

If no browser opens, start the sign-in from your client’s MCP settings. In Claude Code, that is /mcp.

In Cursor, add the deploybase entry under mcpServers in ~/.cursor/mcp.json, keeping the entries already there:

{
"mcpServers": {
"deploybase": {
"url": "https://mcp.deploybase.eu/mcp",
"auth": {
"CLIENT_ID": "deploybase-cursor"
}
}
}
}

Cursor needs the CLIENT_ID line. Other clients identify themselves and need nothing extra.

In VS Code:

code --add-mcp '{"name":"deploybase","type":"http","url":"https://mcp.deploybase.eu/mcp"}'

In Codex:

codex mcp add deploybase --url https://mcp.deploybase.eu/mcp

Any other client that speaks the Streamable HTTP transport and MCP sign-in connects to https://mcp.deploybase.eu/mcp the same way.

The sign-in screen shows where the agent comes from. One deploybase does not recognise is marked Unverified: allow it only if you just started the sign-in from your own agent.

The sign-in screen asks what the agent can do in the team you chose. Nothing is chosen for you, unless the agent asked for a level itself:

Choice The agent can
Read only See projects, deployments, build logs, previews, domains, functions, forms and settings. Environment variables show their names, never their values. It cannot change anything
Previews Everything Read only can, plus build and upload preview deployments, create and remove share links, and remove previews. It cannot deploy to production, promote, create projects or change settings
Full Everything your role allows in that team

The agent acts as you, in that one team. Whatever you choose, it never does more than your own role allows: a Viewer’s agent with Full is still a Viewer. Your role is read again on every request, so a change to it applies to the agent at once.

A Previews agent can deploy any branch except the production branch. A deploy, upload or ship that would go live in production is refused before anything is built.

When the agent tries something its access does not cover, the tool call fails with a message such as:

Agent access too low: This agent was connected with preview access; deploying to production needs full access. Next step: Reconnect the agent and choose Full: in Claude Code run /mcp, select deploybase, and sign in again.

To change what an agent can do, sign in again and pick another choice. In Claude Code, run /mcp, select deploybase, and sign in again. In other clients, start the sign-in again from the client’s MCP settings. Each sign-in is a new entry under Signed-in agents; revoke the old one if the agent no longer uses it.

An agent that signed in before this choice existed keeps working as a Member (or as a Viewer, if that is your role) until you sign it in again. Signed-in agents shows it as Member (older sign-in).

Signed-in agents are listed under People and access → API keys, in Signed-in agents, with what each one did and a Revoke button. See signed-in agents.

An agent stops working, and has to sign in again, when:

  • you or an admin revoke it
  • you leave the team or are removed from it
  • you change your sign-in email address
  • it has not been used for 30 days

After a revoke, the agent’s tool calls fail straight away. Allow up to a minute before it asks you to sign in again.

For CI, a headless agent, or a client that cannot sign in, pass a deploybase API key as a bearer header. In Claude Code:

claude mcp add --transport http deploybase https://mcp.deploybase.eu/mcp --header "Authorization: Bearer dbk_0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"

A key belongs to the team rather than to a person and always acts as Member. Put the real key in your client’s config, not in a file you commit. The key above is fake.

The local binary authenticates with an API key only; sign-in is for the hosted server. In Claude Code, add to .mcp.json:

{
"mcpServers": {
"deploybase": {
"command": "deploybase-mcp",
"args": ["--transport", "stdio"],
"env": {
"DEPLOYBASE_API_KEY": "dbk_0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
}
}
}
}

Put the real key in your environment rather than in a file you commit. The example above is fake.

Variable Default Purpose
DEPLOYBASE_API_KEY none Required for stdio. The server refuses to start without it
DEPLOYBASE_API_URL https://api.deploybase.eu API base URL
TRANSPORT stdio stdio or http
PORT 8082 HTTP transport only

Read tools are safe to let an assistant call freely. Write tools change something. The five marked destructive cannot be undone, and are worth a confirmation step in whatever client you use.

Tool
list_projects Read Every project on the team, filterable by name
get_project Read One project in full: repository, build settings, live deployment
create_project Write Create from a repository URL and framework
update_project Write Change only the fields you pass
check_subdomain Read Is this production subdomain free?
validate_git_repo Read Can we reach this repository with these credentials? Run it before creating
delete_project Destructive Deletes the project, its deployments, domains and share links
Tool
list_deployments Read Filter by project and status, paginated
get_deployment Read Status, branch, commit, URL, timings. While the build runs it waits up to 20 seconds for a change
get_build_logs Read The whole log. Failures are near the end
trigger_deployment Write Build a branch. Returns at once with an operation_id; wait for the build with wait_for_operation
cancel_deployment Write Stop a pending, queued or building deployment
promote_deployment Destructive Point production at a deployment. This is also how you roll back
clear_project_cache Write Clear the edge cache of every production address. Done within about a minute; see Clear the edge cache
Tool
list_domains Read Domains with verification and SSL status
get_domain_status Read One domain in full
get_dns_instructions Read The exact records to create
add_domain Write Add a domain, returning its verification token
verify_domain Write Check the TXT record. Once per 15 seconds per domain
remove_domain Destructive Removes the domain, its certificate and its CDN mapping
Tool
list_forms Read Forms on a project
list_form_submissions Read An inbox, filterable
export_form_submissions Read The inbox as CSV or JSON
mark_submission_spam Write Move a submission to the spam tab
mark_submission_ham Write Restore one from spam
Tool
list_env_vars Read Keys, environments and targets. Never values
set_env_var Write Add a variable or change one, for production, preview or all
delete_env_var Destructive Remove one variable by its exact key

No tool returns a value, set_env_var included, and its description tells the assistant not to repeat, log or save the value you give it. The value still passes through the assistant’s context once, when it makes the call, so paste a secret there only if you would paste it into that assistant anyway. A build variable reaches the site from the next build. A runtime variable reaches your production functions without a redeploy. See environment variables.

Tool
get_site_analytics Read Daily page views, pages, sources, countries, not-found pages and crawlers for the production site

The numbers are daily, through yesterday, and reach back as far as your plan keeps history. See site analytics.

Tool
create_share_link Write A proxied link to one deployment, with optional password and expiry
revoke_share_link Destructive Access ends on the next request
Tool
get_preview_access Write Short-lived access (60 s to 1 hour, default 15 minutes) to one private preview, by preview ID or exact branch name: a request header for scripted fetches and a one-time link for a headless browser. Both are credentials: do not paste them into files or commits
Tool
list_team_members Read Members and their roles
list_team_invitations Read Pending invitations. Admin only
get_billing_plan Read Plan, usage against limits, billing period
Tool
analyze_project_config Read Read a vercel.json, netlify.toml or wrangler.toml and report the deploybase equivalent
migrate_from_vercel Write Parse the config, create the project, trigger the first build
migrate_from_netlify Write As above
migrate_from_cloudflare Write As above

Migration tools report what they could not translate: environment variables you will need to set, with set_env_var or in the dashboard, and features with no equivalent here. Read that list rather than assuming a clean migration.

Deploy a new site. validate_git_repo to confirm access, create_project, trigger_deployment, then wait_for_operation with the operation_id it returned until the build is done. On a failure, get_build_logs usually contains both the cause and the fix.

Roll back. list_deployments filtered to deployed, then promote_deployment on the one before the bad one.

Move off Vercel. analyze_project_config first to see what transfers, then migrate_from_vercel, then add_domain when you are ready to move traffic.

Assistants are good at the polling loops and the log reading, which is most of what these workflows are. They are not good at knowing which deployment you meant. Keep promote_deployment and anything marked destructive behind your own confirmation.

Live 39b0b6ad built