REST APIと専用のヘルパープラグインを介して、AIエージェントによるWordPressのコンテンツ、メディア、ユーザー、およびSEO設定の管理を可能にします。
別名 thenavidm/wordpress-mcp-cli, @thenavidm/wordpress-mcp-cli
- スター
- 0
- ツール
- 30
- ダウンロード数(30日間)
- —
- 最新バージョン
- —
- 最終コミット
- 2026年11月6日
- ライセンス
- MIT
wordpress-mcp-cli MCPとは
wordpress-mcp-cliはMCPサーバーです。 REST APIと専用のヘルパープラグインを介して、AIエージェントによるWordPressのコンテンツ、メディア、ユーザー、およびSEO設定の管理を可能にします。. 30個のツールを提供しており、wp_list_sites, wp_get_me, wp_get_settingsなどがあります。
プロジェクトのREADMEから生成された概要
wordpress-mcp-cli MCP server について
このツールは、AIエージェントの中からWordPressのコンテンツ、メディア、およびSEO設定を管理することを可能にします。投稿、固定ページ、カスタム投稿タイプ、タクソノミー、ユーザー、コメントを扱うための42個の専門的なツールを提供します。開発者は、スクリプトやcronジョブ用のコマンドラインインターフェースとして、あるいはClaude Code、Claude Desktop、Cursorなどのクライアント用のMCP serverとして利用できます。
セットアップは、WordPressのプロフィールからアプリケーションパスワードを使用するだけで完了するため、OAuthの登録は不要です。ほとんどのツールは標準のREST APIで動作しますが、小さなヘルパープラグインを使用することで、エージェントが隠れたメタフィールドにアクセスできるようになります。この機能は、通常APIからは見えないElementorのレイアウト、ACFの値、Rank Math SEOの設定とやり取りするために不可欠です。誤った変更を防ぐため、システムはデフォルトで下書きとして保存し、コンテンツの公開や一括編集を実行する前には明示的な確認を求めます。
できること
- 1SEOメタデータの監査検索の視認性を向上させるために、公開済みの投稿の中でメタディスクリプションが不足しているものを特定します。
- 2Elementorレイアウトの管理隠れたメタフィールドに保存されている複雑なページデザインを読み取り、更新します。
- 3コンテンツ下書きの自動化新しい投稿を作成し、特定のカテゴリーに下書きとして整理します。
- 4サイトリダイレクトの処理Rank Mathを介して、URL変更を管理するための恒久的なリダイレクトを設定します。
プロジェクトの README から作成されています。すべてのユースケースは、その引用と照らし合わせて確認されています。
wordpress-mcp-cli MCPのインストール方法
フォーマット検証日 2026年11月10日Cursor に追加Gooseに追加Claude Codeにwordpress-mcp-cli MCPをインストール
$ claude mcp add wordpress-mcp-cli -- npx -y @thenavidm/wordpress-mcp-cliCursorにwordpress-mcp-cli MCPをインストール
~/.cursor/mcp.json
{
"mcpServers": {
"wordpress-mcp-cli": {
"command": "npx",
"args": [
"-y",
"@thenavidm/wordpress-mcp-cli"
]
}
}
}VS Codeにwordpress-mcp-cli MCPをインストール
.vscode/mcp.json
{
"servers": {
"wordpress-mcp-cli": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@thenavidm/wordpress-mcp-cli"
]
}
}
}VS Code CLIにwordpress-mcp-cli MCPをインストール
$ code --add-mcp '{"name":"wordpress-mcp-cli","type":"stdio","command":"npx","args":["-y","@thenavidm/wordpress-mcp-cli"]}'Claude Desktopにwordpress-mcp-cli MCPをインストール
claude_desktop_config.json
{
"mcpServers": {
"wordpress-mcp-cli": {
"command": "npx",
"args": [
"-y",
"@thenavidm/wordpress-mcp-cli"
]
}
}
}Codexにwordpress-mcp-cli MCPをインストール
$ codex mcp add wordpress-mcp-cli -- npx -y @thenavidm/wordpress-mcp-cliCodex config.tomlにwordpress-mcp-cli MCPをインストール
~/.codex/config.toml
[mcp_servers.wordpress-mcp-cli] command = "npx" args = ["-y", "@thenavidm/wordpress-mcp-cli"]
Gemini CLIにwordpress-mcp-cli MCPをインストール
$ gemini mcp add -s user wordpress-mcp-cli npx -- -y @thenavidm/wordpress-mcp-cliGemini settings.jsonにwordpress-mcp-cli MCPをインストール
~/.gemini/settings.json
{
"mcpServers": {
"wordpress-mcp-cli": {
"command": "npx",
"args": [
"-y",
"@thenavidm/wordpress-mcp-cli"
]
}
}
}wordpress-mcp-cli MCPツール 30
READMEから検出wp_list_siteswp_get_mewp_get_settingswp_searchwp_list_postswp_get_postwp_create_postwp_update_postwp_delete_postwp_list_pageswp_create_pagewp_update_page
| wp_list_sites | — | |
| wp_get_me | — | |
| wp_get_settings | — | |
| wp_search | — | |
| wp_list_posts | — | |
| wp_get_post | — | |
| wp_create_post | — | |
| wp_update_post | — | |
| wp_delete_post | — | |
| wp_list_pages | — | |
| wp_create_page | — | |
| wp_update_page | — |
30個のツールをすべて表示ツールを折りたたむ
wp_list_post_typeswp_list_customwp_get_customwp_create_customwp_update_customwp_delete_customwp_list_mediawp_get_mediawp_upload_mediawp_delete_mediawp_list_categorieswp_create_categorywp_list_tagswp_create_tagwp_list_taxonomieswp_list_taxonomy_termswp_list_userswp_list_comments
| wp_list_post_types | — | |
| wp_list_custom | — | |
| wp_get_custom | — | |
| wp_create_custom | — | |
| wp_update_custom | — | |
| wp_delete_custom | — | |
| wp_list_media | — | |
| wp_get_media | — | |
| wp_upload_media | — | |
| wp_delete_media | — | |
| wp_list_categories | — | |
| wp_create_category | — | |
| wp_list_tags | — | |
| wp_create_tag | — | |
| wp_list_taxonomies | — | |
| wp_list_taxonomy_terms | — | |
| wp_list_users | — | |
| wp_list_comments | — |
設定
WORDPRESS_APP_PASSWORDWORDPRESS_DEFAULT_SITEWORDPRESS_SITESWORDPRESS_SITE_URLWORDPRESS_USERNAME
| 名前 | 説明 | 種類 |
|---|---|---|
| WORDPRESS_APP_PASSWORD | — | |
| WORDPRESS_DEFAULT_SITE | — | |
| WORDPRESS_SITES | — | |
| WORDPRESS_SITE_URL | — | |
| WORDPRESS_USERNAME | — |
自動チェック
実行日 2026年11月14日完全なレポート →自動チェックに合格しました。これはセキュリティ監査ではありません。コードを読み、サーバーに必要最小限のアクセス権を与えてください。 チェックの仕組み
- ソースリポジトリがリンクされており、アクセス可能thenavidm/wordpress-mcp-cli is public and reachablegithub.com/thenavidm/wordpress-mcp-cli ↗合格
- パッケージがこのリポジトリをソースとして指定@thenavidm/wordpress-mcp-cli names thenavidm/wordpress-mcp-cli as sourcenpmjs.com/package/@thenavidm/wordpress-mcp-cli ↗合格
- ビルドの来歴 (Sigstore 証明)Sigstore attestation for @thenavidm/wordpress-mcp-clinpmjs.com/package/@thenavidm/wordpress-mcp-cli/v/2.0.1#prove ↗合格
- オープンソースライセンス (OSI)MITspdx.org/licenses/MIT.html ↗合格
- 過去1年以内にコミットまたはリリースありLast commit or release 2026-11-06github.com/thenavidm/wordpress-mcp-cli ↗合格
- OpenSSF Scorecard未チェック
- パッケージ名が有名なパッケージに酷似していないNo popular package one edit away from @thenavidm/wordpress-mcp-cli合格
- パッケージおよびその依存関係に重大な勧告なし未チェック
- モデルへの隠れた指示がない30 tool descriptions and the README read; no override phrases, credential paths or hidden characters合格
- 破壊的なツールがラベル付けされているNo tool named like delete, drop or exec合格
- リモートエンドポイントが MCP ハンドシェイクに応答未チェック
README
GitHubで見るWordPress MCP Server & CLI
WordPress MCP server and CLI for Claude Code, Codex and AI agents. 42 tools for posts, pages, custom post types, media, taxonomies, Elementor, Rank Math SEO, redirects, bulk edits, multi-site.
One install gives you both surfaces, the same 42 tools under the same names.
There is no OAuth app to register and no plugin required: an application password from your own profile screen is the whole setup.
It defaults to drafts. Publishing is the one thing here that cannot be taken back, so it takes a deliberate confirmation.
It also reads the meta fields WordPress hides from its own REST API, which is where Elementor layouts and ACF values actually live.
Built and maintained by Navid Moazzez. Built on Slipway, which turns one definition of each tool into the MCP server and the CLI.
You: Which posts on my blog are missing a meta description?
Claude: Checked the 40 published posts. Eleven have no meta description,
and these four get the most traffic:
• "How I plan a launch" /how-i-plan-a-launch
• "The tools I actually use" /tools-i-actually-use
• "Pricing, honestly" /pricing-honestly
• "What I got wrong in 2025" /what-i-got-wrong-in-2025
Three more are set to noindex, which looks unintentional:
two are 2,000-word guides and one is your services page.
Want me to draft descriptions for the four, or start with the
noindex on the services page?
Two ways to use it
Command line
wordpress-cli in your terminal, for scripting, cron, pipes, or just asking a
quick question without opening anything:
wordpress-cli # every command, one line each
wordpress-cli wp-list-posts --status draft --per-page 5
wordpress-cli wp-search "pricing"
wordpress-cli wp-get-post --post-id 42 --select id,title.rendered
wordpress-cli wp-create-post --title "Launch notes" --content "Draft body."
wordpress-cli wp-list-sites --json | jq -r '.sites[].name'
wordpress-cli wp-create-post --title "Live now" --content "…" --status publish --confirm
wordpress-cli <command> --help # what any command takes
--confirm is the shell spelling of the confirmation that publishing, permanent
deletion, replacing an Elementor layout and bulk edits require. --json gives
JSON, --compact puts it on one line, --select keeps only the fields you name,
and errors are JSON on stderr whichever you pick.
--agent is compact JSON with no prompts, and it never confirms a write.
Exit codes, so a script can branch without reading prose: 0 ok, 1 an
unexpected error, 2 bad arguments or a hidden or refused write, 3 not found,
4 auth, 5 the site failed, 7 rate limited, 10 nothing configured, or the
helper plugin or Rank Math missing.
MCP server, for your AI app
wordpress-mcp is what Claude Code, Claude Desktop, Cursor and the rest launch.
You never run it by hand:
claude mcp add wordpress \
-e WORDPRESS_SITE_URL=https://example.com \
-e WORDPRESS_USERNAME=your-wp-username \
-e "WORDPRESS_APP_PASSWORD=xxxx xxxx xxxx xxxx xxxx xxxx" \
-- npx -y @thenavidm/wordpress-mcp-cli@latest
Then just ask: "which of my published posts have no meta description?"
Each publish waits for your approval in the client, as section 8 explains.
Every other client is in section 4.
Which one
| Where you are | What you can reach |
|---|---|
| An agent that can run shell commands, like Claude Code or Cursor | Both. The CLI is the cheaper one: it costs nothing until you type it |
| claude.ai, the Claude Desktop chat tab, or a phone | The server only. There is no shell to run a command in |
| A terminal, a script, cron or CI | The CLI only. There is no MCP client in a shell |
They are the same program reading the same tool definitions, so anything one can do, the other can.
Features
Every tool is both a command and an MCP tool, with the same name. The command is the tool name with dashes.
| Capability | CLI command | MCP tool |
|---|---|---|
| See which sites and which user | wordpress-cli wp-list-sites / wp-get-me / wp-get-settings |
wp_list_sites / wp_get_me / wp_get_settings |
| Find anything | wordpress-cli wp-search |
wp_search |
| Posts and pages | wordpress-cli wp-list-posts / wp-create-post / wp-update-post / wp-list-pages |
wp_list_posts / wp_create_post / wp_update_post / wp_list_pages |
| Custom post types | wordpress-cli wp-list-post-types / wp-list-custom / wp-create-custom |
wp_list_post_types / wp_list_custom / wp_create_custom |
| Media | wordpress-cli wp-list-media / wp-upload-media |
wp_list_media / wp_upload_media |
| Categories, tags and taxonomies | wordpress-cli wp-list-categories / wp-create-category / wp-list-taxonomy-terms |
wp_list_categories / wp_create_category / wp_list_taxonomy_terms |
| Users and comments | wordpress-cli wp-list-users / wp-list-comments |
wp_list_users / wp_list_comments |
| Hidden meta and Elementor, with the helper plugin | wordpress-cli wp-get-all-meta / wp-get-elementor / wp-update-elementor |
wp_get_all_meta / wp_get_elementor / wp_update_elementor |
| Rank Math SEO and redirects, with the helper plugin | wordpress-cli wp-get-rankmath / wp-update-rankmath / wp-list-redirects |
wp_get_rankmath / wp_update_rankmath / wp_list_redirects |
| Bulk edits, with the helper plugin | wordpress-cli wp-bulk-update / wp-bulk-delete |
wp_bulk_update / wp_bulk_delete |
| Check your setup | wordpress-cli doctor |
not a tool |
All 42 are in section 7.
Contents
| # | Section | What is in it |
|---|---|---|
| 1 | What you can ask it | Real prompts, not features |
| 2 | Quick install | The package, no account needed |
| 3 | Set up your account | Every click |
| 4 | Connect your client | Claude Code, Desktop, Cursor |
| 5 | Check it worked | doctor |
| 6 | Which surface, and what each costs | Measured in Claude Code, and how to spend less |
| 7 | Tools | All 42, by what they reach |
| 8 | Writing safely | What is guarded and what is not |
| 9 | Notes and gotchas | WordPress's real behavior |
| 10 | Troubleshooting | Symptom to cause |
| 11 | FAQ | Including what an MCP server is |
1. What you can ask it 💬
- "Draft a post about the launch, file it under Marketing, and leave it as a draft."
- "Which posts are missing a meta description?"
- "Find every page that mentions the old pricing and show me where."
- "Duplicate the services page so I can rewrite it without touching the live one."
- "What custom post types does this site have, and how many items are in each?"
- "Redirect the old blog URL to the new one, permanently."
- "Upload this image, set the alt text, and make it the featured image on post 412."
- "List everything sitting in the moderation queue."
- "Which of my pages are set to noindex?"
- "Move all twelve of last year's event posts to draft."
The thing that is genuinely impossible without this: reading and writing the meta fields WordPress hides. Core refuses to expose any meta key beginning with an underscore, at any privilege level. That is where Elementor stores an entire page layout, where ACF stores its field values, and where Rank Math stores its SEO settings. Without the helper plugin included here, none of it is reachable over the API, so an agent looking at an Elementor page sees an empty post and concludes the page is blank.
2. Quick install ⚡
Node 22 or newer. Nothing else.
npx -y @thenavidm/wordpress-mcp-cli --version
That is the whole install. npx fetches it on demand, so there is nothing to update later.
3. Set up your account 🔑
The long version, every step with what to do when one fails, is in INSTALL.md.
You need an application password. It is not your login password. WordPress has generated these since version 5.6, they are revocable one at a time, and they carry the role of the user they belong to.
Your site has to be served over HTTPS. WordPress disables application passwords over plain HTTP.
Have an agent do it
The agent cannot sign in to WordPress for you. Only you can create the credential. What it can do is walk you through it, wire up the config, and verify the connection.
Paste this into Claude Code, Cursor, or any agent with terminal access:
Help me connect my WordPress site to the wordpress-mcp server.
1. Tell me to open my site's wp-admin and go to Users, then Profile.
2. Tell me to scroll to the "Application Passwords" section, enter a
descriptive name such as "Claude MCP", and create one.
3. Stop and wait. I will paste the generated password back to you.
Do not continue until I do.
4. Ask me for my site URL and my WordPress username.
5. Add the server to my MCP client config with those three values.
6. Run `npx -y @thenavidm/wordpress-mcp-cli doctor` and tell me what it says.
Or do it yourself
- Sign in to your site's
wp-adminas the user you want the agent to act as. - Go to Users, then Profile. To set one up for a different user, go to Users, then All Users, and edit that user instead.
- Scroll to the Application Passwords section.
- Enter a descriptive name, something like
Claude MCP, and create the password. - Copy what WordPress shows you. It is displayed once and never again.
WordPress shows the password in space-separated groups. It works with the spaces or without them, so paste whichever you have.
Which user to use
The application password carries that user's role exactly. An Author account can only reach its own posts, however the request is phrased.
| Role | What the agent can do |
|---|---|
| Administrator | Everything, including site settings and permanent deletion |
| Editor | Everything to content: publish, edit anyone's posts, upload media |
| Author | Its own posts only |
Editor is enough for almost all of this. Give the agent its own WordPress user rather than reusing your login, and you can revoke it without disturbing anything else.
The helper plugin
Thirty of the 42 tools work with nothing installed. The other twelve, covering Elementor, Rank Math, redirects, protected meta and bulk edits, need the small plugin in plugin/.
Copy plugin/mcp-wordpress-helper.php into wp-content/mu-plugins/ on your site. Files there load automatically, so there is nothing to activate. It registers routes under wordpress-mcp/v1, and every route checks the same capabilities WordPress would check itself.
Revoking
Go back to Users, then Profile, and revoke the password in the Application Passwords section. It stops working immediately, and your login password and every other integration are unaffected.
4. Connect your client 🔌
Claude Code
claude mcp add wordpress \
-e WORDPRESS_SITE_URL=https://example.com \
-e WORDPRESS_USERNAME=your-wp-username \
-e "WORDPRESS_APP_PASSWORD=xxxx xxxx xxxx xxxx xxxx xxxx" \
-- npx -y @thenavidm/wordpress-mcp-cli@latest
--scope user makes it available in every project rather than just the current one.
Claude Desktop
| Platform | Path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
{
"mcpServers": {
"wordpress": {
"command": "npx",
"args": ["-y", "@thenavidm/wordpress-mcp-cli@latest"],
"env": {
"WORDPRESS_SITE_URL": "https://example.com",
"WORDPRESS_USERNAME": "your-wp-username",
"WORDPRESS_APP_PASSWORD": "xxxx xxxx xxxx xxxx xxxx xxxx"
}
}
}
}
Quit Claude Desktop completely and reopen it.
Or skip the JSON: download wordpress-<version>.mcpb from the
latest release
and open it. Claude Desktop asks for the site address, the username and the
application password, and carries its own copy of everything it needs.
[!TIP] Claude Desktop does not inherit your shell PATH, so a bare command name fails silently. Use the absolute path from
which npx, and fully quit the app rather than closing the window.
claude.ai on the web
claude.ai runs connectors from Anthropic's cloud, so it cannot launch a local command. It needs a public HTTPS URL.
npx -y @thenavidm/wordpress-mcp-cli@latest --http --port=8790
Either spelling works: --port=8790 or --port 8790. WORDPRESS_HTTP_PORT
works too, and the flag wins over the variable.
Host it somewhere with a public HTTPS URL, then in claude.ai: Customize, then Connectors, then +, then Add custom connector. Paste the URL and click Add.
[!WARNING] Anything that can reach that port can publish to and permanently delete from your site without ever seeing the password. Set
WORDPRESS_HTTP_TOKENto a long random string; the server refuses to bind anything but loopback without one. A page from another site is refused unlessWORDPRESS_HTTP_ALLOWED_ORIGINSlists it.
Cursor
.cursor/mcp.json, same JSON shape as Claude Desktop, key mcpServers.
Windsurf
~/.codeium/windsurf/mcp_config.json, key mcpServers.
VS Code
.vscode/mcp.json. The key is servers, not mcpServers, and each entry takes "type": "stdio".
Codex CLI
~/.codex/config.toml:
[mcp_servers.wordpress]
command = "npx"
args = ["-y", "@thenavidm/wordpress-mcp-cli@latest"]
[mcp_servers.wordpress.env]
WORDPRESS_SITE_URL = "https://example.com"
WORDPRESS_USERNAME = "your-wp-username"
WORDPRESS_APP_PASSWORD = "xxxx xxxx xxxx xxxx xxxx xxxx"
Gemini CLI
~/.gemini/settings.json, key mcpServers.
Everything else
Any stdio MCP client takes the same three things: the command npx, the args, and the env block.
Or let the CLI write the entry, in each client's own format:
npx -y -p @thenavidm/wordpress-mcp-cli wordpress-cli install claude-code
It takes claude-code, codex, claude-desktop, cursor, vscode or gemini, and --dry-run shows the change first.
More than one site
Set WORDPRESS_SITES to a JSON array instead of the single-site variables, and every tool takes an optional site:
{
"env": {
"WORDPRESS_SITES": "[{\"name\":\"blog\",\"url\":\"https://example.com\",\"username\":\"you\",\"app_password\":\"xxxx xxxx xxxx xxxx xxxx xxxx\"},{\"name\":\"shop\",\"url\":\"https://shop.example.com\",\"username\":\"you\",\"app_password\":\"yyyy yyyy yyyy yyyy yyyy yyyy\"}]",
"WORDPRESS_DEFAULT_SITE": "blog"
}
}
Without WORDPRESS_DEFAULT_SITE, a call that does not name a site is refused rather than guessed at.
5. Check it worked 🩺
npx -y @thenavidm/wordpress-mcp-cli doctor
It walks the chain in order and stops at the first thing actually broken: HTTPS, then the shape of the password, then authentication, then the user's role, then whether the helper plugin is installed.
The two that come up most:
- "12 characters ignoring spaces, where WordPress generates 24." That is a login password. Application passwords are 24 characters and are generated in the Application Passwords section of the profile screen.
- "this user cannot publish posts." The credential is fine and the role is too low. Use an Editor or Administrator account.
6. Which surface, and what each costs 💸
Both surfaces are the same program with the same 42 tools. The difference is when the model pays for them. Measured in Claude Code:
| Cost | MCP server | CLI |
|---|---|---|
| Every message, with every tool loaded | 21,400 tokens | nothing |
| Every message, Claude Code's default | 1,300 tokens | nothing |
| When WordPress comes up | nothing more, or the tools it picks | 4,000 tokens for SKILL.md, once |
| 20 messages with WordPress in 1, every tool loaded | 428,000 tokens | 4,000 tokens |
Claude Code's tool search is on by default: it sends only the tool names and the server instructions, and loads a tool's full definition when the model reaches for it. An app that loads every tool up front pays the first line on every message, whether WordPress comes up or not. With the skill added, Claude Code also lists its one-line description, about 150 tokens.
Where the tokens go, with every tool loaded:
| Part of the tool list | Share |
|---|---|
| Structure: names, types, required lists, nesting, annotations | 49% |
| Argument descriptions | 32% |
| Tool descriptions | 19% |
To spend less, turn the server off when you are not using it, which in Claude
Code is the /mcp panel. WORDPRESS_READ_ONLY=1 takes the 20 write tools off the list, leaving 22,
and on a site without the helper plugin WORDPRESS_TOOLSETS=core leaves out the twelve that need it.
Or install the CLI and add the server on the days it earns its place.
Measured on 2026-10-05 with Claude Code 2.1.286 on Claude Opus 5.5: one
short prompt with and without the server connected, once with
ENABLE_TOOL_SEARCH=false and once with the default, the difference read
from the API's own usage figures. SKILL.md was measured the same way. Other
apps and models count tokens a little differently.
Against 1.1.3, measured the same day: every tool loaded costs 21,418 tokens
instead of 23,263, tool search the same within 2 tokens (1,330 against 1,328,
one of them for American spelling in the server instructions), and SKILL.md
82 more, because it now says how approval works over MCP and lists every exit
code. In Codex 0.159.3 on gpt-6.1-sol, the same task, "find the command that
sets a post's Rank Math SEO title and meta description, and the flags it
requires", read a median of 83,568 input tokens on 2.0.0 against 84,368 on
1.1.3 over the CLI, five runs each: Codex now asks which instead of reading
the full command list. Over MCP, Codex prints the tool list with a script and
cuts the printout to about 10,000 tokens, so it read about 9,600 on both
versions, out of a full listing of 40,174 tokens on 2.0.0 against 40,531. The
input totals, a median of 48,498 against 48,386, also carry the model's
reasoning into its second request, which three of the five 2.0.0 runs did and
none of the 1.1.3 runs; the two 2.0.0 runs that did not read 48,419 and 48,392.
7. Tools 🛠️
Thirty need nothing installed. The twelve marked 🔌 need the helper plugin, and wordpress-cli lists them under their own heading. On a site without it, WORDPRESS_TOOLSETS=core leaves them off the list.
Sites and identity
| Tool | What it does |
|---|---|
wp_list_sites |
Every configured site, its short name, and whether the plugin is there |
wp_get_me |
The user the password belongs to, and its capabilities |
wp_get_settings |
Title, tagline, timezone, date formats, default category |
Finding things
| Tool | What it does |
|---|---|
wp_search |
One search across every searchable post type and term |
Posts
| Tool | What it does |
|---|---|
wp_list_posts |
Filter by status, search, category, tag, author, date range |
wp_get_post |
One post, raw rather than rendered |
wp_create_post |
Create, draft by default |
wp_update_post |
Change only the fields passed |
wp_delete_post |
Trash, or permanently delete with force |
🔌 wp_duplicate_post |
Copy a post with all its meta, as a draft |
Pages
| Tool | What it does |
|---|---|
wp_list_pages |
Filter by status, search, parent, slug |
wp_create_page |
Create, with optional parent for nesting |
wp_update_page |
Change only the fields passed |
Custom post types
| Tool | What it does |
|---|---|
wp_list_post_types |
Every registered type and its REST base |
wp_list_custom |
List items of any type |
wp_get_custom |
One item |
wp_create_custom |
Create an item |
wp_update_custom |
Update an item |
wp_delete_custom |
Trash or delete an item |
Media
| Tool | What it does |
|---|---|
wp_list_media |
Filter by search, MIME type, or attached post |
wp_get_media |
One attachment, with every generated size |
wp_upload_media |
Upload from a URL, then set title, alt text and caption |
wp_delete_media |
Delete an attachment and its generated sizes |
Categories, tags and taxonomies
| Tool | What it does |
|---|---|
wp_list_categories |
With IDs and post counts |
wp_create_category |
Create one and return its ID |
wp_list_tags |
With IDs and post counts |
wp_create_tag |
Create one and return its ID |
wp_list_taxonomies |
Every taxonomy and its REST base |
wp_list_taxonomy_terms |
Terms in any taxonomy |
People
| Tool | What it does |
|---|---|
wp_list_users |
Users, with roles where visible |
wp_list_comments |
Comments, including the moderation queue |
The fields core hides
| Tool | What it does |
|---|---|
🔌 wp_get_all_meta |
Every meta field, including underscore-prefixed |
🔌 wp_update_meta |
Write meta fields, including protected keys |
🔌 wp_get_elementor |
The Elementor widget tree for a page |
🔌 wp_update_elementor |
Replace the Elementor widget tree |
SEO
| Tool | What it does |
|---|---|
🔌 wp_get_rankmath |
Every Rank Math field set on a post |
🔌 wp_update_rankmath |
Titles, descriptions, robots, canonical, OG, Twitter |
🔌 wp_list_redirects |
Redirects with sources, destinations and codes |
🔌 wp_create_redirect |
301, 302, 307, 410 or 451 |
🔌 wp_delete_redirect |
Remove a redirect |
Bulk
| Tool | What it does |
|---|---|
🔌 wp_bulk_update |
Same change across a list of posts |
🔌 wp_bulk_delete |
Trash or delete a list of posts |
wordpress-mcp-cli MCPのよくある質問
wordpress-mcp-cli MCPをClaude Codeに追加するには
ターミナルでclaude mcp add wordpress-mcp-cli -- npx -y @thenavidm/wordpress-mcp-cliを実行します。すべてのプロジェクトで利用するには--scope userを追加します。
wordpress-mcp-cli MCPをCursorに追加するには
~/.cursor/mcp.jsonを開き、上記のインストールセクションに示すCursor設定を使ってmcpServersの下にサーバーを追加します。
wordpress-mcp-cli MCPが提供するツールは
30個のツールを提供しており、wp_list_sites, wp_get_me, wp_get_settings, wp_search, wp_list_postsなどがあります。
WordPress MCP serverへの認証方法を教えてください。
ユーザープロフィール画面から生成したWordPressアプリケーションパスワードを使用します。通常のログインパスワードではありません。
動作にプラグインは必要ですか?
基本機能にはプラグインは不要ですが、Elementorのレイアウト、Rank Math SEO、リダイレクト、および一括編集にアクセスするにはヘルパープラグインが必要です。
AIが自動で記事を公開することはできますか?
公開は取り消しのできない操作であるため、明示的な確認が必要です。安全性を確保するため、サーバーのデフォルト設定では下書きとして作成されます。
CLIとMCP serverの違いは何ですか?
CLIはターミナルでの利用、スクリプト、cronジョブ向けであり、MCP serverはClaude DesktopやCursorなどのAIクライアントとの連携向けに設計されています。