← All Plugins
WordPress Plugin · MCP Server for AI v1.8.0

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.

1
Install the plugin
Download the ZIP and upload it via Plugins → Add New → Upload Plugin in your WordPress admin. Activate it. The plugin works with WordPress 5.0+ and PHP 7.4+.
2
Copy the instructions for your AI
Go to Settings → Connect to AI. Click "Copy Instructions for AI" and paste it into Claude, Cursor, or any MCP-compatible AI. The AI handles the rest — OAuth registration, authorization, and connection setup are fully automatic.
3
Authorize and start using
Your browser will open an authorization page on your WordPress site. Click "Authorize" and you're connected. Ask the AI to search your content, audit your SEO, check your site health, drive the native SEO module, or manage your posts. All 38 free tools are available immediately.

Works With Your Favorite AI Tools

Any AI tool that supports the Model Context Protocol can connect to your WordPress site.

Claude Desktop
Anthropic's desktop app for Mac & Windows
Claude Code
AI-powered CLI tool for developers
Cursor
AI code editor with MCP support
Any MCP Client
Growing ecosystem of MCP-compatible tools

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)

get_post
Pull the full text of any post or page by ID or slug — perfect when you ask AI to summarize, rewrite, or translate something specific.
search_content
Ask AI to find every published post about "sourdough" or every draft pending review — faster than the WordPress search box and filterable by type, category, tag, status.
list_posts
Get any list you need — your most-commented posts, your shortest drafts, last month's published — without writing a query or building a custom view.
list_categories_tags
See every category and tag with post counts so AI can spot the orphan terms you should clean up.
get_site_info
One-shot snapshot of your site so AI doesn't waste a turn asking what you're working with — content counts, post types, permalink structure.
get_post_by_url
Paste any URL from your site — AI gets the full post back instantly. No hunting for post IDs.
get_revisions
See who changed what before you let AI do bulk edits. Essential safety net for sites with multiple authors.

SEO Audit (9 tools)

get_internal_links
See how your site's internal links connect — find pages bleeding link equity to dead ends, and pages that need more incoming links to rank.
find_orphan_content
Find pages no other post links to — the ones Google can barely discover through your site. Big SEO wins live here.
find_thin_content
Find posts under 300 words (or any threshold you set) so you can rewrite them or merge them away.
find_stale_content
Find your old, never-updated posts. Set the threshold — 12 months, 24 months — and refresh them with AI's help in the same conversation.
find_missing_seo_elements
Get the exact list of posts missing excerpts, alt text, or featured images. Then have AI write them in the same call.
find_duplicate_titles
Catch posts with near-identical titles competing against each other in search results. Fix or merge before Google picks the wrong one.
analyze_content_structure
Get a structural read on any post — heading hierarchy, image count, readability flags — and let AI suggest the fixes.
get_keyword_density
See whether you're under-using or stuffing a target keyword. AI can suggest natural rewrites that hit the right balance.
find_broken_media
Catch broken image links before readers see the missing-image icon. Especially handy after CDN migrations or image-host changes.

Media Library (3 tools)

search_media
Have AI find the right image from your library by keyword instead of you scrolling through thumbnails.
list_media
Find unused uploads, old uploads, or specific file types — clean up storage or surface forgotten gems.
get_media_for_post
Get every image in a post — including which ones are missing alt text — so AI can fix the gaps in the same conversation.

Technical & Health (5 tools)

get_technical_info
Your site's tech stack at a glance — WordPress version, PHP, theme, plugins, SSL — perfect for handing to a developer or troubleshooting yourself.
get_site_health
Spot security issues before they become problems — outdated WordPress, weak admin accounts, exposed debug mode. AI gives you the next steps.
get_content_calendar
See how often you publish month-by-month. Spot the gaps and let AI help plan a refresh.
get_author_stats
See how each author is doing — post count, average word count, last published, what they cover. Quick benchmarking for editorial teams.
get_acf_fields
AI can read every Advanced Custom Field on your site — works out of the box, no extra config. Big win for sites built around ACF.

Plugin Integrations (8 tools)

