wp_get_global_styles is one of 162 MCP tools included in Easy MCP AI — the WordPress plugin that connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →wp_get_global_styles
Read-onlyDescription
Global styles are the single source of truth for your site's color palette, typography scale, and spacing presets — and Easy MCP AI can read them out in full from your AI client. This tool requires an active block theme with Full Site Editing; classic themes do not expose global styles. Reading the current configuration before any rebrand or design change is the right first step so your AI has accurate values to work from.
See it in action
wp_get_global_styles {
"theme": "twentytwentyfour",
"styles": {
"color": { "background": "#ffffff", "text": "#111827" },
"typography": { "fontSize": "1rem", "fontFamily": "Inter, sans-serif" },
"spacing": { "blockGap": "1.5rem" }
}
} Here are the global style settings for your active theme.
Example Use Cases & Sample Prompts
- Reviewing current brand colors
- Prompt: “Show me my site’s current global styles — what colors and fonts are configured?”
- Pre-update audit
- Prompt: “Get my current global styles before I start the rebrand.”
- Checking typography settings
- Prompt: “What font sizes and font families are defined in my global styles?”
- Spacing configuration review
- Prompt: “Show me the spacing presets defined in global styles.”
- Theme handoff
- Prompt: “Export my current global styles configuration so I can document the design system.”
Frequently Asked Questions
What does wp_get_global_styles do?
Global styles are the single source of truth for your site's color palette, typography scale, and spacing presets — and Easy MCP AI can read them out in full from your AI client. This tool requires an active block theme with Full Site Editing; classic themes do not expose global styles. Reading the current configuration before any rebrand or design change is the right first step so your AI has accurate values to work from.
How do I use wp_get_global_styles with my AI assistant?
Install the Easy MCP AI WordPress plugin, generate an API token in your dashboard, and connect your AI client (Claude, ChatGPT, Cursor, or any MCP-compatible assistant). Then simply describe what you want in natural language — for example: "Show me my site's current global styles — colors, fonts, and spacing."
Do I need Easy MCP AI to use wp_get_global_styles?
Yes. wp_get_global_styles is one of 162 MCP tools bundled inside the Easy MCP AI WordPress plugin. Install the free plugin from WordPress.org, connect your AI client, and this tool becomes available immediately — no coding required.
Related Tools
Global StylesUpdate global styles settings and/or styles — color, typography, spacing (requires block theme)
Get the name, version, and details of the currently active WordPress theme
List all block templates with filtering and pagination (requires block theme)
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_get_global_styles and all 74 tools instantly.
Step 2
Connect Your AI Client
Already have the plugin? Step-by-step setup guides for Claude, ChatGPT, Cursor, Windsurf, and 10+ more.