WordPress MCP Server for Cloudflare Workers
Get started with WordPress in your AI application. Choose your preferred language below.
npm install primrose-mcp
Sign up and create an API key in your dashboard
Use listTools() to discover WordPress tools and callTool() to execute them
import { Primrose } from 'primrose-mcp';
// Initialize the client
const primrose = new Primrose({
apiKey: 'prm_xxxxx',
provider: 'anthropic' // or: openai, google, amazon, meta, mistral
});
// List available WordPress tools
const tools = await primrose.listTools({ mcpServer: 'wordpress' });
console.log(tools);
// Call a WordPress tool
const result = await primrose.callTool('wordpress_wordpress_list_blocks', {
page: 'your-value',
order: 'your-value',
format: 'your-value',
search: 'your-value',
status: 'your-value',
orderby: 'your-value',
perPage: 'your-value'
});
console.log(result);This server uses API KEY authentication.
View Full Auth Guide