Blog

How to connect Claude to your CMS with MCP

, by The CitrusPeel team, 9 min read

Two rounded shapes joined by a single line, one labelled agent and one labelled CMS

You can connect Claude to your CMS in a few minutes, and after that publishing a post is a conversation. This guide uses CitrusPeel, which exposes every dashboard action as an MCP tool, and walks from an empty workspace to a scheduled article, then on to the habits that keep agent-run publishing safe.

It covers the Claude apps and Claude Code. The same steps work for ChatGPT and any other client that supports remote MCP servers.

What MCP is, in one paragraph

The Model Context Protocol (MCP) is an open standard for giving AI assistants tools. A service runs an MCP server at a URL; an assistant connects to it, reads the list of tools and their descriptions, and calls them when a task needs them. For a CMS, the tools are things like create_entry, upload_media_from_url and publish_entry. Once connected, Claude can work on your real content instead of handing you text to paste.

If you are new to the idea of letting an agent run a CMS, what an agentic CMS is explains the background.

What you need

  • A CitrusPeel account with at least one workspace. A workspace is one website.
  • A Claude plan that supports custom connectors, or Claude Code installed on your computer.
  • Ten minutes, most of which is Step 1.

You do not need an API key for this route. Claude signs in through your browser using OAuth, the same way you would sign in to any app with your Google account. Keys come in later, for scripts and automations.

Step 1: write your agent instructions

Before connecting anything, tell future agents about your site. In your workspace, open Agent instructions. If it is empty, choose Use template to get the usual sections:

  • About the site: what it is, who reads it and what they should get from it.
  • Voice and tone: how posts should sound, words to avoid, US or UK spelling.
  • Branding: colours, fonts, the exact spelling of your product names.
  • Images: the style of cover images and how to write alt text.
  • Content and SEO: typical length, structure, the tags you use, pages to link to.
  • Do not: topics, claims or habits to stay away from.

A few lines in each section is enough to start. For example:

Home espresso guides for beginners who have just bought their first machine. Friendly and practical, no jargon, UK spelling. Every post should end with one thing the reader can try tomorrow morning.

Agents read this document before they write, and it is the cheapest way to get drafts that sound like your site. It also grows over time: when you tell Claude something worth keeping ("never recommend a specific retailer"), it can add a dated note under "Notes from agents", so the next conversation starts with that rule already known. Earlier versions are kept, so you can undo any change from the History button.

Step 2: add the connector

In the Claude apps

  1. In the CitrusPeel dashboard, open Connect and copy the MCP address. It ends in /mcp.
  2. In Claude, open Settings, then Connectors, and choose Add custom connector.
  3. Give it a name, such as CitrusPeel, paste the address and confirm.
  4. Claude opens CitrusPeel in your browser. Sign in if you are asked to.
  5. Check the name of the app asking for access, read what it will be able to do, and choose Connect.

That is the whole setup. Back in Claude, the CitrusPeel tools are now available in your conversations. You may need to switch the connector on for a conversation from the tools menu.

In Claude Code

The same thing is one command:

claude mcp add --transport http citruspeel https://studio.citruspeel.app/mcp

Then run /mcp inside Claude Code and choose CitrusPeel to sign in. Your browser opens the same approval screen.

In other clients

Clients that support OAuth need only the URL. Clients that do not can use a secret key instead. Create one under API keys in the dashboard and send it as a bearer token in the client's configuration:

{
  "mcpServers": {
    "citruspeel": {
      "url": "https://studio.citruspeel.app/mcp",
      "headers": { "Authorization": "Bearer cp_sk_YOUR_SECRET_KEY" }
    }
  }
}

Every connection, whether by OAuth or by key, appears under API keys in the dashboard, where you can see when it was last used and remove it at any time.

What the connection can do

The approval screen lists what you are granting. A connection made this way acts for you: it can read, write, publish and delete content in all your workspaces, upload and delete media, and change content types, API keys and webhooks. That is deliberate, because it lets Claude do anything you can do in the dashboard.

It does not mean Claude will do those things unprompted. Claude acts only on what you ask, publishing is always an explicit step, and every change is recorded. If you want hard limits rather than good behaviour, use a secret key with narrower permissions for that client instead, as described under "Keeping control" below.

Step 3: ask for a draft

Start with something specific. Name the workspace, the topic, the length and the status you want:

Look at my Slow Pour workspace and draft a post on how to dial in espresso grind size. Follow the workspace's agent instructions. Keep it as a draft.

Behind the scenes, Claude calls get_workspace to learn your content types, their fields and your instructions, then create_entry. The response to that call includes an SEO report, so you will usually see Claude follow up on its own:

The draft scored 68. It has no SEO description and one image without alt text. Fixing both.

