# NextBlock CMS MCP server

> Lets an AI client manage pages, posts, blocks, media and settings on a self-hosted NextBlock site.

- Repository: https://github.com/nextblock-cms/nextblock
- Page: https://hostedmcp.org/servers/nextblock-cms/nextblock
- Transport: stdio, remote
- Stars: 20
- Latest version: 1.0.0

## Install

### Claude Code

```sh
claude mcp add nextblock -- npx -y create-nextblock
```

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

```json
{
  "mcpServers": {
    "nextblock": {
      "command": "npx",
      "args": [
        "-y",
        "create-nextblock"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "nextblock": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "create-nextblock"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "nextblock": {
      "command": "npx",
      "args": [
        "-y",
        "create-nextblock"
      ]
    }
  }
}
```

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

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

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

```json
{
  "mcpServers": {
    "nextblock": {
      "command": "npx",
      "args": [
        "-y",
        "create-nextblock"
      ]
    }
  }
}
```

## FAQ

### How do MCP clients connect to a NextBlock site?

Each NextBlock site serves an MCP endpoint at /api/mcp using Streamable HTTP with a bearer token, and the registry entry prompts for your site host and token.

### Which AI coding agents can use the NextBlock MCP server?

Claude Code, Cursor, Codex, Jules and other MCP-capable agents can scaffold a site and build pages over MCP.