list_redirects
See every 301/302/307 redirect on your site at a glance — id, source, target, hit count — courtesy of the Redirection plugin. Perfect to ask AI "which redirects haven't been hit in months?"
list_wpcode_snippets
Browse every WPCode code snippet on your site — title, language, location, on/off state. Lets AI give you a guided tour of what's running where.
get_wpcode_snippet
Read the full code body of any WPCode snippet so AI can explain it, audit it for vulnerabilities, or suggest a refactor — without you copy-pasting.
ab_list_keyword_mappings
List every Affiliate Buffet keyword linker rule — keyword, sentence, URL, marketplace. Ask AI "which of my keyword rules point at dead Amazon listings?" and have it audit your affiliate inventory in seconds.
ab_get_keyword_mapping
Pull a single Affiliate Buffet rule by keyword — even matches one of the comma-split sub-keywords. Lets AI inspect a rule before suggesting an edit.
ab_list_product_blocks_in_post
List every Affiliate Buffet product block in a post — ASIN, marketplace, title, image. Lets AI find where you've placed product cards and flag posts that need them.
ab_get_click_analytics_summary
Pull Affiliate Buffet click analytics for any period (today, 7d, 30d, all) — totals, top posts, top ASINs, top CTAs, source breakdown. Requires an active Affiliate Buffet pro license.
ab_list_broken_affiliate_links
List Amazon links flagged as 4xx/5xx or with missing/wrong tags. Lets AI hand you a punch list of every broken affiliate link to fix. Requires an active Affiliate Buffet pro license.

Native SEO Module (6 tools)

seo_get_post
Pull every SEO + schema setting for a post in one shot — title override, meta description, canonical, robots, social images, schema type, and any per-post Recipe / HowTo / Event payload. AI gets the complete current state before suggesting an edit.
seo_get_site_settings
Read your site-wide SEO config — identity (Org or Person), social profiles, default share image, separator, robots defaults, LocalBusiness profile. Let AI sanity-check everything in one call.
seo_get_templates
Read the title and meta-description templates for every surface (post, page, archive, home, search, 404, ...) including the `%%var%%` engine variables. AI can audit your patterns before suggesting changes.
seo_get_active_conflicts
Which competing SEO plugins are active? Detects 10 (Yoast, RankMath, AIOSEO, SEOPress, etc.) and reports any that are pausing CMSTA SEO front-end output. AI can warn you before claiming a write took effect.
seo_is_output_active
Single boolean — is CMSTA SEO actually emitting on the front end right now? Returns false when the module is off OR when a competing SEO plugin is active. AI tools should always check this before promising "your meta description is now live."
seo_get_schema_preview
Compute the full JSON-LD `@graph` for any URL or post — exactly what would emit in `<head>`. Verify schema before publish, or ask AI to "score this page's rich-results readiness."

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)

create_post
Tell AI to draft a new post — it builds it as proper Gutenberg blocks with all the metadata you'd set by hand: title, excerpt, categories, tags, featured image.
update_post
Edit any post safely — only the fields you mention get touched, everything else stays exactly as you left it.
insert_content_block
Drop a paragraph, heading, image, list, or quote into a specific spot in a long post — by paragraph index, heading, or text search. Way faster than rewriting the whole article.
insert_images
Insert one or more images at exact positions in a post — auto-builds proper Gutenberg image blocks with alt text. No more resending a 3,000-word post just to add an image.
trash_post
AI can move content to trash but never permanently delete — you always have one click back from the admin trash.
restore_from_trash
Undo any AI-trashed post in one call. Sleep better knowing nothing's actually gone.
bulk_update_status
Publish, unpublish, or trash up to 50 posts in one shot — perfect for big content cleanups or scheduled launches.
duplicate_post
Clone any post (with all its metadata) as a new draft — same format, same categories, fresh content space.
merge_posts
Merge thin or duplicate posts into one consolidated piece. Tags and categories merge automatically; the sources move to trash so nothing is lost.
schedule_post
Schedule any draft to publish at a future date through the same AI you already chat with. No separate calendar tool needed.
clone_post_as_template
Clone the structure of any post — categories, tags, featured image — but leave the content blank. Start a new post in your usual format.