If it does not, ask: "Fix everything the SEO report flags." The SEO checklist explains each check and why it matters.

Adding images

Claude can attach images in two ways. If you have an image online, give it the link: "Use this photo as the cover, with alt text describing the grinder." It calls upload_media_from_url, stores a copy in your workspace and sets the alt text. If Claude produced an image itself, or you are working in Claude Code with local files, it can upload the file directly with upload_media.

Ask for alt text every time, or put the rule in your agent instructions so you never have to.

Step 4: review

Open the draft in the dashboard. The editor shows the post as Markdown with a preview, and the side panel shows how the page will look in search results along with each SEO check.

Edit anything by hand. Your changes and the agent's are saved as separate revisions, up to the last 30, so you can always go back. If Claude makes a change you do not like, you can restore an earlier revision from the dashboard or simply ask: "Restore the version of the grinder post from before your last edit."

A useful habit at this stage is to tell Claude what you changed and why. "I cut the history section; beginners do not need it. Remember that for future posts." It can append that to the agent instructions, and the next draft will be closer.

Step 5: publish or schedule

When the draft is ready:

Schedule it for Friday at 9am UK time.

Claude calls publish_entry with a date. Scheduled posts go live on their own within a few minutes of the chosen time. If you have added a webhook, your website is told to refresh as soon as the post is live, so a statically built site rebuilds without you doing anything.

To publish straight away, say so: "Publish it now." To take a post down without deleting it, ask Claude to unpublish it. The content is kept as a draft.

Prompts worth keeping

Once the connection works, most of the value comes from repeatable requests. A few that work well:

Planning

  • "List every published post on the coffee site with its tags, and suggest ten topics we have not covered."
  • "Which of my posts would be better as two separate posts? Explain why."

Writing

  • "Draft the first three topics from that list, as drafts, following the agent instructions."
  • "Rewrite the introduction of the grinder post so the answer comes in the first two sentences."

Quality

  • "List my drafts and tell me which have SEO warnings."
  • "Check every post for images without alt text and add it."
  • "Find posts with descriptions over 160 characters and shorten them."

Maintenance

  • "Update the three oldest posts: check the facts still hold and refresh the descriptions."
  • "Retag every post about milk as milk-drinks instead of latte."
  • "Show me what changed on the site this week." (Claude reads the activity log.)

Structure

  • "Create a content type for product reviews with a rating from 1 to 5, pros, cons and a buy link."
  • "Add an optional reading level field to posts."

Running bulk jobs from Claude Code

The Claude apps are best for one post at a time. For larger jobs, Claude Code is often the better tool, because it can also work with files on your computer.

A few examples of what that makes possible:

  • Migrating content. Point Claude Code at a folder of Markdown files exported from another CMS and ask it to create an entry for each, keeping the slugs, setting the descriptions and uploading the images.
  • Auditing a whole site. "Go through every post in the hiking workspace, list the ones with SEO warnings in a table, then fix them in batches of ten, as drafts where the change is more than a tweak."
  • Generating images. Claude Code can draw simple illustrations as files and upload them with upload_media, following the image style in your agent instructions.

For long jobs, ask it to report progress as it goes and to stop on the first error it cannot explain. Everything it does still lands in the activity log, with revisions you can restore.

Troubleshooting

Claude says it does not have CitrusPeel tools. Check that the connector is switched on for the conversation, then ask again. In Claude Code, run /mcp to see whether the server is connected.

The approval screen asks you to sign in again. You are signed out of the dashboard in that browser. Sign in, and the approval screen returns.

Claude picks the wrong site. If you have several workspaces, name the one you mean. You can also limit an API key to a single workspace so an automation cannot touch the others.

A call fails with a permissions error. The key or connection does not have the permission the action needs. Check its permissions under API keys.

A scheduled post did not appear on your site. It is live in CitrusPeel, but your site may cache pages. Add a webhook so the site refreshes on publish, or check the webhook's last status under Connect.

Keeping control

Agent-run publishing is comfortable when you can see everything and undo anything. Five habits help:

  1. Ask for drafts until you trust the output for a given kind of post. Publishing is always a separate step that Claude takes only when you ask.
  2. Read the activity log now and then. Every change is listed with the name of the connection or key that made it, so you can tell your own edits from the agent's.
  3. Keep the agent instructions current. When a draft misses the mark, the fix is usually a sentence in the instructions, not a longer prompt next time.
  4. Use a narrow key for narrow jobs. A secret key can be read only, drafts only, publishing or full access, limited to one workspace, and set to expire. Keys expire after 90 days by default, and you can rotate one with a grace period so nothing breaks.
  5. Remove connections you no longer use. Disconnecting under API keys stops access immediately.

For the full list of tools, see the actions reference. To see what the plan includes, look at pricing.