Skip to content
Site Agent icon

Connect your AI agent to WordPress.

Site Agent is a free WordPress MCP plugin. Claude, ChatGPT, Cursor and other AI clients sign in with OAuth, read your real content and code, and change only what you’ve switched on.

Free through a checkout that asks for no card. You get the ZIP and a license key for dashboard updates and security fixes. View the source

Version 1.2.3 · Requires WordPress 6.9 · Requires PHP 8.0 · GPL

Your AI client · Site Agent connected

The intro on my hosting guide runs too long. Tighten it and stage the change so I can review it.

I’ll read the post first, so I’m working from what’s actually published.

Read content block markup, SEO fields and the hashDone
Save content new intro, same hashStaged

Done. The new intro is two sentences. It’s saved as an autosave on the live post, so visitors still see the old version until you publish it.

Hosting guide

There is an autosave of this post that is more recent than the version below. View the autosave

Illustration of a real Site Agent flow: read first, then stage the edit for your review.

An AI agent that can’t see your site works from guesses and pasted snippets. Site Agent gives it the real thing: your posts, media, templates and code, through 18 core tools you switch on one group at a time. It also brings in the AI tools your other plugins already ship.

Reads before it writes

The agent checks the actual post, file or setting first, and every write must carry the hash from that read.

Edits wait for you

Changes to a published post are saved as an autosave. The live page changes only when you say publish.

Code has a safety net

PHP is checked before it’s saved, and a change that still causes a fatal error is swapped back for the old file.

Clients sign in through WordPress with OAuth. On the consent screen you tick the tool groups that client gets, and nothing else. Access tokens last an hour, refresh tokens rotate, and revoking a connection in Tools > Site Agent ends it everywhere, including sessions that are already open.

Site Agent's OAuth consent screen asking which tool groups Cursor may use
The real consent screen, shown here for Cursor.

Everything starts switched off.

New installations start with Site Agent disabled. Turn it on and your agent can read the site. Content writes, source files, PHP and WP-CLI each have their own switch, and each stays off until you need it.

In wp-config.php, SITE_AGENT_DISABLED blocks every tool and DISALLOW_FILE_EDIT blocks every source and developer tool.

Site Agent's Tools tab with Enable Site Agent, OAuth connections and Content writes on, URL authentication marked Not recommended, and source editing, PHP and WP-CLI switched off
The Tools tab, set up for content work. Developer tools stay off.

It knows where your page builder keeps the page.

Block markup written into an Elementor or Bricks page changes nothing visitors see. Site Agent tells the agent where each layout lives, and a bundled skill shows how that builder expects it to change.

Workflow guides also ship for Page Blocks Builder, Core Forms, Core Commerce, Core Support, MailerHive, FluentCart and Stackless. Plugins can add their own, as GT Link Manager and Core Tables do.

BuilderLayout lives in
GutenbergBlock markup in the post
GenerateBlocksBlock markup with its own CSS
ElementorJSON in post meta, saved through Elementor
BricksBricks’ own abilities, on 2.4 and later
DiviShortcodes or Divi 5 blocks

Built for the day your agent gets it wrong.

Six checks run on every change, so the common mistakes are caught or easy to undo before visitors see them.

  • Live posts stay live

    Edits to published posts are saved as an autosave you review in the editor.

    Content
  • Broken PHP gets reverted

    Site Agent loads your site after a save and puts the old file back on a fatal error.

    Code
  • No silent overwrites

    If you or another tool changed something since the agent’s last read, the write is refused.

    Content
  • Errors the agent can fix

    Failed calls return the real message and line number, so the agent corrects its own code.

    Code
  • Permissions per client

    A client can use only the groups you approved, and only if they’re on for the site.

    Access
  • Call history

    The last 100 calls with tool, target, client and result. Content and credentials stay out.

    Access

18 core tools, in groups you control.

Only the read tools work once Site Agent is enabled. Every other group stays off until you switch it on and approve it for a client.

Tool groupWhat the agent can doDefault
Read the site 7 toolsSite context, posts and pages, terms, media and builder skillsOn once enabled
Content writes 3 toolsSave drafts and updates, upload and update mediaOff
Source inspection 2 toolsList and read plugin, theme and must-use plugin filesOff
Source editing 4 toolsWrite, create, move and delete files, with hash checksOff
PHP execution 1 toolRun PHP with WordPress loaded and get the output backOff
WP-CLI execution 1 toolRun foreground commands as the signed-in user, no shellOff
Bricks tools OptionalBricks’ own abilities on Bricks 2.4 and laterOff
Core Support tools OptionalTickets, activity, team alerts and the roadmap. Never customer replies.Off
Plugin tools OptionalGeneratePress AI, FluentCRM, FluentCart, FluentCommunity, FluentPlayer, ACF, Rank Math, Core Forms, Core Commerce and Core Tables, each behind its own switchOff

Your plugins’ own AI tools, on the same connection.

GeneratePress AI, FluentCRM, FluentCart, FluentCommunity, FluentPlayer, ACF and Rank Math ship their own MCP tools. Site Agent serves them on its endpoint, each behind its own switch, so your AI app needs one URL and one sign-in.

