Documentation
MCP for AI agents
Connect Claude Code, Claude Desktop, Cursor, VS Code and other MCP clients to Rebasable to deploy and operate apps.
The Rebasable MCP server lets AI agents deploy and run your apps: create services from a git repo, a local folder or inline files, follow deploys, read logs, set env vars, create databases, add domains, roll back, scale, and get an AI diagnosis (and a fix PR) for failed deploys.
Two ways to connect
| Mode | Endpoint | Auth |
|---|---|---|
| Remote (recommended) | https://api.rebasable.com/mcp (Streamable HTTP, stateless) |
Authorization: Bearer rb_... |
| Local stdio | the rebasable-mcp server running on your machine, which can also zip and upload a local folder (localPath) |
REBASABLE_API_TOKEN env var |
With the remote server, agents deploy from a git URL, an image or inline files. Agents that can run shell commands (like Claude Code) can also deploy the folder you are working in with rebasable deploy --zip from the CLI.
Create a token in Account → API tokens (dashboard.rebasable.com/account/tokens). Use the deploy or write scope to deploy; read is enough for status and logs.
Claude Code
claude mcp add --transport http rebasable https://api.rebasable.com/mcp \
--header "Authorization: Bearer rb_YOUR_TOKEN"
Or per project in .mcp.json:
{
"mcpServers": {
"rebasable": {
"type": "http",
"url": "https://api.rebasable.com/mcp",
"headers": { "Authorization": "Bearer ${REBASABLE_API_TOKEN}" }
}
}
}
Cursor
~/.cursor/mcp.json or .cursor/mcp.json:
{
"mcpServers": {
"rebasable": {
"url": "https://api.rebasable.com/mcp",
"headers": { "Authorization": "Bearer rb_YOUR_TOKEN" }
}
}
}
VS Code
.vscode/mcp.json:
{
"servers": {
"rebasable": {
"type": "http",
"url": "https://api.rebasable.com/mcp",
"headers": { "Authorization": "Bearer ${input:rebasableToken}" }
}
},
"inputs": [{ "id": "rebasableToken", "type": "promptString", "description": "Rebasable API token", "password": true }]
}
Claude Desktop
claude_desktop_config.json (uses the mcp-remote bridge to reach the remote server):
{
"mcpServers": {
"rebasable": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://api.rebasable.com/mcp", "--header", "Authorization: Bearer rb_YOUR_TOKEN"]
}
}
}
Tools
| Tool | What it does |
|---|---|
whoami |
Check the connection: user and team of the token |
list_projects, list_services, get_service |
Explore what is running |
create_service |
Create a web, static, worker, cron or private service from a repo, a local folder, inline files or an image; deploys and can wait until live |
deploy |
Redeploy, or deploy a new commit, folder, files or image |
get_deploy_status, list_deploys, cancel_deploy, rollback |
Follow and control deploys |
get_logs |
Runtime or build logs with search and time filters |
get_env_vars, set_env_vars |
Read (masked) and change environment variables |
explain_failed_deploy |
AI root cause and fix; openPr=true opens a pull request |
create_database, list_databases, get_database_url |
Managed PostgreSQL and Key Value |
add_domain, list_domains, verify_domain |
Custom domains with DNS instructions |
scale, restart_service |
Operate services |
get_security_scan |
Security scan findings of a deploy |
Things to ask
- “Deploy this folder to Rebasable as a web service and add a Postgres.”
- “Why did my last deploy fail? Fix it and redeploy.”
- “Show me the errors in the api logs from the last hour.”
- “Add the domain app.example.com to the web service and tell me which DNS record to create.”
Your agent can only do what the token allows. Use a read token for agents that should only look.