# WritBase MCP server

> Provides a persistent task registry and control plane for AI agent fleets with scoped permissions and full provenance via MCP.

- Repository: https://github.com/Writbase/writbase
- Page: https://hostedmcp.org/servers/writbase/writbase
- Transport: stdio, remote
- Stars: 11
- License: Apache-2.0
- Latest version: 0.1.3

## Install

### Claude Code

```sh
claude mcp add --env WRITBASE_AGENT_KEY=<YOUR_WRITBASE_AGENT_KEY> --env WRITBASE_URL=<WRITBASE_URL> writbase -- npx -y writbase
```

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

```json
{
  "mcpServers": {
    "writbase": {
      "command": "npx",
      "args": [
        "-y",
        "writbase"
      ],
      "env": {
        "WRITBASE_AGENT_KEY": "<YOUR_WRITBASE_AGENT_KEY>",
        "WRITBASE_URL": "<WRITBASE_URL>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "writbase": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "writbase"
      ],
      "env": {
        "WRITBASE_AGENT_KEY": "<YOUR_WRITBASE_AGENT_KEY>",
        "WRITBASE_URL": "<WRITBASE_URL>"
      }
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "writbase": {
      "command": "npx",
      "args": [
        "-y",
        "writbase"
      ],
      "env": {
        "WRITBASE_AGENT_KEY": "<YOUR_WRITBASE_AGENT_KEY>",
        "WRITBASE_URL": "<WRITBASE_URL>"
      }
    }
  }
}
```

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

```toml
[mcp_servers.writbase]
command = "npx"
args = ["-y", "writbase"]

[mcp_servers.writbase.env]
WRITBASE_AGENT_KEY = "<YOUR_WRITBASE_AGENT_KEY>"
WRITBASE_URL = "<WRITBASE_URL>"
```

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

```json
{
  "mcpServers": {
    "writbase": {
      "command": "npx",
      "args": [
        "-y",
        "writbase"
      ],
      "env": {
        "WRITBASE_AGENT_KEY": "<YOUR_WRITBASE_AGENT_KEY>",
        "WRITBASE_URL": "<WRITBASE_URL>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `WRITBASE_AGENT_KEY` | yes | yes | Agent key (wb_<key_id>_<secret>) |
| `WRITBASE_URL` | yes | no | Your WritBase MCP endpoint URL |

## Tools (11)

- `info`
- `get_tasks`
- `add_task`
- `update_task`
- `manage_agent_keys`
- `manage_agent_permissions`
- `get_provenance`
- `manage_projects`
- `manage_departments`
- `subscribe`
- `discover_agents`

## FAQ

### Can agents assign tasks to each other?

Yes, agents can perform inter-agent delegation with built-in depth limits and cycle detection.