SEO Fix Tools PRO (5 tools)

update_seo_elements
Fix every missing SEO element on a post in one call — excerpt, featured image, categories, tags. AI even writes the excerpt for you.
add_internal_links
Add a "Related Posts" block to any post with the right anchor text — boost internal linking without hand-editing each post.
update_post_meta
Set custom fields, ACF values, or SEO plugin meta (Yoast, RankMath) — AI knows the field exists before trying to write it.
find_and_replace
Site-wide find & replace — but it shows you every change before applying. Perfect for rebrands, URL changes, and typos at scale.
bulk_update_meta
Update the same custom field on up to 50 posts at once — bulk SEO descriptions, ACF values, you name it.

Redirection Plugin (CRUD) PRO (3 tools)

create_redirect
Set up 301/302/307 redirects when you merge or rename posts — link equity preserved, broken-link emails avoided. Uses the free Redirection plugin.
update_redirect
Change the source, target, or status code of an existing redirect by ID. Quick to fix typos or upgrade old 302s into proper 301s.
delete_redirect
Clean up redirects you no longer need — one call to remove the noise.

WPCode Plugin (CRUD) PRO (5 tools)

create_wpcode_snippet
Have AI write a PHP/JS/CSS/HTML snippet and stage it inside WPCode — always inactive on creation, so nothing fires until you flip the toggle.
update_wpcode_snippet
Edit any WPCode snippet — code, language, where it runs — with a dry-run preview that shows the diff before you save. Great for AI-assisted refactors.
toggle_wpcode_snippet
Turn any WPCode snippet on or off through AI. Handy when you're testing or want to disable something temporarily without deleting it.
trash_wpcode_snippet
Move a WPCode snippet to trash. The cache is invalidated immediately so it stops running on the next page load — no half-disabled state.
restore_wpcode_snippet
Bring a trashed WPCode snippet back as inactive draft. Always reawakens disarmed so you re-enable on purpose, never by accident.

Affiliate Buffet Plugin (Keyword Linker + Product Block) PRO (5 tools)

ab_add_keyword_mapping
Add a new Affiliate Buffet keyword linker rule via AI — keyword, sentence, URL, marketplace, nofollow/sponsored flags, all in one call. AI can build out an entire affiliate inventory from a content brief.
ab_update_keyword_mapping
Edit any keyword rule — change the URL, sentence, marketplace, or rename the rule entirely. Find the rule by any of its comma-split sub-keywords.
ab_delete_keyword_mapping
Remove an Affiliate Buffet keyword rule. Lets AI do affiliate inventory cleanups — "drop every rule that points at amazon.de" — in one prompt.
ab_insert_product_block
Insert an Amazon product block into any post by ASIN. Auto-fetches title, image, and gallery via OG scrape if you don't supply them. Supports custom title, description, CTA text, brand override, feature bullets, and price toggles.
ab_remove_product_block
Pull a specific Amazon product block out of a post by ASIN. Useful for cleanups or replacing a block with a different listing.

Media Management PRO (2 tools)

upload_media
Pull an image from any URL into your media library with title, alt, and caption set — AI writes the metadata while it uploads.
update_media_meta
Fix missing alt text on up to 50 images at once — AI looks at the image, writes a descriptive caption, you approve.

Taxonomy Management PRO (3 tools)

create_category_tag
Build your category and tag structure via AI — slug, description, parent — all in one call.
reassign_taxonomy
Reassign categories or add tags to up to 50 posts at once. Big help when you reorganize your content architecture.
delete_category_tag
Delete unused categories or tags safely — the default category is protected from accidental deletion.

Native SEO Module — Per-Post Writes PRO (8 tools)

