# WordPress

MCP server for WordPress REST API — manage posts, pages, media, comments, taxonomy, and users.

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add node2flow/wordpress

# Browse available tools
npx -y @smithery/cli@latest tool list node2flow/wordpress

# Get full schema for a tool
npx -y @smithery/cli@latest tool get node2flow/wordpress wp_list_posts

# Call a tool
npx -y @smithery/cli@latest tool call node2flow/wordpress wp_list_posts '{}'
```

## Direct MCP Connection

Endpoint: `https://wordpress--node2flow.run.tools`

**Required config:**
- `WORDPRESS_URL` (query) — Your WordPress site URL
- `WORDPRESS_USERNAME` (query) — WordPress username
- `WORDPRESS_APP_PASSWORD` (query) — Application Password (Settings > Users > Application Passwords)

## Tools (20)

- `wp_list_posts` — List WordPress posts with optional filters. Returns post ID, title, status, date, and categories. Use to browse existin…
- `wp_get_post` — Get a single WordPress post with full content, metadata, categories, and tags. Use to inspect post content before editi…
- `wp_create_post` — Create a new WordPress post. Provide title and content (HTML). Optionally set status (draft/publish), categories, and t…
- `wp_update_post` — Update an existing WordPress post. Change title, content, status, categories, or tags.
- `wp_delete_post` — Delete a WordPress post. Moves to trash by default.
- `wp_list_pages` — List WordPress pages. Returns page ID, title, status, and parent page. Use to browse site page structure.
- `wp_get_page` — Get a single WordPress page with full content and metadata.
- `wp_create_page` — Create a new WordPress page. Provide title and content (HTML). Optionally set parent page for hierarchy.
- `wp_update_page` — Update an existing WordPress page.
- `wp_delete_page` — Delete a WordPress page.
- `wp_list_media` — List media files in the WordPress library. Returns file URLs, types, and metadata.
- `wp_delete_media` — Permanently delete a media file from WordPress.
- `wp_list_comments` — List comments on WordPress posts. Filter by post ID.
- `wp_create_comment` — Create a new comment on a WordPress post.
- `wp_update_comment` — Update or moderate a comment. Change content or approval status.
- `wp_delete_comment` — Permanently delete a comment.
- `wp_list_categories` — List all WordPress categories with post counts.
- `wp_list_tags` — List all WordPress tags with post counts.
- `wp_list_users` — List WordPress users with their roles.
- `wp_get_site_info` — Get WordPress site information: name, description, URL, timezone, and available features.

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get node2flow/wordpress <tool-name>
```

## Resources

- `wordpress://server-info` — Connection status and available tools for this WordPress MCP server

## Prompts (2)

- `manage-content` — Guide for managing WordPress posts and pages — list, create, update, and delete content
- `manage-media` — Guide for managing WordPress media library, comments, categories, and tags

---

License: MIT
