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-onlyRead 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.
More Rank Math SEO abilities
Analyze post content
Gather a post's raw content, metadata, and list of on-page SEO tests so an AI agent can run Rank Math's full on-page analysis itself.
Audit site SEO
Run Rank Math's site-wide SEO audit and get back a structured score with per-test findings and fix hints.
Create AI Visibility brand
Add a new brand to AI Visibility monitoring and automatically kick off its first analysis.
Fix site SEO
Apply an automatic fix for a single failing Rank Math SEO audit test.
Get AI Visibility brand insights
Pull the full AI Visibility analysis for a single brand — score, rank, sentiment, mentions, citations, competitor breakdown, and raw per-query AI responses.
Get AI Visibility brand queries
List the search queries being monitored for a brand's AI Visibility tracking, including which are enabled or auto-generated baselines.