Connect My Site to AI
Stop Copy-Pasting Between WordPress and AI
Let Claude, Cursor, or any MCP-compatible AI read your content, audit your SEO, fix missing alt text, merge thin posts, and schedule drafts — directly. 30-second connection, no API keys, no copy-pasting.
38 free read-only tools. 47 pro write tools. Native SEO module (meta + JSON-LD schema, 19 dedicated MCP tools, conflict-aware with Yoast/RankMath/AIOSEO). Full CRUD over redirects, WPCode snippets, and Amazon affiliate workflows. Zero impact on the speed of your site.
Each Pro license covers 1 site.
Why You'll Wonder How You Worked Without It
Most WordPress sites end up with hundreds of small problems no one has time to fix. Posts missing excerpts. Images missing alt text. Thin content that should be merged. Outdated copy that mentions a brand name you changed two years ago. Each issue takes 30 seconds to fix — and there are 400 of them.
This plugin lets your AI assistant fix them for you. Connect Claude, Cursor, or any MCP-compatible AI in 30 seconds, then say what you want done in plain English. "Find every published post missing an excerpt and write one for each." "Merge these three thin posts into one and set up redirects." "Run a security audit." It happens, and you watch.
Under the hood, it's a fully compliant Model Context Protocol server with 85 purpose-built tools. Authentication is OAuth 2.0 with PKCE — the same standard Google and GitHub use — so you never copy-paste API keys or write a line of code.
Free version: 38 read-only tools — search content, audit SEO, browse media, check site health, list redirects, list code snippets, list Amazon affiliate keyword rules and click analytics, and read every field of the native SEO module. Pro: 47 write tools — create posts, fix SEO issues, upload images, full CRUD over redirects, WPCode snippets, and Amazon affiliate workflows (keyword rules + product blocks via the Affiliate Buffet plugin), handle taxonomies, and drive the native SEO module end-to-end (meta tags, JSON-LD schema engine, per-post overrides, recipe/howto/event payloads, site-wide templates and identity). See all WordPress plugins by Muntaseer Rahman.
How to Connect Your WordPress Site to AI
Three steps. Under two minutes. No coding required.
Works With Your Favorite AI Tools
Any AI tool that supports the Model Context Protocol can connect to your WordPress site.
38 Free Read-Only Tools
Search content, audit SEO, browse media, check site health, and read every field of the native SEO module — no Pro license required.
Content (7 tools)
SEO Audit (9 tools)
Media Library (3 tools)
Technical & Health (5 tools)
Plugin Integrations (8 tools)
Native SEO Module (6 tools)
47 Pro Write Tools
Create, edit, merge, find & replace, upload media, full-CRUD redirects, full-CRUD WPCode snippets, full Amazon affiliate workflows, drive the native SEO module end-to-end, and handle taxonomies — all through your AI assistant. Includes surgical block-and-image inserts and dry-run previews on the operations that touch your code.
Content Management PRO (11 tools)
SEO Fix Tools PRO (5 tools)
Redirection Plugin (CRUD) PRO (3 tools)
WPCode Plugin (CRUD) PRO (5 tools)
Affiliate Buffet Plugin (Keyword Linker + Product Block) PRO (5 tools)
Media Management PRO (2 tools)
Taxonomy Management PRO (3 tools)
Native SEO Module — Per-Post Writes PRO (8 tools)
Native SEO Module — Site-Wide Writes PRO (5 tools)
Each Pro license covers 1 site.
Free vs Pro — Full Feature Comparison
Every capability side by side. See exactly what each version includes.
| Capability | Free | Pro |
|---|---|---|
| Content Reading | ||
| Get post/page by ID, slug, or URL | ✓ | ✓ |
| Search content by keyword, type, category, tag, status | ✓ | ✓ |
| List posts with sorting and pagination | ✓ | ✓ |
| List categories and tags with counts | ✓ | ✓ |
| View post revision history | ✓ | ✓ |
| Read ACF field groups and values | ✓ | ✓ |
| SEO Auditing | ||
| Internal link mapping (outgoing, incoming, both) | ✓ | ✓ |
| Find orphan content (no incoming links) | ✓ | ✓ |
| Find thin content (below word count threshold) | ✓ | ✓ |
| Find stale content (not updated in X months) | ✓ | ✓ |
| Find missing SEO elements (excerpts, alt text, images) | ✓ | ✓ |
| Find duplicate titles (keyword cannibalization) | ✓ | ✓ |
| Content structure analysis (headings, readability) | ✓ | ✓ |
| Keyword density analysis | ✓ | ✓ |
| Find broken media (404 images) | ✓ | ✓ |
| Media Library | ||
| Search media by keyword | ✓ | ✓ |
| Browse media with filters (date, type, unattached) | ✓ | ✓ |
| Get all images for a specific post | ✓ | ✓ |
| Upload media from URL | ✗ | ✓ |
| Batch-update alt text, titles, captions (up to 50) | ✗ | ✓ |
| Technical & Health | ||
| Site info (name, URL, content counts, post types) | ✓ | ✓ |
| Technical info (PHP, WP version, plugins, theme) | ✓ | ✓ |
| Security audit (outdated software, debug mode, etc.) | ✓ | ✓ |
| Content calendar (publishing frequency, gaps) | ✓ | ✓ |
| Author statistics | ✓ | ✓ |
| Content Management (Write) | ||
| Create posts, pages, and custom post types | ✗ | ✓ |
| Update title, slug, content, excerpt, status | ✗ | ✓ |
| Trash and restore posts | ✗ | ✓ |
| Bulk update status (up to 50 posts) | ✗ | ✓ |
| Duplicate post with all metadata | ✗ | ✓ |
| Clone post as template (structure only) | ✗ | ✓ |
| Merge thin/duplicate posts into one | ✗ | ✓ |
| Schedule future publish dates | ✗ | ✓ |
| Insert blocks at exact positions in long posts | ✗ | ✓ |
| Insert images at exact positions (auto-built blocks) | ✗ | ✓ |
| SEO Fixing (Write) | ||
| Batch-fix excerpts, categories, tags, featured images | ✗ | ✓ |
| Add internal links to post content | ✗ | ✓ |
| Update post meta / custom fields / ACF | ✗ | ✓ |
| Find and replace across site (dry run default) | ✗ | ✓ |
| Bulk update meta on 50 posts at once | ✗ | ✓ |
| Redirection plugin (full CRUD) | ||
| List existing redirects with id, source, target, hits | ✓ | ✓ |
| Create 301/302/307 redirects | ✗ | ✓ |
| Update redirect target or status code by id | ✗ | ✓ |
| Delete redirects | ✗ | ✓ |
| WPCode plugin (full CRUD, opt-in) | ||
| List code snippets (id, language, location, on/off) | ✓ | ✓ |
| Read full snippet code body | ✓ | ✓ |
| Create snippets (PHP, JS, CSS, HTML; always inactive on creation) | ✗ | ✓ |
| Update snippets with dry-run preview | ✗ | ✓ |
| Toggle snippets on/off, trash, restore | ✗ | ✓ |
| Affiliate Buffet plugin (Keyword Linker + Product Block, opt-in) | ||
| List keyword linker rules and product blocks in posts | ✓ | ✓ |
| Click analytics summaries and broken affiliate link reports (requires Affiliate Buffet pro) | ✓ | ✓ |
| Add, update, delete keyword linker rules | ✗ | ✓ |
| Insert/remove Amazon product blocks (auto OG-scrape title/image/gallery) | ✗ | ✓ |
| Taxonomy | ||
| Create categories and tags | ✗ | ✓ |
| Delete categories and tags | ✗ | ✓ |
| Bulk reassign taxonomy terms (up to 50 posts) | ✗ | ✓ |
| Native SEO Module (meta + JSON-LD schema, opt-in) | ||
| Read per-post SEO + schema overrides, site settings, templates, schema preview | ✓ | ✓ |
| Active-conflict + output-status checks (Yoast, RankMath, AIOSEO, etc.) | ✓ | ✓ |
| Front-end output: title, meta description, canonical, robots, OG, Twitter, verification | ✓ | ✓ |
| JSON-LD @graph: WebSite, Org/Person, BreadcrumbList, Article, FAQ, Video | ✓ | ✓ |
| LocalBusiness site-level + Recipe / HowTo / Event per-post opt-ins | ✓ | ✓ |
| Per-post editor (Gutenberg sidebar + classic meta box) | ✓ | ✓ |
| 3-step first-run wizard | ✓ | ✓ |
| Update per-post SEO meta, robots, canonical, social via AI | ✗ | ✓ |
| Override schema type per post (BlogPosting / Article / NewsArticle) | ✗ | ✓ |
| Fill Recipe / HowTo / Event payloads via AI | ✗ | ✓ |
| Edit site-wide identity, social profiles, verification, LocalBusiness, templates | ✗ | ✓ |
| Drive the first-run wizard programmatically | ✗ | ✓ |
| Security & Infrastructure | ||
| OAuth 2.0 with PKCE authentication | ✓ | ✓ |
| Dynamic client registration | ✓ | ✓ |
| Per-client rate limiting | ✓ | ✓ |
| Request logging with stats | ✓ | ✓ |
| Client revocation from admin | ✓ | ✓ |
| Write OAuth scope for write tools | N/A | ✓ |
| Personal Access Tokens (works behind strict managed-host WAFs) | ✓ | ✓ |
| Totals | ||
| Total tools | 38 | 85 |
Built-In Safety Guards
Every write tool is designed so you can trust AI with your WordPress site.
What Can You Do With It?
Real workflows that WordPress site owners use every day.
Example Prompts You Can Use
Copy any of these into your AI tool after connecting. These are real prompts that work out of the box.
Technical Details
For developers who want to understand what's under the hood.
Frequently Asked Questions
What is MCP (Model Context Protocol)?
MCP is an open protocol created by Anthropic that lets AI applications connect to external data sources and tools. Think of it as a standardized way for AI to talk to your WordPress site — reading content, running audits, and even making changes through a secure, authenticated API. It's supported by Claude Desktop, Claude Code, Cursor, and a growing number of AI tools.
Which AI tools work with this plugin?
Any AI tool that supports the MCP protocol via Streamable HTTP transport. This includes Claude Desktop (Anthropic's desktop app), Claude Code (CLI tool for developers), Cursor (AI code editor), and any other MCP-compatible client. The list is growing as more AI tools adopt the MCP standard.
Is my site data safe?
Yes. The plugin uses OAuth 2.0 with PKCE — the same authentication standard used by Google, GitHub, and other major platforms. AI tools must be explicitly authorized by a WordPress admin before they can access anything. Tokens expire after one week, and you can revoke access at any time from the plugin settings.
What's the difference between free and Pro?
Free gives you 38 read-only tools — search content, audit SEO, check site health, browse media, list code snippets, list redirects, list affiliate keyword mappings and click analytics, and read every CMSTA SEO field (per-post + site-wide + computed JSON-LD preview). Pro adds 47 write tools that let AI create posts, edit them surgically (insert blocks or images at exact positions in long posts), batch-fix SEO, manage redirects with full CRUD, manage WPCode code snippets with full CRUD, manage Affiliate Buffet keyword rules and product blocks, upload images, clean up taxonomies, and drive the native SEO module end-to-end (per-post overrides, schema-type swap, Recipe / HowTo / Event payloads, site-wide templates, identity, verification, LocalBusiness, run the wizard). Every write operation has guard rails — never permanently deletes, find & replace previews before applying, dry-run mode for code snippet edits, and bulk operations cap at 50 items.
Do I need coding skills to use this?
No. Install the plugin, go to Settings > Connect to AI, click "Copy Instructions for AI", and paste it into your AI tool. That's it. The AI handles the OAuth connection automatically — no API keys to configure, no code to write.
Does it work with custom post types?
Yes. Every tool that accepts a post type parameter works with any registered custom post type — WooCommerce products, portfolio items, testimonials, events, or any other CPT on your site.
Does it support Advanced Custom Fields (ACF)?
Yes. The free get_acf_fields tool lists all ACF field groups and their fields for any post type, including current values for specific posts. The Pro update_post_meta tool can read and write ACF field values — the AI knows exactly what fields exist before trying to update them.
Can the AI permanently delete my content?
No. The trash_post tool moves content to the WordPress trash — it never permanently deletes anything. Trashed posts can be restored from the admin trash or via the Pro restore_from_trash tool. The find_and_replace tool defaults to dry_run mode, showing a preview of changes before applying them. Bulk operations are capped at 50 items per call.
Does it work with Yoast SEO or RankMath?
Two ways. (1) CMSTA now ships its own native SEO module that yields gracefully — when Yoast, RankMath, AIOSEO, SEOPress, The SEO Framework, Slim SEO, or Squirrly is active, CMSTA's SEO front-end output pauses so the two don't fight (settings still save and the seo_* MCP tools still work, so AI can pre-configure for the day you swap). (2) For writing into a competing SEO plugin's own fields directly, the Pro update_post_meta tool can target any meta key — including Yoast's _yoast_wpseo_metadesc, RankMath's rank_math_description, etc. So you can either let AI drive CMSTA's SEO module, or have it edit your existing SEO plugin's data — whichever fits your stack.
How does the native SEO module work?
CMSTA ships an opt-in SEO module that emits both meta tags (<title>, meta description, canonical, robots, Open Graph, Twitter Card, search-engine verification) and JSON-LD schema in a single @graph per page (WebSite + SearchAction, Organization or Person, BreadcrumbList, Article / BlogPosting / NewsArticle, FAQPage from core/details blocks, VideoObject from core/video and core/embed blocks). Site-level opt-in for LocalBusiness; per-post opt-ins for Recipe, HowTo, and Event (each skips automatically if a competing plugin like WP Recipe Maker or The Events Calendar is active). It's designed AI-first — every settable field has a clean MCP tool (19 in total: 6 free reads + 13 pro writes), so an agent can audit conflicts, swap schema types, fill recipe payloads, and run the first-run wizard from a chat prompt. Per-post editing works in both Gutenberg (sidebar panel with snippet preview, char counters, robots toggles, schema overrides) AND classic meta box (for non-Gutenberg post types) — both write to the same _cmsta_seo post meta key, so the editors stay in sync. Enable from Connect to AI → Integrations.
How does the redirect management work?
CMSTA integrates with the Redirection plugin by John Godley (a free WordPress plugin with 2+ million installs) for full CRUD over redirects. The free list_redirects tool lets you (or AI) audit every redirect with id, source, target, type, and hit count. The Pro create_redirect, update_redirect, and delete_redirect tools cover the rest — set up 301/302/307s when you rename URLs, fix the target on a typo'd redirect by id, or sweep up old ones. If the Redirection plugin isn't installed (or you turned the integration off in Settings → Integrations), the tools return a clear error message instead of failing silently.
What does the WPCode integration do?
WPCode (the "Insert Headers and Footers + Custom Code Snippets" plugin with 2M+ installs) is where most WordPress sites stash their custom PHP, JS, and CSS snippets. CMSTA gives AI full CRUD over those snippets: list_wpcode_snippets and get_wpcode_snippet (free reads), plus create_wpcode_snippet, update_wpcode_snippet, toggle_wpcode_snippet, trash_wpcode_snippet, and restore_wpcode_snippet (Pro writes). Every safety net is on by default — new AI-created snippets are always staged inactive (you toggle them on after reviewing the code), update has dry-run mode that shows the diff before saving, and trash invalidates WPCode's cache immediately so a removed snippet stops running on the next page load. The integration is opt-in: enable it in **Connect to AI → Integrations** before AI can touch any snippet.
What happens when I merge posts?
The merge_posts tool combines content from multiple posts into one primary post. It appends the content from source posts (separated by an HR tag), merges their categories and tags into the primary post, and moves the source posts to trash — never permanently deletes them. This is perfect for consolidating thin content that's hurting your SEO.
Can I use it on multiple WordPress sites?
Yes. Install the plugin on each site you want to connect. Each site gets its own MCP endpoint URL. In your AI tool, add each site as a separate MCP server. You can then switch between sites or query multiple sites in the same conversation.
Does it slow down my website?
No. The plugin only responds when an AI tool sends a request to the MCP endpoint. It has zero impact on frontend page loads — no JavaScript, no CSS, no database queries on regular page views. Rate limiting prevents any single client from overwhelming your server.
Is this plugin on WordPress.org?
No. Connect My Site to AI is distributed exclusively from this website (muntaseerrahman.com). This gives us faster release cycles and the ability to include Pro features in the same plugin file, gated by license key.
How do I upgrade to Pro?
Install the plugin (it includes both free and Pro code in one ZIP). Go to Connect to AI > License tab and enter your Pro license key. All 47 write tools unlock instantly — no re-uploading, no re-authorizing.
Can AI manage my Amazon affiliate workflows?
Yes — if you also use the Affiliate Buffet plugin (a free Amazon Associates toolkit, also from this site). CMSTA detects it and adds 10 tools (5 read, 5 write) for managing keyword linker rules, inserting and removing Amazon product blocks (with auto OG-scrape for title/image/gallery), reading click analytics summaries, and listing broken affiliate links. The integration is opt-in from Connect to AI → Integrations. Read tools require CMSTA Pro; write tools, click analytics, and link health additionally require an active Affiliate Buffet pro license. Once enabled, an AI client can build out an entire affiliate inventory or clean up dead listings in one prompt.
My MCP client (Codex) fails connecting on a managed host like Kinsta or WP Engine. What gives?
Some MCP clients — Codex in particular — use the IP literal 127.0.0.1 as their OAuth callback. Many managed WordPress hosts (WPX, Kinsta, SiteGround, WP Engine, Pressable) ship a WAF rule that blocks 127.0.0.1 in query strings as SSRF protection. The OAuth request never reaches WordPress. The fix is built into the plugin: go to Settings > Connect to AI > Personal Access Tokens, generate a token, and configure your MCP client to send it as a Bearer token. OAuth still works as the default for everyone else; PATs are a universally compatible fallback for these hosts.
Ready to Connect Your WordPress Site to AI?
Download the free plugin and connect in under two minutes. 38 read-only tools included, with opt-in integrations for a native SEO module (meta + JSON-LD schema), the Redirection, WPCode, and Affiliate Buffet plugins. Upgrade to Pro when you need write access — create posts, fix SEO, drive the SEO module end-to-end, manage redirects, manage code snippets, manage Amazon affiliate workflows, and more through your AI assistant.
Each Pro license covers 1 site.