MCP.so
登录

WordPress MCP Server

@gopalcnepal

基本信息

分类

其他

许可证

MIT license

传输方式

stdio

作者

gopalcnepal

关于 WordPress MCP Server

A Model Context Protocol (MCP) server for interacting with WordPress sites. This server provides tools to fetch posts, pages, categories, and site information from any WordPress installation with REST API enabled.

WordPress MCP Server 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-wordpress": {
      "command": "uv",
      "args": [
        "venv"
      ]
    }
  }
}

WordPress MCP Server 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is WordPress MCP Server?

A Model Context Protocol (MCP) server that provides tools to fetch posts, pages, categories, and site information from any WordPress installation with REST API enabled. It is intended for developers or AI assistants that need to interact programmatically with WordPress sites.

How to use WordPress MCP Server?

Install via UV, clone the repository, create a virtual environment, and install dependencies. Configure a .env file with WORDPRESS_URL. Start the server with uv run main.py and add the server’s configuration to Claude for Desktop’s claude_desktop_config.json. Tools include fetch_wordpress_info, fetch_posts, fetch_categories, fetch_posts_by_category, fetch_pages, fetch_post_by_id, and fetch_page_by_id.

Key features of WordPress MCP Server

  • Fetches site info, posts, pages, and categories
  • Supports filtering posts by category
  • Retrieves individual posts and pages by ID
  • Requires Python 3.13 and WordPress REST API enabled
  • Uses UV for dependency management
  • Includes error handling for network and API errors

Use cases of WordPress MCP Server

  • An AI assistant retrieving recent blog posts from a WordPress site
  • Listing all categories for content organization
  • Getting a specific page by ID for editing or analysis
  • Displaying site information during onboarding or diagnostics
  • Fetching posts filtered by category for targeted summaries

常见问题

1

What prerequisites are needed?

Python 3.13, a WordPress site with REST API enabled, and the UV package installer (recommended).

2

How do I configure the server?

Create a `.env` file in the project root with the entry `WORDPRESS_URL="https://your-wordpress-site.com"`.

3

What tools does the server provide?

Seven tools: fetch_wordpress_info, fetch_posts, fetch_categories, fetch_posts_by_category, fetch_pages, fetch_post_by_id, and fetch_page_by_id.

4

How do I integrate with Claude for Desktop?

Start the server with `uv run main.py`, then add a JSON entry to `claude_desktop_config.json` specifying the `uv` command and the path to the `wordpress` directory.

5

What error handling is included?

The server handles invalid JSON responses, network errors, WordPress API errors, and invalid URLs.

评论

其他 分类下的更多 MCP 服务器