seo_update_post
Set per-post SEO title, meta description, OG title, OG description, and schema type in one call. Only the fields you mention change — everything else stays put.
seo_update_post_robots
Toggle noindex, nofollow, noarchive, nosnippet, max-image-preview, max-snippet, max-video-preview on any post. AI handles the policy strings so you don't have to remember the syntax.
seo_update_post_canonical
Override the canonical URL for any post — or pass null to clear it and fall back to the default. Useful for cross-domain syndication and dedupe.
seo_update_post_social
Per-post Open Graph + Twitter image overrides plus a "use SEO meta for social" toggle. Ship a different image to Facebook than you do to your site's `<title>`.
seo_set_post_schema_type
Force a single post to render as Article, BlogPosting, or NewsArticle regardless of the site default. Quick wins for news posts that should appear in Google's News surfaces.
seo_update_post_recipe
Per-post Recipe schema — name, description, prep/cook/total time, ingredients, ordered instructions with images, calories, yield. AI can build the full Recipe payload from your prose.
seo_update_post_howto
Per-post HowTo schema — name, description, total time, ordered step list with optional images. Great for tutorial posts; renders as a step-by-step rich result on Google.
seo_update_post_event
Per-post Event schema — start/end dates, location, organizer, offer URL/price, attendance mode (offline/online/mixed), event status. Lets AI mark up event pages cleanly.

Native SEO Module — Site-Wide Writes PRO (5 tools)

seo_update_site_settings
Edit identity (Org or Person), social profiles, default share image, separator, robots defaults — site-wide knobs that shape every page's output.
seo_update_templates
Set title and meta-description templates per surface — post, page, archive, home, search, 404, author, custom post type. Use the `%%title%% %%sep%% %%sitename%%` style tokens.
seo_update_verification
Set Google, Bing, and Pinterest site-verification meta tags from a chat prompt. AI can paste your verification codes once and never have to remember which plugin owns them.
seo_update_localbusiness
LocalBusiness profile — street/city/region/postal_code/country (auto-mapped to schema.org PostalAddress), lat/lng (mapped to GeoCoordinates), phone, opening hours, price range. Schema.org-compliant on emit.
seo_run_wizard
Drive the 3-step first-run wizard programmatically — identity step, social profiles + verification step, default share image step. Useful for AI-led onboarding flows on a fresh site.
Buy Pro — $49/year

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 toolsN/A
Personal Access Tokens (works behind strict managed-host WAFs)
Totals
Total tools3885

Built-In Safety Guards

Every write tool is designed so you can trust AI with your WordPress site.

Nothing Is Ever Really Deleted
AI can move content to trash but never permanently delete it. One click in the WordPress admin restores anything — peace of mind when you're letting AI do bulk operations.
Preview Before Anything Changes
Site-wide find & replace shows you every affected post and every change before applying. Approve, then commit — you never wake up to surprise edits.
Blast Radius Stays Small
Every bulk operation caps at 50 items per call. Even if AI gets overzealous, the damage stays contained — and your shared host doesn't fall over.
Read-Only AI Stays Read-Only
Write tools need both a valid Pro license AND an explicit write scope on the access token. A read-only AI cannot accidentally publish or delete — the wiring physically prevents it.
Same Auth Google & GitHub Use
OAuth 2.0 with PKCE — same standard the major platforms use. Tokens expire weekly, you can revoke any AI connection instantly from wp-admin, and no API keys live in plaintext on disk.
Runaway AI Can't Crash Your Server
Rate limiting prevents a runaway AI from overwhelming your server. Configurable per-AI-client from the Security tab — set it once, forget it.

What Can You Do With It?

Real workflows that WordPress site owners use every day.

SEO Content Audit
"Find all posts with no internal links pointing to them." The AI runs find_orphan_content, identifies 257 orphan posts, and with Pro can add internal links to fix them — all in one conversation.
Batch Fix Missing Alt Text
"Go through my latest 10 posts and fix the missing image alt text." The AI uses get_media_for_post to find images, downloads them to understand the content, then uses update_media_meta to write descriptive alt text.
Content Migration
"Export all my published posts as markdown files." The AI calls list_posts, then get_post for each one, and saves them as .md files on your machine — structured data, not scraped HTML.
Merge Thin Content
"Find posts under 300 words and suggest which ones to merge." The AI uses find_thin_content, analyzes topic overlap, then merges related posts with merge_posts and creates redirects via manage_redirects.
Site Health Monitoring
"Give me a complete security audit." The AI checks WordPress version, PHP version, SSL status, debug mode, file editing, default admin users, plugin updates, and database prefix — all in one call.
AI-Assisted Publishing
"Create a draft post about chameleon care, find a chameleon image from my media library, and set it as the featured image." The AI uses create_post, search_media, and update_post — complete Gutenberg-formatted content with images.

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.

SEO Audit
"Find all published posts that have no incoming internal links from other pages on my site. Show me the worst orphan pages first."
Uses: find_orphan_content → identifies pages Google can't discover through your site's link structure
Content Health
"Which posts haven't been updated in over 18 months? Sort them by word count so I can see which ones are both stale and thin."
Uses: find_stale_content + find_thin_content → prioritize which old content to refresh or consolidate
Image Alt Text
"Go through my last 5 published posts, find every image that's missing alt text, download each image, look at what's in it, and write descriptive alt text for each one."
Uses: list_posts → get_media_for_post → AI vision analysis → update_media_meta (Pro)
Content Creation
"Create a draft post titled 'Complete Guide to Indoor Herb Gardens'. Find a relevant image from my media library and set it as the featured image. Add it to the Gardening category."
Uses: create_post → search_media → update_post (Pro)
Find & Replace
"I changed my brand name from 'GreenLeaf Co' to 'Verdant Studio'. Show me how many posts contain the old name, and where — but don't change anything yet."
Uses: find_and_replace with dry_run=true (Pro) → preview all affected posts before committing
Duplicate Title Check
"Do I have any posts with identical or very similar titles? I want to find keyword cannibalization issues."
Uses: find_duplicate_titles → identifies posts competing for the same search terms
Merge Content
"I have three short posts about email marketing tips (IDs 102, 145, 203). Merge them into one comprehensive guide, keep the oldest one as the primary, and set up 301 redirects from the other two."
Uses: merge_posts → manage_redirects (Pro) → consolidates thin content and preserves link equity
Site Security
"Run a full security audit. Check if WordPress and PHP are up to date, if debug mode is exposed, if file editing is enabled, and if any plugins need updating."
Uses: get_site_health + get_technical_info → comprehensive security and health report
Missing SEO Elements
"How many of my published posts are missing an excerpt? List the first 20 and generate a 2-sentence excerpt for each one based on the post content."
Uses: find_missing_seo_elements → get_post → update_seo_elements (Pro) → AI writes context-aware excerpts
Content Export
"Download all my published posts as markdown files, organized in folders by category. Include the featured image URL, publish date, and tags in the frontmatter."
Uses: list_posts → get_post (paginated) → AI writes structured .md files to your machine
Taxonomy Cleanup
"List all tags that have zero posts. Delete the unused ones and show me which tags have fewer than 3 posts so I can decide whether to keep them."
Uses: list_categories_tags → delete_category_tag (Pro) → clean up taxonomy bloat
Internal Linking
"Find my 10 most important posts (highest word count, published in the last year) that have zero incoming internal links. Then add a 'Related Posts' section to each one linking to 3 relevant posts."
Uses: find_orphan_content → list_posts → add_internal_links (Pro) → builds internal link equity automatically

Technical Details

For developers who want to understand what's under the hood.

Protocol
MCP (Model Context Protocol) with Streamable HTTP transport. All communication is JSON-RPC 2.0 over a single POST endpoint. Compatible with the MCP 2025-06-18 specification.
Authentication
OAuth 2.0 with PKCE (Proof Key for Code Exchange). Dynamic client registration — AI tools auto-register, no manual key generation. Token lifetime: 1 week. Refresh tokens supported.
WordPress Integration
Built on the WordPress REST API. Creates 4 database tables for OAuth (clients, tokens, authorization codes, request logs). Uses WP-Cron for cleanup. Zero frontend output.
Requirements
WordPress 5.0+, PHP 7.4+. No external dependencies. Works on shared hosting, VPS, and managed WordPress hosts. Optional: Redirection plugin for redirect management, ACF for custom fields.

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.

Buy Pro — $49/year

Each Pro license covers 1 site.

Download Free Plugin

Enter your email and we'll send you a confirmation link. Click it to start the download.

We'll email the download link so we can verify your address. You may also receive occasional plugin updates. Unsubscribe anytime. See our Privacy Policy.