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-only

Description

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

Claude Desktop β€” MCP Connection
πŸ‘€
Show me all items in the primary navigation menu.
πŸ€–
Tool call 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 }
  ]
}
next step
Tool called 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

  1. Reviewing navigation structure
    • Prompt: β€œShow me the full structure of the primary navigation menu.”
  2. Before editing
    • Prompt: β€œFetch the footer menu so I can see what links are currently there before we update it.”
  3. Checking a specific menu
    • Prompt: β€œWhat links are in the β€˜Mobile Menu’ and in what order?”
  4. Audit navigation for dead links
    • Prompt: β€œList all links in the main navigation so I can verify none of them are broken or outdated.”
  5. 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.

Step 1

Get the Plugin

Install Easy MCP AI on your WordPress site to unlock wp_get_menu and all 74 tools instantly.

Download Free Plugin

Step 2

Connect Your AI Client

Already have the plugin? Step-by-step setup guides for Claude, ChatGPT, Cursor, Windsurf, and 10+ more.

View Setup Guides β†’

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.