# Cursor + GitCMS — Connect Cursor to Your Website CMS

> Use Cursor’s agent to make your site client-editable and set up GitCMS, then connect Cursor over MCP so content changes go through review.

Canonical: https://gitcms.dev/agents/cursor/

Use Cursor’s agent to make your site client-editable and set up GitCMS, then connect Cursor over MCP so content changes go through review.

## What is Cursor?

Cursor is an AI code editor. Its agent can plan and make changes across a codebase, run commands, and use MCP servers to work with external tools.

## Why connect it to GitCMS?

Cursor is where a lot of marketing sites now get built and tweaked. GitCMS is where the people who don’t open Cursor run them. Cursor sets up GitCMS on the repo, your team and clients edit visually, and Cursor’s own content drafts go through the same review flow.

## Setup

### 1. Make the site client-editable

Ask Cursor’s agent to move hardcoded copy into content collections without changing the design. See the “Make a site client-editable” prompt.

### 2. Set up GitCMS on the repository

Add the site in GitCMS, choose Set up with your coding agent, and paste the prompt into Cursor’s agent. It runs the setup CLI and pushes the .gitcms configuration.

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

### 3. Add the GitCMS MCP server

In Cursor Settings, open the MCP section and add a new server, or add it to ~/.cursor/mcp.json:

```text
{
  "mcpServers": {
    "gitcms": { "url": "https://mcp.gitcms.dev" }
  }
}
```

### 4. Sign in

Cursor shows that the GitCMS server needs authentication. Click to sign in to GitCMS in your browser, then ask the agent to list your sites.

## Example prompts

### Landing page copy, reviewed

```text
Using GitCMS, rewrite the hero and FAQ copy on the [page] entry of [site] for [audience]. Keep the structure and submit it for review so marketing can approve it.
```

### Content for a new feature

```text
I just built [feature]. Using GitCMS, draft a docs page and a short changelog entry for [site] in one content task and submit it for review.
```

### Make it editable

```text
Move every client-editable string into content collections without changing the rendered pages, then run the GitCMS setup.
```

## FAQ

### Should I put the MCP config in the project or my user settings?

Use ~/.cursor/mcp.json to make GitCMS available in every project. Use .cursor/mcp.json in a repository to share the setup with your team; each person still signs in with their own GitCMS account.

### 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.
