Update SureRank Robots.txt is a WordPress ability from SureRank — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Update SureRank Robots.txt

Destructive
SureRank SEO surerank/update-robots-txt

Replace the custom robots.txt content that SureRank serves.

Requires the SureRank plugin on WordPress 6.9+ for the Abilities API. Abilities are only registered when SureRank's admin 'enable_mcp' setting is turned on, and every ability requires the current user to have the 'manage_options' capability.

What it does

This ability sanitizes the supplied text and overwrites SureRank's stored robots.txt option wholesale — there's no merge, so the entire robots.txt output is replaced. An AI assistant could use it to add a new Disallow rule or block a bot, but should fetch the current content first with get-robots-txt so it doesn't drop existing rules. SureRank marks it destructive since it can change what search engine crawlers are allowed to access.

See it in action

You ask your AI assistant

"Add a rule blocking /wp-admin/ and /private/ from SureRank's robots.txt."

Inputs

Name Type Required Description
robots_txt_content string Yes The full robots.txt content to store.

Returns

An object with success (boolean) and the saved robots_txt_content.

Permission

Requires the 'manage_options' capability; the ability is only registered when SureRank's admin 'enable_mcp' setting is turned on.

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.