Each plugin’s own MCP setting and permission checks still decide what runs. A plugin whose own MCP is off serves nothing. Calls to the ones that are on show up in Site Agent’s activity history.

The Fluent plugins, ACF and Rank Math arrive as one read tool and one write tool each, with a help action that lists what they can do. That keeps your app’s tool list short.

Site Agent's Plugin tools card with switches for GeneratePress AI, FluentCRM, FluentCart, FluentCommunity, FluentPlayer, ACF and Rank Math tools
Plugin tools on the Tools tab. Each group stays off until you switch it on and approve it for an app.

No second copy of the MCP Adapter.

Some plugins, such as GeneratePress AI, ask for the official MCP Adapter plugin before an AI app can connect. Site Agent already bundles that adapter, so they run their own MCP servers on it. You pick the plugins that get it, or choose Automatic. Each server keeps its plugin’s own address, sign-in and permission checks.

Site Agent's Plugins tab with MCP Adapter compatibility and the GeneratePress AI and FluentCRM MCP servers running
Tools > Site Agent > Plugins, with GeneratePress AI’s and FluentCRM’s servers running on Site Agent’s adapter.
GeneratePress AI settings screen reporting the site ready: license active, MCP endpoint ready, browser sign-in ready and 68 abilities exposed
GeneratePress AI on the same site reports it’s ready, with no MCP Adapter plugin installed.

Set up in four steps. No token to copy.

OAuth is on by default. The only thing you paste into your client is the endpoint.

  1. Install the plugin

    Upload the ZIP from your account in Plugins > Add New, then open Tools > Site Agent.

  2. Choose the tools

    Enable Site Agent and the tool groups your task needs, then save.

  3. Add the endpoint

    Add it to your client as a remote MCP server, with no credentials.

  4. Approve the client

    Sign in to WordPress, tick its tool groups and choose Allow.

Watch the whole setup on a live site: I install Site Agent, connect ChatGPT and run the first tasks (4:50).

MCP server URL

https://your-site.com/wp-json/site-agent/v1/mcp
ClientHow to connect
ChatGPTTurn on Developer mode (paid plans), add an app with the endpoint and choose OAuth.
ClaudeCustomize > Connectors > Add custom connector, paste the endpoint, then Connect.
Claude Codeclaude mcp add --transport http site-agent plus the endpoint, then /mcp to sign in.
CursorAdd the URL to ~/.cursor/mcp.json and sign in from Cursor Settings > MCP.
VS CodeAdd the server to .vscode/mcp.json. Copilot agent mode opens the sign-in.
Codexcodex mcp add site-agent --url plus the endpoint, then codex mcp login site-agent.
Gemini CLIAdd httpUrl to ~/.gemini/settings.json, then run /mcp auth site-agent.
ZedAdd the URL under context_servers in settings.json. The agent panel opens the sign-in.
Site Agent's Overview tab showing the MCP endpoint, connection steps for Claude, the site's status and the AI app companion download
The Overview tab shows these steps for each app, filled in with your site’s endpoint. It also has a companion download for ChatGPT and Codex, with Site Agent’s listing, your endpoint and a WordPress skill, and no credentials.

Remote clients need your site on HTTPS. Connecting needs an administrator account, or a super administrator on multisite.

Site Agent is free.

The ZIP comes with a free checkout that asks for no card, and every tool and every safety check works without a license key. The code is GPL and public on GitHub.

The free checkout gets you the ZIP and a license key. The key turns on dashboard updates and security fixes, and nothing else.

Questions

Which AI clients can connect?

Any client that supports remote MCP over Streamable HTTP with OAuth. Add the endpoint, sign in to WordPress and approve the client’s tool groups. The endpoint URL is the only thing you paste.

Is it safe to give an AI agent write access?

For content work on most sites, yes, because edits to live posts are staged and every update is checked against the last read. The developer tools run with server privileges, so I’d keep them on staging and give production clients content access only.

What happens when the agent edits a published post?

The change is saved as your autosave. WordPress shows it in the editor next to the live version, and you decide whether to publish it. The agent changes the live post only by passing a status.

Where does my site’s data go?

Your AI client connects straight to WordPress. Site Agent has no hosted proxy and no telemetry. Automatic updates send gauravtiwari.org your license key, site URL and the plugin, WordPress and PHP versions.

What can the file tools reach?

Only plugins, themes and mu-plugins inside wp-content. Hidden files, symlinks and credential files such as wp-config.php are blocked, and Site Agent can’t edit its own files.

Do I need the MCP Adapter plugin?

No. Site Agent bundles the official MCP Adapter. Plugins that look for it, such as GeneratePress AI, can run their own MCP servers on Site Agent’s copy once you allow them under Tools > Site Agent > Plugins. If the MCP Adapter plugin is active, Site Agent leaves it in charge.

How do updates work?

The ZIP installs like any plugin and every tool works without a key. Automatic updates need the free license key, which comes with the free checkout and is activated on the Site Agent screen. After that, new versions and security fixes appear on your Plugins screen like any other update. That’s all the key does, and you can always install a release ZIP by hand.

Start with a staging site.

Connect your agent, check what it can read, then switch on more tools when the task needs them.