WordPress.com MCP server for AI agents and assistants

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with WordPress.com MCP or direct API to manage posts, upload media, moderate comments, and analyze site stats through natural language.

WordPress.com logoWordPress.com
Oauth2

WordPress.com is a hosted website and blogging platform for building sites, publishing posts, and managing media. It gives creators and teams a simple way to publish, grow, and measure content online.

26 Tools

Try WordPress.com now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
WordPress.com
Try asking
TOOLS

Supported Tools

Every WordPress.com action and event your agent gets out of the box.

Create Draft Post

Create a non-public draft post on an authorized site.

Create Menu Item

Create a custom or object-backed navigation item, optionally assigning it to a site menu.

Create Page

Create a WordPress page as a non-public draft by default.

Create Template

Create a WordPress block template with a unique slug.

Delete Draft Post

Permanently delete a post after a preflight verifies that its status is draft.

Delete Media

Permanently delete one media item without moving it to trash.

Permanently Delete Post

Permanently delete one post regardless of its current publication status.

Get Detailed Site Stats

Get referrers, outbound clicks, top posts, or country views for an authorized site over a selected period.

Get Media

Retrieve one site's media item by ID with detailed metadata and optional provider field projection.

Get Page

Retrieve one page by site and page ID, including editable source fields when edit context is requested.

Get Post

Get one post by ID in editable context, including raw content and its current status.

Get Site Overview

Get concise identity, plan, capabilities, editable settings, and traffic summary for one authorized site.

Get Visit Stats

Return an authorized site's visit-statistics series for a selected time unit and quantity.

List Blogging Prompts

List WordPress.com writing prompts for a site, optionally filtered by date or text, with agent-controlled pagination.

List CMS Resources

List categories, tags, comments, media, or users for an authorized site through one consistent paginated read tool.

List Content

List and search editable posts or pages on an authorized site, including drafts, with compact raw and rendered content fields and agent-controlled pagination.

List Reader Subscriptions

List feeds and sites followed by the connected WordPress.com account without changing subscriptions.

List Site Posts

Return one page of posts from the WordPress.com REST v1.1 collection, with documented filters, compact post details, the total found count, and an opaque continuation handle.

List Sites

List WordPress.com or Jetpack-connected sites authorized by the global OAuth account, optionally filtered by visibility or activity, with numeric site IDs and concise capability and plan summaries.

Update Draft Post

Update title, body, excerpt, taxonomy, featured media, or comment policy after a preflight verifies that the post is a draft.

Update Media

Update selected metadata fields on one WordPress.com media item.

Update Menu Item

Update selected fields on one navigation menu item without replacing the complete menu tree.

Update Page

Update selected fields on one WordPress page.

Update Post

Update selected fields on any editable WordPress.com post, including its publication lifecycle, taxonomy, and discussion settings.

Update Site Menu

Read a navigation menu's current state, update its name or item tree with arbitrary nesting, and return the menu state from before and after the change.

Update Site Settings

Update one or more documented settings on an authorized WordPress site and return the resulting settings.

SETUP GUIDE

Connect WordPress.com MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
Install the Composio SDK and your agent framework
2

Create a session with MCP enabled

typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["wordpress_com"],
  mcp: true,
});
Create a session scoped to WordPress.com and read its MCP URL and headers
3

Connect your agent to the MCP server

typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Create a draft WordPress.com post titled Q3 Product Update on my primary site with a short intro paragraph",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
Pass the session's MCP URL and headers to your agent and run a WordPress.com request
SETUP GUIDE

Connect WordPress.com API Tool with your Agent

1

Install Composio

typescript
npm install @composio/core @composio/openai openai
Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
2

Create a Composio session

typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["wordpress_com"] });
const tools = await session.tools();
Initialize Composio with the OpenAI Responses provider and create a session scoped to WordPress.com
3

Run WordPress.com tools with your agent

typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Create a draft WordPress.com post titled Q3 Product Update on my primary site with a short intro paragraph" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
Send a request, execute the WordPress.com tool calls through the session, and print the final answer

Why Use Composio?

AI Native WordPress.com Integration

  • Supports both WordPress.com MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable tool execution
  • Rich coverage for sites, posts, pages, media, comments, Reader data, and stats

Managed Auth

  • Built-in OAuth handling with secure token storage and refresh support
  • Central place to manage, scope, and revoke WordPress.com access
  • Per user and per environment credentials instead of hard-coded OAuth secrets

Agent Optimized Design

  • Tools are shaped so agents can publish posts, fetch site data, and moderate comments without messy custom API glue
  • Comprehensive execution logs so you always know what ran, when, and on whose WordPress.com account

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access WordPress.com
  • Scoped, least privilege access to WordPress.com sites, content, and media
  • Full audit trail of agent actions to support review and compliance
FAQ

Frequently asked questions

Start with WordPress.com.It takes 30 seconds.

Managed auth, hosted MCP servers, and every WordPress.com tool your agent needs.Free to start.

Start building