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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.