# Manage Cloud with MCP

Manage Cloud from Claude, Cursor and other AI assistants with the Better Stack MCP server.

## Connect the MCP server

Add the Cloud tools to your MCP client:

[code-tabs]
```json
[label MCP configuration]
{
  "mcpServers": {
    "betterstack": {
      "type": "http",
      "url": "https://mcp.betterstack.com?toolsets=cloud"
    }
  }
}
```
```bash
[label Claude Code]
claude mcp add --transport http betterstack "https://mcp.betterstack.com?toolsets=cloud"
```
```toml
[label Codex]
# ~/.codex/config.toml
[mcp_servers.betterstack]
url = "https://mcp.betterstack.com?toolsets=cloud"
```
```bash
[label Antigravity]
agy mcp add betterstack "https://mcp.betterstack.com?toolsets=cloud"
```
[/code-tabs]

Sign in through the browser when your client asks you to. In Codex, run `codex mcp login betterstack` to sign in. Leave out `?toolsets=cloud` to also get the Incidents, Telemetry and Errors tools.

To give your assistant read-only access, use `https://mcp.betterstack.com/readonly?toolsets=cloud`. Your assistant then gets only the tools that list and read your resources.

For other clients and for API token setup, see [Better Stack MCP server](https://betterstack.com/docs/getting-started/integrations/mcp/).

## Example prompts

- "List my servers in us-west-2a and their status."
- "Create an AM1 server called web-1 with Ubuntu 26.04 in us-west-2a, with my SSH key my-laptop."
- "Add a firewall to web-1 that only allows SSH and HTTPS."
- "Which of my servers are stopped?"
- "Create a PostgreSQL database in eu-central-1a for my staging app."

## Cloud tools

Each Cloud tool works in one [data center](https://betterstack.com/docs/cloud/servers/regions/), such as `us-west-2a`, and the tools that create a resource take your team's ID. If you can open teams in more than one organization, every tool takes it. The main tools:

- **Servers:** `servers`, `server`, `create_server`, `start_server` and `stop_server`.
- **Choosing a server:** `availability_zones`, `server_types` and `images`.
- **Access:** `ssh_keys`, `create_ssh_key`, `create_firewall` and `create_firewall_rule`.
- **Kubernetes and databases:** `kubernetes_clusters`, `create_kubernetes_cluster`, `postgres` and `create_postgres`.

[Better Stack MCP tools](https://betterstack.com/docs/getting-started/integrations/mcp/tools/) lists every Cloud tool.

## Need help?

Please let us know at hello@betterstack.com.  
We're happy to help! 🙏
