Get post SEO metadata is a WordPress ability from Rank Math SEO — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Get post SEO metadata

Read-only
Rank Math SEO SEO rank-math/get-post-seo-meta

Read a post's full Rank Math SEO metadata — title, description, focus keyword, robots, canonical, social overrides, and SEO score.

Requires the Rank Math SEO plugin on WordPress 6.9+ for the Abilities API. AI Visibility abilities require the 'manage_options' capability; Link Genius abilities require 'rank_math_link_builder'; Post SEO abilities require 'rank_math_onpage_general'; Schema abilities require 'rank_math_onpage_snippet'; SEO Analysis abilities require 'rank_math_site_analysis'; Analytics abilities require 'rank_math_analytics'; Content Analysis abilities require 'rank_math_onpage_analysis'. Some outputs (broken-link audit data in get-link-report, extra schema types in get-post-schema) are only populated when Rank Math PRO is active.

What it does

This ability returns the complete SEO metadata Rank Math stores for a single post, identified by post_id: the SEO title, meta description, focus keyword, robots meta settings, canonical URL, Open Graph title/description overrides, Twitter title/description overrides, and the post's current SEO score (0-100). This gives an AI assistant a single-call snapshot of how a post is configured for search and social, which it can use to spot missing fields or suggest improvements before touching anything. Requires the 'rank_math_onpage_general' capability.

See it in action

You ask your AI assistant

"Get the Rank Math SEO metadata for post 128 and tell me if the focus keyword and meta description are set."

Inputs

Name Type Required Description
post_id integer Yes The ID of the post to retrieve SEO metadata for.

Returns

An object with post_id, title, description, focus_keyword, robots (array of strings), canonical, og_title, og_description, twitter_title, twitter_description, and seo_score (0-100).

Permission

Requires the 'rank_math_onpage_general' capability.

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.