# Coder MCP server

> Manages self-hosted cloud development environments and AI coding agents using Terraform-defined workspaces.

- Repository: https://github.com/coder/coder
- Page: https://hostedmcp.org/servers/coder/coder
- Transport: remote
- Stars: 17368
- License: AGPL-3.0
- Latest version: 2.39.1

## Install

### Claude Code

```sh
claude mcp add --transport http coder https://{coder_hostname}/api/experimental/mcp/http
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "coder": {
      "url": "https://{coder_hostname}/api/experimental/mcp/http"
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "coder": {
      "type": "http",
      "url": "https://{coder_hostname}/api/experimental/mcp/http"
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.coder]
url = "https://{coder_hostname}/api/experimental/mcp/http"
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "coder": {
      "httpUrl": "https://{coder_hostname}/api/experimental/mcp/http"
    }
  }
}
```

## FAQ

### How are Coder workspaces defined?

Workspaces are defined using Terraform, allowing you to provision resources like EC2 VMs, Kubernetes Pods, or Docker Containers.

### Can I use my own AI models with Coder Agents?

Yes, you can bring any model including Anthropic, OpenAI, Google, Bedrock, or self-hosted models to use with Coder Agents.

### How do I start a production deployment with a database?

For production, you should add a PostgreSQL database (version 13 or later) and an external access URL using the server flags.

### Does Coder support existing IDEs?

Yes, you can connect your existing editors to a workspace, including VS Code and JetBrains.
