# The MCP server

> Let Claude or any MCP client deploy, read logs and manage domains, with only the permissions you give it.

> Coming next. The MCP server is on the roadmap after the first release; this page describes how it will work. Today agents use the CLI with --json and a scoped token.

## Connect

Remote, nothing to install:

Claude Code:

```
claude mcp add --transport http 00b5e2 https://mcp.00b5e2.com
```

Or local, through the CLI:

mcp.json:

```json
{ "mcpServers": { "00b5e2": { "command": "00b5e2", "args": ["mcp"] } } }
```

> The first time, the client opens login.00b5e2.com. You pick the organisation and the permissions, and the agent gets its own token.

## Tools

### projects

| name | what it does |  |
| --- | --- | --- |
| `list_projects` | Projects and their services | read |
| `create_project` | Create a project from a repo | deploy |

### services

| name | what it does |  |
| --- | --- | --- |
| `list_services` | Services of a project, with kind, status, address and open or closed | read |
| `add_service` | Add a site, API, worker, database, cron job or container (optional address name) | deploy |
| `remove_service` | Remove a service and its development data | deploy |
| `open_service` | Open a service at its address (a database on its own port, with TLS and defences) | deploy |
| `close_service` | Close a service again | deploy |
| `link_service` | Give a service the variables of another | deploy |

### deploys

| name | what it does |  |
| --- | --- | --- |
| `deploy` | Deploy to development, production or a preview | deploy |
| `get_deployment` | Status, build log and address of a deploy | read |
| `promote` | Move a development deploy to production | deploy:prod |
| `rollback` | Go back to a previous deploy | deploy |

### previews

| name | what it does |  |
| --- | --- | --- |
| `list_previews` | Previews with branch, commit and address | read |
| `delete_preview` | Remove a preview | deploy |

### variables

| name | what it does |  |
| --- | --- | --- |
| `list_variables` | Names, environment and date, no secret values | read |
| `get_variable` | Value of a variable that isn't secret | env |
| `set_variable` | Set or rotate a variable, never read a secret | env |
| `delete_variable` | Remove a variable from one environment | env |

### databases

| name | what it does |  |
| --- | --- | --- |
| `create_database` | Create a Postgres database. MySQL and Valkey coming next | db |
| `list_backups` | Nightly backups of a database, by date | read |
| `restore_database` | Restore a database to a date | db |

### cron jobs

| name | what it does |  |
| --- | --- | --- |
| `add_cron` | Add or change a cron job | deploy |
| `run_cron` | Start a run now | deploy |
| `list_cron_runs` | Recent runs with result, duration and log | read |

### domains

| name | what it does |  |
| --- | --- | --- |
| `list_domains` | Domains and their state | read |
| `add_domain` | Add a domain and get its records | domains |
| `verify_domain` | Check the records and issue HTTPS | domains |

### logs and metrics

| name | what it does |  |
| --- | --- | --- |
| `get_logs` | Recent or live logs | logs:read |
| `get_metrics` | Metrics for a window of time | logs:read |

### organisation

| name | what it does |  |
| --- | --- | --- |
| `get_usage` | Seats and cubes | read |
| `list_members` | Members and their roles | read |
| `list_tokens` | Tokens and their scopes | read |
| `get_audit` | What each token and person did | read |

## Permissions

Each token says which projects it can touch and what it can do there. By default an agent can deploy to development and read logs, nothing else.

## Examples

> **you:** why is the api of my-site failing?
>
> **agent:** `get_logs(project: "my-site", service: "api", since: "1h")`
>
> DATABASE_URL is missing in development since deployment 128. Want me to copy it from production?

Previous: [CLI](https://docs.00b5e2.com/cli.md)
Next: [Tokens](https://docs.00b5e2.com/tokens.md)
