Structure Viewer is the AI toolkit for WordPress code. Turn any installed plugin or theme into a single AI-ready context pack, search inside every file, let AI agents like Claude, Cursor and VS Code Copilot explore your site through MCP, and browse every file with syntax highlighting — all from your
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 5.8 and PHP 7.4.
SourceWordPress plugins · Nov 18, 2026
01 / Source details
Aboutthistool.
Structure Viewer is the AI toolkit for WordPress code. Turn any installed plugin or theme into a single AI-ready context pack, search inside every file, let AI agents like Claude, Cursor and VS Code Copilot explore your site through MCP, and browse every file with syntax highlighting — all from your WordPress admin, with secrets redacted before anything leaves the server.
No FTP, no SSH, no copy-pasting one file at a time. Works with ChatGPT, Claude, Gemini, Cursor, Copilot, Windsurf and any other AI tool.
—
✨ AI Context Pack (new in 2.3)
The fastest way to give an AI your code.
One click, one document — project facts, a compact file tree and the full source of the files that matter, in a single paste-ready pack
Smart pick — automatically skips vendor libraries, minified assets, lock files, translations and binaries so your AI gets signal, not noise
Token budget — live token estimate with presets for 32K, 128K, 200K, 400K and 1M context windows; files beyond the budget are skipped automatically
Task templates — “Security audit”, “Code review & bugs”, “Write documentation”, “Add a feature”, “Write tests”, “Compatibility upgrade” — or write your own instructions
Three formats — Markdown, XML (the <documents> layout recommended for long-context models) or plain text
Copy or download — paste straight into a chat or attach the file
Secrets always redacted for AI output (configurable)
Add individual files from the file viewer with the + Add to Context Pack button
🤖 Built-in MCP Server for AI Agents (new in 2.3)
Structure Viewer is an MCP server — no MCP Adapter or any other plugin required, on any WordPress version from 5.8. Connect Claude Code, Claude Desktop, Cursor, VS Code (Copilot), Windsurf or any other MCP client and it can explore your plugins and themes on its own:
sv_list_items — list plugins, themes and mu-plugins
sv_get_item_summary — metadata, file counts and token estimate
sv_read_file — read any source file (or a line range), secrets redacted
sv_search_code — grep across one or all plugins/themes
sv_build_context_pack — a ready-made context pack sized to the agent’s budget
Pro: sv_get_hooks_map and sv_check_integrity
Plus ready-made prompts (security audit, code review, documentation…) for clients that support MCP prompts
Two-minute setup: open AI Agents , click Create token , pick your client and copy the generated config (Claude Code command, Claude Desktop, Cursor, VS Code, Windsurf or cURL). A self-test runs a real MCP handshake against your site. For local development there is also a stdio server: wp structure-viewer mcp --user=admin .
Standards-based: MCP Streamable HTTP transport (protocol 2024-11-05 → 2025-11-25), JSON-RPC 2.0, Origin validation, per-user revocable tokens (or WordPress Application Passwords). Every tool is read-only, requires an administrator and can be switched off in one click. On WordPress 6.9+ the same tools are also registered with the core Abilities API.
🔍 Code Search (new in 2.3)
Search inside every file of a plugin, a theme, the mu-plugins folder — or across all plugins at once
Match case, whole word and regular expressions , extension filters, optional vendor/minified files
Results grouped by file with line numbers and context; click any line to open the file at that exact line
Item sidebar with statistics, file breakdown and an estimated AI token count , plus shortcuts to build a context pack, search code, map hooks or verify integrity
📤 Export
TXT, JSON, XML, PDF and clipboard exports of any file tree — clean ASCII trees that fit nicely in AI prompts, tickets and documentation.
🔒 Secret Redaction
Masks API keys, tokens, passwords, AWS / Stripe / GitHub / Google / Slack / OpenAI / Anthropic / SendGrid / Mailchimp keys, JWTs, PEM private keys, wp-config credentials, credential constants, .env -style assignments and passwords in connection strings. Always on for AI output by default; optional for the file viewer and downloads.
Pro: wp structure-viewer hooks plugin <slug> and wp structure-viewer integrity
—
🚀 Structure Viewer Pro
🪝 Hooks Map (new) — static analysis of every PHP file (nothing is executed): actions and filters hooked (with callback and priority), every do_action / apply_filters fired, AJAX handlers, REST routes, shortcodes, post types, taxonomies, blocks, cron events, admin pages, settings, WP-CLI commands, enqueued assets, classes and functions — each linked to its file and line. Export as Markdown or JSON, add it to Context Packs, or let AI agents call it.
🛡️ Integrity Check (new) — verify WordPress core and every WordPress.org plugin against the official checksums. Find modified, missing and suspicious (unexpected executable) files, and see a line-by-line diff against the original release. Ideal after a hack, before a site handover, or when someone “just edited the plugin”.
💾 Context Pack presets & compression (new) — save file selections, task prompts and options as reusable presets, strip comments and blank lines to save 20–40% tokens, and include the Hooks Map in any pack.
🔀 Comparator — colour-coded line-by-line diff between two plugin/theme ZIPs, an installed item and a ZIP, or two files. Handles large and minified files.
📦 FlatPack — extract only the PHP, CSS, JS, images or custom extensions from any ZIP into one flat, collision-safe download.
Upgrade from Structure Viewer → Pro Tools → Upgrade to Pro .
—
🔒 Security & Privacy
Strictly read-only — Structure Viewer never modifies, deletes or uploads files on your site
manage_options capability (administrators) required for every screen, AJAX call and AI ability
Nonce verification on every request, path traversal prevention with realpath() checks
AI agent tools can be disabled with one toggle; secrets are redacted for AI by default
No external requests at runtime. The only outbound requests are the ones you start yourself in the Pro Integrity Check (to downloads.wordpress.org, plugins.svn.wordpress.org and api.wordpress.org for checksums and original files)
⚡ Performance
Assets load only on the Structure Viewer screen — zero frontend impact
Lazy tree loading, cached dashboard stats, cached Hooks Map and checksum results
Code search has result and time limits so it never ties up your server
See it in action
Screenshots & previews.
Dashboard — site stats, AI readiness, quick actions and Pro toolsAI Context Pack — smart file selection, task templates and token budgetAI Context Pack — the generated pack, ready to copy or downloadCode Search — results with line numbers and contextFile viewer — syntax highlighting, line numbers and "Copy for AI"AI Agents — built-in MCP server, connection token and generated client configurationExplorer — file tree, statistics and "Use with AI" shortcutsPro: Hooks Map — every hook, route and shortcode with file and linePro: Integrity Check — modified and suspicious files with diff against the originalPro: Comparator — colour-coded diff between two plugin versionsSettings — AI & agent controls, redaction and accent colour
02 / Source details
Gettingstarted.
01Go to Plugins → Add New in your WordPress admin.
02Search for Structure Viewer .
03Click Install Now , then Activate .
04Navigate to Tools → Structure Viewer .
To connect AI agents (optional): open Structure Viewer → AI Agents , click Create token and copy the generated configuration into your AI client. Nothing else to install.
03 / Source details
Frequently asked questions.
What is an AI Context Pack?
A single document that contains everything an AI needs to understand a plugin or theme: its name, version and requirements, a file tree, and the full source of the relevant files — with secrets redacted. Paste it into ChatGPT, Claude, Gemini or any other assistant, or attach the downloaded file, then ask your question.
Which AI tools does it work with?
All of them. Context Packs are plain Markdown, XML or text, so they work with any chat assistant or IDE. AI agents that speak MCP (Claude Desktop, Claude Code, Cursor, VS Code with Copilot, Windsurf and many others) connect directly to Structure Viewer’s built-in MCP server.
How do I connect Claude, Cursor or VS Code?
Open Tools → Structure Viewer → AI Agents , click Create token , choose your client and copy the generated configuration. Click Run self-test to confirm everything works. No other plugin is needed.
Is it safe to let an AI agent read my code?
Every Structure Viewer ability is read-only and requires an authenticated administrator (via Application Password). Secrets are redacted before content is returned, and you can turn agent access off at any time under Settings → AI & Agents .
Do I need the MCP Adapter or any other plugin?
No. Structure Viewer ships its own MCP server, so it works on its own on WordPress 5.8 and newer. If your site runs WordPress 6.9+, the same tools are additionally registered with the core Abilities API for any other Abilities-aware tooling.
How is the MCP connection secured?
Each administrator can create a personal connection token (shown once, stored only as a hash, revocable any time). The token only works on the Structure Viewer MCP endpoint, every tool is read-only, secrets are redacted, and browser requests from other origins are rejected. Use HTTPS on live sites. WordPress Application Passwords are accepted as well.
How many tokens will my plugin use?
The Explorer sidebar shows an estimate for every plugin and theme, and the Context Pack builder shows a live estimate for your selection against the context window you choose.
What does Secret Redaction catch?
API keys and tokens from AWS, Stripe, GitHub, Google, Slack, OpenAI, Anthropic, SendGrid and Mailchimp, JWTs, PEM private keys, wp-config credentials, credential-looking constants, .env -style assignments, passwords in connection strings and generic password = "…" style assignments.
Can I search inside a plugin’s files?
Yes — Code Search looks inside every file, with regex, case and whole-word options, extension filters and clickable line results. You can search one plugin or theme, or all of them at once.
Is this a WordPress file manager?
No. Structure Viewer is a read-only code explorer for developers and AI workflows. It cannot edit, upload or delete files, which makes it safe to use on live sites.
Is this plugin safe to use on a live site?
Yes. It is read-only, admin-only and loads nothing on your frontend.
Do I need FTP or server access?
No. Everything works from the WordPress admin.
Does it work with themes and must-use plugins?
Yes. Everything that works for plugins works for themes, and the mu-plugins folder appears automatically when your site has one.
Does it work with WP-CLI?
Yes: pack , search , mcp , export and list are free; hooks and integrity come with Pro. Run wp help structure-viewer for all options.
What is in Structure Viewer Pro?
Hooks Map, Integrity Check, Context Pack presets and compression, Comparator and FlatPack. The free version includes the Explorer, file viewer, AI Context Packs, Code Search, AI agent tools, exports, WP-CLI and secret redaction.
How does the Integrity Check work?
It downloads the official checksums for the exact version of each WordPress.org plugin (and for WordPress core) and compares them with the files on your server. Premium and custom plugins can’t be verified because WordPress.org has no checksums for them; they are listed as “not on WordPress.org”.
Does the plugin store any personal data?
Settings are stored in the structureviewer_settings option. A few per-user preferences (dismissed notices, Pro presets) are stored as user meta. No personal data is collected or sent anywhere.
Is Structure Viewer compatible with Multisite?
It is designed for single sites and works on individual subsites, but network-level administration is not officially supported.
How can I support development?
A review on WordPress.org helps a lot, and you can buy us a coffee at buymeacoffee.com/blincks .
FinderPress Media Auditor helps site administrators scan for broken images, missing Media Library files, unreachable media URLs, and other media issues across WordPress content. Use it to audit images, video, audio, PDFs, featured images, and attachment files without sending scan data to an external
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati