wp_get_menu 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_menu
Read-onlyDescription
Navigation hierarchy is hard to reason about without seeing the full item tree β Easy MCP AI fetches a specific menu with every item's label, URL, order, and parent-child relationship laid out in one response. Your AI client gets the complete structural picture before touching anything, which prevents accidental re-ordering or orphaned sub-items. This read-first call is what makes AI-driven navigation editing through Easy MCP AI precise rather than destructive.
See it in action
wp_list_menus Listing menus to find the right oneβ¦
{
"total": 2,
"menus": [
{ "menu_id": 3, "name": "Primary Navigation", "location": "primary", "item_count": 6 },
{ "menu_id": 5, "name": "Footer Links", "location": "footer", "item_count": 4 }
]
} wp_get_menu {
"menu_id": 3,
"name": "Primary Navigation",
"location": "primary",
"items": [
{ "id": 12, "title": "Home", "url": "/" },
{ "id": 13, "title": "About", "url": "/about/" },
{ "id": 14, "title": "Blog", "url": "/blog/" }
]
} Found menu #3 β 'Primary Navigation'. Here are all 6 items.
Example Use Cases & Sample Prompts
- Reviewing navigation structure
- Prompt: βShow me the full structure of the primary navigation menu.β
- Before editing
- Prompt: βFetch the footer menu so I can see what links are currently there before we update it.β
- Checking a specific menu
- Prompt: βWhat links are in the βMobile Menuβ and in what order?β
- Audit navigation for dead links
- Prompt: βList all links in the main navigation so I can verify none of them are broken or outdated.β
- Documentation
- Prompt: βGet all navigation menus and their items so I can document the site structure.β
Frequently Asked Questions
What does wp_get_menu do?
Navigation hierarchy is hard to reason about without seeing the full item tree β Easy MCP AI fetches a specific menu with every item's label, URL, order, and parent-child relationship laid out in one response. Your AI client gets the complete structural picture before touching anything, which prevents accidental re-ordering or orphaned sub-items. This read-first call is what makes AI-driven navigation editing through Easy MCP AI precise rather than destructive.
How do I use wp_get_menu 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 all items in the primary navigation menu."
Do I need Easy MCP AI to use wp_get_menu?
Yes. wp_get_menu 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
MenusCreate a new WordPress navigation menu with a name and slug
Add a new item (page, post, URL, or category) to a WordPress navigation menu
Permanently delete a navigation menu and all its items
Delete a single item from a WordPress navigation menu
List all items in a specific navigation menu with their order and hierarchy
List all registered WordPress navigation menus with IDs and locations
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_get_menu 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.