WordPress MCP Server
A local server that enables Claude or other MCP tools to manage WordPress posts and media via REST API.
README
WordPress MCP Server
A local Node.js server that exposes WordPress REST API operations for Claude or other MCP-enabled tools.
What this does
- Creates new WordPress blog posts
- Updates existing posts
- Uploads images to WordPress media
- Attaches an uploaded image as a post's featured media
Setup
- Install dependencies locally if you want to run outside Docker:
npm install
- Copy the example environment file and configure your WordPress credentials:
cp .env.example .env
- Fill in
.env:
WP_URL: your self-hosted WordPress base URL, e.g.https://example.comWP_USERNAME: WordPress usernameWP_APP_PASSWORD: WordPress application passwordPORT: local port for the MCP server (default9808)
- Start the server locally:
npm start
Using Docker
Build and run with Docker Compose:
docker compose up --build
This uses the .env file to provide credentials into the container.
If you want to run only the Docker image:
docker build -t wordpress-mcp .
docker run --env-file .env -p 9808:9808 wordpress-mcp
API Endpoints
GET /postsGET /posts/:postIdPOST /create-postPOST /update-postPOST /upload-imagePOST /create-post-with-imagePOST /set-featured-imageGET /health
Example requests
Create a new post:
curl http://localhost:4000/create-post \
-H "Content-Type: application/json" \
-d '{"title":"Hello from Claude","content":"This is a generated blog post.","status":"draft"}'
Upload an image:
curl http://localhost:4000/upload-image \
-H "Content-Type: application/json" \
-d '{"imageUrl":"https://example.com/image.jpg","fileName":"image.jpg"}'
Create a post with featured media:
curl http://localhost:4000/create-post-with-image \
-H "Content-Type: application/json" \
-d '{"title":"Post with image","content":"Blog content","imageUrl":"https://example.com/image.jpg","fileName":"image.jpg"}'
List posts:
curl http://localhost:4000/posts
Get a specific post:
curl http://localhost:4000/posts/123
Update a post:
curl http://localhost:4000/update-post \
-H "Content-Type: application/json" \
-d '{"postId":123,"title":"Updated title","content":"Updated content"}'
Claude / MCP integration
This project includes a manifest at mcp-manifest.json describing the available operations.
The server also exposes the manifest directly at http://localhost:9808/manifest (or your public tunnel host).
Test on Claude
- Start the server locally or in Docker:
docker compose up -d --build
- Confirm the manifest is available:
curl http://127.0.0.1:9809/manifest
- In Claude custom connector / integration settings, use:
http://localhost:9809if Claude runs on the same machine- or your tunnel hostname if using Cloudflare, e.g.
https://mcp.yourdomain.com
- Important: set authentication to No auth / No sign-in service.
This server already authenticates to WordPress using the .env values, so Claude should not be configured with OAuth or an OAuth Client ID.
- Configure the connector to use the server endpoints:
GET /healthGET /manifestGET /postsGET /posts/:postIdPOST /create-postPOST /update-postPOST /upload-imagePOST /set-featured-imagePOST /create-post-with-imagePOST /.well-known/mcp/register(compatibility)POST /register(compatibility)
- Run a quick test request in Claude against
/healthor/manifest.
Example validation URL
If your connector settings accept a manifest URL, use:
http://localhost:9809/manifest
or:
https://mcp.yourdomain.com/manifest
Note: Keep your
.envprivate. The server must authenticate to WordPress using an Application Password and the correct site URL.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。