# Claude Code + GitCMS — Connect Claude Code to Your Website CMS

> Use Claude Code to make your site client-editable and set up GitCMS, then connect it over MCP so content changes go through review like everyone else’s.

Canonical: https://gitcms.dev/agents/claude-code/

Use Claude Code to make your site client-editable and set up GitCMS, then connect it over MCP so content changes go through review like everyone else’s.

## What is Claude Code?

Claude Code is Anthropic’s agentic coding tool. It runs in your terminal and editor, reads and edits your codebase, runs commands, and can connect to MCP servers to use external tools.

## Why connect it to GitCMS?

Claude Code is one of the fastest ways to build a website. But the site it builds has no admin: clients and marketers can’t edit it, and Claude Code’s own content edits land straight in the repo. GitCMS fills that gap. Claude Code sets GitCMS up on the repository, your team edits visually, and when Claude Code works on content through the GitCMS MCP server, its changes become drafts people review.

## Setup

### 1. Make the site client-editable

If copy is hardcoded in components, ask Claude Code to move it into content collections first. Use the “Make a site client-editable” prompt from the prompt library.

### 2. Set up GitCMS on the repository

Add the site in GitCMS, choose Set up with your coding agent, and paste the prompt into Claude Code. It runs the setup CLI, writes the .gitcms configuration, and pushes it.

```text
npx create-gitcms@latest --yes
```

### 3. Connect Claude Code to GitCMS

Add the GitCMS MCP server. Use --scope user to make it available in every project.

```text
claude mcp add --transport http --scope user gitcms https://mcp.gitcms.dev
```

### 4. Sign in

Start Claude Code, run /mcp, choose gitcms, and authenticate. Sign in to GitCMS in the browser window that opens.

```text
/mcp
```

## Example prompts

### Changelog from your commits

```text
Read the commits since the last release tag. Using GitCMS, draft a changelog entry for [site] that explains the changes for customers, and submit it for review.
```

### Docs that match the code

```text
I just renamed [API or setting]. Using GitCMS, find every docs entry on [site] that mentions the old name, update them in one content task, and submit it for review.
```

### Hand off a client site

```text
Move every client-editable string on this site into content collections without changing the rendered output. Then run the GitCMS setup and tell me which collections the client will see.
```

## FAQ

### Why use GitCMS when Claude Code can edit the files directly?

Claude Code can, but then nobody outside engineering reviews content changes, and clients still can’t edit the site. Through GitCMS, content changes become content tasks that marketers or clients review, with the same rules as their own edits. Code changes still go through your normal pull requests.

### Can I use it across many client sites?

Yes. One GitCMS connection gives Claude Code access to every site you can access in GitCMS, so agencies can work on content across client sites without cloning each repository.

### I designed the site in Claude Design. Does this still apply?

Yes. Claude Design hands a finished design to Claude Code, which builds the site in your repository. From there it’s the same handoff: make the copy client-editable, set up GitCMS, and invite your client.

### Can the agent publish to my live site?

Not on sites that use review before publish. Agents can create content tasks, draft, edit, and submit for review; publishing is a human action in GitCMS. Sites that use direct publish commit saves straight to the default branch, for agents too.

### Does the agent get access to my repository?

No. The agent works through GitCMS’s content tools with the scopes you grant. It never receives your Git credentials.

### Do I need a paid GitCMS plan?

Agent access through MCP requires a licensed site. In preview mode you can explore the site in the web app, but MCP stays locked.
