MCP WordPress CrunchTools
MCP WordPress CrunchTools
Ein sicherer MCP-Server (Model Context Protocol) für die Verwaltung von WordPress-Inhalten. Entwickelt für Entwickler, die über ihre Arbeit veröffentlichen.
Übersicht
Dieser MCP-Server ist wie folgt konzipiert:
Standardmäßig sicher – Umfassende Eingabevalidierung, Schutz von Anmeldedaten und SSRF-Prävention
Keine Drittanbieterdienste – Läuft lokal über stdio, Ihre Anmeldedaten verlassen niemals Ihren Computer
Plattformunabhängig – Funktioniert unter Linux, macOS und Windows
Automatisch aktualisiert – GitHub Actions überwachen CVEs und aktualisieren Abhängigkeiten
Containerisiert – Verfügbar unter
quay.io/crunchtools/mcp-wordpress
Related MCP server: TypeScript WordPress MCP Server
Namenskonvention
Komponente | Name |
GitHub-Repository | |
Container |
|
Python-Paket (PyPI) |
|
CLI-Befehl |
|
Modulimport |
|
Funktionen
30 Werkzeuge für Beiträge, Seiten, Medien und Kommentare
Sicherheitsorientiert: Geschützte Anmeldedaten, Eingabevalidierung, SSRF-Prävention
Entwickler-Workflow: Geplante Veröffentlichung, Revisionen, Suche
Einfache Integration: Funktioniert mit Claude Code und anderen MCP-Clients
Installation
Mit uvx (empfohlen)
uvx mcp-wordpress-crunchtoolsMit pip
pip install mcp-wordpress-crunchtools
mcp-wordpress-crunchtoolsMit Container
# Create a shared upload directory (required before first run)
mkdir -p ~/.local/share/mcp-uploads-downloads
podman run -v ~/.local/share/mcp-uploads-downloads:/tmp/mcp-uploads:z \
-e WORDPRESS_URL=https://example.com \
-e WORDPRESS_USERNAME=admin \
-e WORDPRESS_APP_PASSWORD='xxxx xxxx xxxx xxxx' \
quay.io/crunchtools/mcp-wordpressSELinux-Hinweis: Verwenden Sie
:z(Kleinbuchstaben, gemeinsam) anstelle von:Z(Großbuchstaben, privat). MCP-Server laufen als langlebige stdio-Prozesse. Mit:Zhaben Dateien, die nach dem Containerstart in das Verzeichnis kopiert werden, nicht das private MCS-Label des Containers und sind innerhalb des Containers unsichtbar. Das:z-Flag setzt einen gemeinsamencontainer_file_t-Kontext, den alle Container und der Host lesen und beschreiben können.Tipp: Verwenden Sie dasselbe gemeinsame Verzeichnis (
~/.local/share/mcp-uploads-downloads/) für mehrere MCP-Container-Server (z. B. mcp-wordpress und mcp-gemini), damit generierte Dateien ohne Kopieren sofort zum Hochladen zur Verfügung stehen.
Aus dem Quellcode
git clone https://github.com/crunchtools/mcp-wordpress.git
cd mcp-wordpress
uv sync --all-extras
uv run mcp-wordpress-crunchtoolsKonfiguration
Legen Sie diese Umgebungsvariablen fest:
Variable | Beschreibung | Beispiel |
| WordPress-Website-URL |
|
| WordPress-Benutzername |
|
| Anwendungspasswort |
|
| Upload-Verzeichnis im Container (optional) |
|
Erstellen eines Anwendungspassworts
Melden Sie sich im WordPress-Adminbereich an
Gehen Sie zu Benutzer → Profil
Scrollen Sie zu Anwendungspasswörter
Geben Sie einen Namen ein (z. B. „MCP Server“) und klicken Sie auf Neu hinzufügen
Kopieren Sie das generierte Passwort (wird nur einmal angezeigt)
Verwendung mit Claude Code
Mit uvx (empfohlen)
claude mcp add mcp-wordpress-crunchtools \
--env WORDPRESS_URL=https://example.com \
--env WORDPRESS_USERNAME=admin \
--env WORDPRESS_APP_PASSWORD="xxxx xxxx xxxx xxxx" \
-- uvx mcp-wordpress-crunchtoolsMit pip
pip install mcp-wordpress-crunchtools
claude mcp add mcp-wordpress-crunchtools \
--env WORDPRESS_URL=https://example.com \
--env WORDPRESS_USERNAME=admin \
--env WORDPRESS_APP_PASSWORD="xxxx xxxx xxxx xxxx" \
-- mcp-wordpress-crunchtoolsMit Container
# Create a shared upload directory (required before first run)
mkdir -p ~/.local/share/mcp-uploads-downloads
claude mcp add mcp-wordpress-crunchtools \
--env WORDPRESS_URL=https://example.com \
--env WORDPRESS_USERNAME=admin \
--env WORDPRESS_APP_PASSWORD="xxxx xxxx xxxx xxxx" \
-- podman run -i --rm \
-v ~/.local/share/mcp-uploads-downloads:/tmp/mcp-uploads:z \
-e WORDPRESS_URL \
-e WORDPRESS_USERNAME \
-e WORDPRESS_APP_PASSWORD \
quay.io/crunchtools/mcp-wordpressVerfügbare Werkzeuge
Website-Werkzeuge
Tool | Beschreibung |
| Website-Titel, -Beschreibung, -URL, -Zeitzone abrufen |
| Überprüfen, ob die API-Anmeldedaten funktionieren |
Beitragswerkzeuge
Tool | Beschreibung |
| Beiträge mit Filtern auflisten (Status, Kategorie, Suche) |
| Einzelnen Beitrag nach ID mit vollem Inhalt abrufen |
| Beiträge nach Stichwort durchsuchen |
| Neuen Beitrag erstellen (unterstützt Zeitplanung) |
| Vorhandenen Beitrag aktualisieren |
| Beitrag löschen/verwerfen |
| Revisionen für einen Beitrag auflisten |
| Bestimmten Revisionsinhalt abrufen |
| Verfügbare Kategorien auflisten |
| Verfügbare Schlagwörter auflisten |
Seitenwerkzeuge
Tool | Beschreibung |
| Seiten mit Filtern auflisten |
| Einzelne Seite nach ID abrufen |
| Neue Seite erstellen |
| Vorhandene Seite aktualisieren |
| Seite löschen/verwerfen |
| Seitenrevisionen auflisten |
Medienwerkzeuge
Tool | Beschreibung |
| Medienelemente auflisten |
| Mediendetails abrufen |
| Datei aus lokalem Pfad hochladen |
| Medienmetadaten aktualisieren |
| Medienelement löschen |
| Öffentliche URL für Medien abrufen |
Kommentarwerkzeuge
Tool | Beschreibung |
| Kommentare mit Filtern auflisten |
| Einzelnen Kommentar abrufen |
| Kommentar zu einem Beitrag hinzufügen |
| Kommentarinhalt/-status aktualisieren |
| Kommentar löschen |
| Genehmigen, zurückhalten, als Spam markieren oder verwerfen |
Beispiele
Einen Beitragsentwurf erstellen
Create a new WordPress post titled "My Technical Article" with the content below. Keep it as a draft.Einen Beitrag planen
Update post ID 123 to publish on December 25, 2024 at 10:00 AM.Ein Bild hochladen
Upload this image to WordPress and set the alt text to "Architecture diagram".Kommentare finden und moderieren
List all comments in "hold" status and approve the legitimate ones.Sicherheit
Schutz von Anmeldedaten: Alle Anmeldedaten werden als
SecretStrgespeichert und niemals protokolliertSSRF-Prävention: REST-API-Pfad fest codiert, kann nicht überschrieben werden
Eingabevalidierung: Alle Eingaben werden über Pydantic-Modelle validiert
Ratenbegrenzung: Behandelt WordPress-Ratenbegrenzungen ordnungsgemäß
TLS-Erzwingung: Alle Anfragen verwenden HTTPS mit Zertifikatsvalidierung
Größenbeschränkungen: Antwortgröße auf 10 MB begrenzt, um Speicherprobleme zu vermeiden
Zeitüberschreitung: Alle Anfragen laufen nach 30 Sekunden ab
Entwicklung
# Install dev dependencies
uv sync --all-extras
# Run tests
uv run pytest
# Run linting
uv run ruff check src tests
# Run type checking
uv run mypy src
# Format code
uv run ruff format src testsLizenz
AGPL-3.0-or-later
Danksagungen
Erstellt von crunchtools.com
Available Tools
33 toolswordpress_create_commentWordpress Create CommentC
Create a new comment on a WordPress post.
Inputs: post (required), content (required), parent, author_name, +1 more. Returns: object
wordpress_create_pageWordpress Create PageC
Create a new WordPress page.
Inputs: title (required), content (required), date, slug, +6 more. Returns: object
wordpress_create_postWordpress Create PostC
Create a new WordPress post.
Inputs: title (required), content (required), date, slug, +6 more. Returns: object
wordpress_delete_commentWordpress Delete CommentB
Delete or trash a WordPress comment.
Inputs: comment_id (required), force. Returns: object
wordpress_delete_mediaWordpress Delete MediaC
Delete a WordPress media item.
Inputs: media_id (required), force. Returns: object
wordpress_delete_pageWordpress Delete PageC
Delete or trash a WordPress page.
Inputs: page_id (required), force. Returns: object
wordpress_delete_postWordpress Delete PostC
Delete or trash a WordPress post.
Inputs: post_id (required), force. Returns: object
wordpress_edit_draftWordpress Edit DraftA
Replace text in a draft or pending WordPress post's source. Refuses any other status.
Inputs: post_id (required), new_text (required), old_text (required), replace_all, +1 more. Returns: object
wordpress_edit_pageWordpress Edit PageA
Replace text in a WordPress page's source, without resending the page.
Inputs: page_id (required), new_text (required), old_text (required), replace_all, +1 more. Returns: object
wordpress_edit_postWordpress Edit PostA
Replace text in a WordPress post's source, without resending the post.
Inputs: post_id (required), new_text (required), old_text (required), replace_all, +1 more. Returns: object
wordpress_get_commentWordpress Get CommentBRead-only
Get a single WordPress comment by ID.
Inputs: comment_id (required). Returns: object
wordpress_get_mediaWordpress Get MediaBRead-only
Get a single WordPress media item by ID.
Inputs: media_id (required). Returns: object
wordpress_get_media_urlWordpress Get Media UrlBRead-only
Get the public URL for a WordPress media item.
Inputs: media_id (required), size. Returns: object
wordpress_get_pageWordpress Get PageBRead-only
Get a single WordPress page by ID with its saved source.
Inputs: page_id (required). Returns: object
wordpress_get_postWordpress Get PostARead-only
Get a single WordPress post by ID with its saved source.
Inputs: post_id (required). Returns: object
wordpress_get_revisionWordpress Get RevisionCRead-only
Get a specific revision of a WordPress post.
Inputs: post_id (required), revision_id (required). Returns: object
wordpress_get_site_infoWordpress Get Site InfoARead-only
Get WordPress site information.
Returns site title, description, URL, timezone, and other settings.
Inputs: no named parameters. Returns: object
wordpress_list_categoriesWordpress List CategoriesCRead-only
List available WordPress categories.
Inputs: page, search, per_page. Returns: object
wordpress_list_commentsWordpress List CommentsCRead-only
List WordPress comments with filtering.
Inputs: page, post, order, search, +3 more. Returns: object
wordpress_list_mediaWordpress List MediaCRead-only
List WordPress media items with filtering.
Inputs: page, order, search, orderby, +3 more. Returns: object
wordpress_list_page_revisionsWordpress List Page RevisionsBRead-only
List revisions for a WordPress page.
Inputs: page_id (required). Returns: object
wordpress_list_pagesWordpress List PagesCRead-only
List WordPress pages with filtering and pagination.
Inputs: page, order, parent, search, +3 more. Returns: object
wordpress_list_postsWordpress List PostsCRead-only
List WordPress posts with filtering and pagination.
Inputs: page, tags, order, search, +4 more. Returns: object
wordpress_list_revisionsWordpress List RevisionsBRead-only
List revisions for a WordPress post.
Inputs: post_id (required). Returns: object
wordpress_list_tagsWordpress List TagsCRead-only
List available WordPress tags.
Inputs: page, search, per_page. Returns: object
wordpress_moderate_commentWordpress Moderate CommentC
Moderate a WordPress comment by changing its status.
Inputs: action (required), comment_id (required). Returns: object
wordpress_search_postsWordpress Search PostsARead-only
Search WordPress posts by keyword in title and content.
Inputs: keyword (required), page, per_page. Returns: object
wordpress_test_connectionWordpress Test ConnectionARead-only
Test connection to WordPress REST API.
Verifies API credentials and returns connection status.
Inputs: no named parameters. Returns: object
wordpress_update_commentWordpress Update CommentC
Update an existing WordPress comment.
Inputs: comment_id (required), status, content. Returns: object
wordpress_update_mediaWordpress Update MediaC
Update WordPress media item metadata.
Inputs: media_id (required), title, caption, alt_text, +1 more. Returns: object
wordpress_update_pageWordpress Update PageA
Update an existing WordPress page. To change part of the content, use edit_page.
Inputs: page_id (required), date, slug, title, +8 more. Returns: object
wordpress_update_postWordpress Update PostB
Update an existing WordPress post. To change part of the content, use edit_post.
Inputs: post_id (required), date, slug, tags, +8 more. Returns: object
wordpress_upload_mediaWordpress Upload MediaA
Upload a media file to WordPress from a local file path.
The file is read directly from disk, avoiding large base64 payloads over the MCP protocol. Provide an absolute path to the file.
CONTAINER NOTE: When running as a container, the file path refers to the container filesystem, not the host. Files must be placed in ~/.local/share/mcp-wordpress/uploads/ on the host (mounted to /tmp/mcp-uploads/ inside the container) to be accessible.
Inputs: file_path (required), title, caption, alt_text, +1 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 33 tools
Most tools map cleanly to a distinct resource and action, especially across posts, pages, media, and comments. The main ambiguity is among update_post/edit_post/edit_draft and update_page/edit_page, which all modify content, though the descriptions distinguish full updates from source-text replacement.
All tools consistently use the wordpress_ prefix followed by snake_case verb_noun naming, such as list_posts, create_page, delete_comment, and moderate_comment. Names are predictable and readable throughout the set.
At 33 tools, the surface is heavy for a single MCP server and exceeds the rubric's 25+ threshold for too many tools. The broad WordPress content domain justifies many operations, but the set could likely consolidate overlapping post/page edit variants and media helpers.
Core content lifecycle coverage is strong for posts, pages, media, and comments, including revisions and comment moderation. Remaining gaps include no get-page-revision operation, read-only categories/tags, and no broader WordPress admin tools such as users or settings.
Maintenance
Related MCP Connectors
WordPress MCP server: publish posts, AI images, SEO and full site management, self-hosted
Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.
WordPress MCP server: generate SEO posts, AI images, autoblog & WooCommerce on your self-hosted site
WordPress MCP server: AI agents edit pages, builders, WooCommerce and SEO, every change recorded.
Related MCP Servers
- AlicenseCqualityDmaintenanceA lightweight MCP server that connects to WordPress via REST API, enabling content management (posts, pages, categories, etc.) and site configuration through natural language commands.49Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server for WordPress content management that provides a secure interface for AI assistants to interact with WordPress sites, enabling content creation, editing, and media management without destructive operations.MIT
- AlicenseNot gradedqualityBmaintenanceAn MCP server that enables safe reconnaissance, mutation, and verification of WordPress sites through guarded, typed verbs with dry-run previews and change-packet audit records.MIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that bridges AI assistants to WordPress, enabling natural-language management of posts, pages, media, comments, users, plugins, and settings across multiple sites simultaneously.1-