Proofroom
by sibrahimpa1
README.md
# Proofroom: a WordPress MCP server where every change waits for an editor
An MCP server that connects Claude (Desktop, Code or any MCP client) to a WordPress site through the REST API. Claude can read posts and pages, audit them for SEO and accessibility problems, propose fixes and edits, and create drafts. It cannot approve, apply, publish or delete anything. Every proposal becomes a change set. In the review console, an editor accepts, rewrites or rejects each edit, sees how it will look in Google or to a screen reader, and applies what they accepted with their own WordPress permissions. A site health score shows what the review will change, and every change can be rolled back.
**Live demo: https://sibrahimpa1.github.io/wordpress-mcp-server/**
The demo shows a real session: Claude's tool calls were replayed through this server, running as a subprocess, against a made-up outdoor shop's blog. In the demo you can:
- review the ten edits Claude proposed, one at a time, with keyboard shortcuts;
- rewrite a draft and watch the checks run as you type;
- reject an edit with a note for Claude;
- switch between the editor, an author and Claude itself;
- approve and apply, then roll back;
- simulate a colleague editing a post mid-review.

## Smart parts
- **Site health with a forecast.** A 0 to 100 score that weighs every finding by severity. The overview shows today's score and the score after the edits you've accepted (62 → 87 on the demo site), and it updates as you decide.
- **Links for posts nobody links to.** For an orphan post, the server finds published pages that already mention it in plain text and proposes the link there, never inside an existing link or a heading. A "needs a person" problem becomes a one-click proposal.
- **Rewrite instead of reject.** Editors can change Claude's alt text, title or meta description. The same checks that judged Claude's draft run live on theirs: length, keyword stuffing, numbers the article doesn't contain, and keeping the original's main words.
- **See the effect, not the HTML.** Titles and descriptions show as a Google result, before and after. Alt text shows as what VoiceOver will say. Link changes show as readers will see them, and each new link is checked to resolve.
- **Per-edit decisions, partial apply.** Accept nine edits and reject one. The rejected edit is never written, and its note goes back to Claude through `get_change_set`.
- **Policy.** Editors protect pages Claude may never touch, cap the size of a change set, and switch the server to read-only. Edits already proposed for a page that becomes protected can only be rejected.
## What Claude can do through it
| Tool | Kind | What it does |
|---|---|---|
| `site_overview` | read | Site, the MCP user's role, published counts, mode |
| `search_content`, `get_content` | read | Find and read posts and pages (raw content, meta description, modified time) |
| `audit_site` | read | Finds missing alt text, broken internal links, missing or duplicate meta descriptions, extra H1s, long or duplicate titles, old years in titles, thin content, orphan posts, and menu pages set to noindex. Each finding has evidence and says whether it's safe to fix or needs a person. |
| `propose_fixes` | propose | Turns findings into a change set. Code fixes links, headings and noindex. Claude drafts alt text, meta descriptions and titles, and code checks every draft. |
| `propose_edit` | propose | Suggest a new title, content or meta description for one post |
| `create_draft` | propose | New post, always saved as a draft |
| `list_change_sets`, `get_change_set` | read | See what is waiting, approved, applied or rejected |
There is no approve, apply, publish or delete tool. In `WPMCP_MODE=read` only the read tools are listed.
## Why it's safe to hand to a team
- **Two locks, not one.** The server has no write tools. On top of that, Claude's WordPress user is a Contributor: even a bug could not make it edit other people's posts or publish. Approved changes are written with the approver's own application password.
- **Roles are WordPress's own.** An author can approve changes to their own posts only. Anything that changes search visibility (noindex) needs an editor. Nobody can approve their own proposal.
- **No surprises from stale reviews.** Before applying, every target is checked against the version Claude proposed against. If someone edited the post in the meantime, nothing is written and the set is marked stale.
- **Drafts are checked, not trusted.** Alt text that starts with "image of" or repeats keywords is rejected, and so is a meta description outside 70 to 160 characters or with numbers the article doesn't contain. A shorter title must keep the original's main words. A rejected draft stays on the to-do list instead of going live.
- **Judgement stays with people.** The server won't propose changing "2023" to "2026" in a product round-up, because the article says what was tested in 2023. Duplicate titles, thin content and orphan posts go to a person.
- **Reversible.** WordPress keeps a revision of every post. Rollback restores every field, unless someone has edited it again since; in that case it refuses and says so.
## Run it
```bash
python -m wpmcp demo # start the demo site, run the server as a subprocess, replay the recorded session, approve and apply
python -m wpmcp eval # audit score on planted problems + every guardrail
python -m wpmcp site # rebuild the live demo
pip install -r requirements.txt && python -m pytest -q
```
Python 3.9+ and the standard library only. No API key is needed: Claude's drafts and session are recorded. Set `WPMCP_LIVE=1` and `ANTHROPIC_API_KEY` to draft live.
**On your site:** create a WordPress user with the Contributor role and give it an application password. Expose the meta fields your SEO plugin uses through `register_post_meta(..., 'show_in_rest' => true)`; the demo uses `_seo_description` and `_seo_noindex`. Then add the server to Claude Desktop:
```json
{
"mcpServers": {
"wordpress": {
"command": "python3",
"args": ["-m", "wpmcp", "serve"],
"env": {"WP_URL": "https://your-site.example", "WP_USER": "claude-mcp", "WP_APP_PASSWORD": "xxxx xxxx xxxx xxxx xxxx xxxx"}
}
}
}
```
Reviewers use the console with their own application password: `python -m wpmcp console list|show|approve|reject|apply|rollback CS-1`. The live demo shows the same review flow as a web page.
## How it works
- `wpmcp/server.py`: the MCP server, JSON-RPC 2.0 over stdio, with `initialize`, `tools/list`, `tools/call`, resources and prompts. Errors come back as tool errors, never a crash.
- `wpmcp/wp.py`: WordPress REST client with application passwords and pagination.
- `wpmcp/audit.py`: every check with evidence, the health score and the internal link finder.
- `wpmcp/changes.py`: change sets, per-edit decisions and rewrites, approval rules, the policy, the stale check, partial apply and rollback.
- `wpmcp/drafts.py`: Claude's drafts and the checks on them.
- `wpmcp/fixture.py`: the demo site, served over a small copy of the WordPress REST API. It has the same paths, fields, Basic auth, roles, error codes and revisions, so tests run the real client over real HTTP.
- `wpmcp/evals.py`: scores the audit on the planted problems (all found, no false alarms). It also tries every way around approval: Claude approving itself, an author approving others' posts, applying unapproved sets, editing or publishing directly with Claude's credentials, deleting, and applying after someone else edited the post.
## Design choices
- **Approval outside the model's reach.** Approval happens in a different place (the console), by a different identity (the editor's application password). The model never sees a button it could press.
- **A review room, not a dashboard.** The console is built like a careful code review for content. Edits are grouped by what they affect, decisions sit at the bottom of every edit, the context (Google, screen reader, link check, your permission) is on the right, and the keyboard does everything: J and K to move, A to accept, R to reject, E to rewrite, ⌘K to jump.
- **Show the real protocol.** The demo's session is not a mock-up: it is the recorded JSON-RPC exchange with this server.
## Screenshots
| | |
|---|---|
|  |  |
|  |  |
## License
MIT, see [LICENSE](LICENSE). All data is synthetic.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues