# WordPress.com — Pipedream Connect

> Hosted Wordpress

- API slug: `wordpress_com` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Productivity
- Website: https://wordpress.com/
- Managed OAuth scopes: `global`
- This page (HTML): https://pipedream.com/apps/wordpress-com
- Tools: 4 actions · 3 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: wordpress_com`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "wordpress_com",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Create New Post:
const result = await mcp.callTool({
  name: "wordpress_com-create-post",
  arguments: {
    site: "Site ID or Domain",
    title: "Post Title",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a WordPress.com endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://public-api.wordpress.com/rest/v1.1/me

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9wdWJsaWMtYXBpLndvcmRwcmVzcy5jb20vcmVzdC92MS4xL21l?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "wordpress_com-create-post",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    wordpress_com: { authProvisionId: "apn_xxxxxxx" },
    site: "Site ID or Domain",
    title: "Post Title",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (4)

### `wordpress_com-create-post` — Create New Post (Write)

Creates a new post on a WordPress.com site. See the documentation

Full schema: https://pipedream.com/apps/wordpress-com/actions/create-post.md

### `wordpress_com-delete-post` — Delete Post (Write)

Deletes a post. See the documentation

Full schema: https://pipedream.com/apps/wordpress-com/actions/delete-post.md

### `wordpress_com-list-site-id-options` — List Site ID or Domain Options (Read-only)

Retrieves available options for the Site ID or Domain field.

Full schema: https://pipedream.com/apps/wordpress-com/actions/list-site-id-options.md

### `wordpress_com-upload-media` — Upload Media (Write)

Uploads a media file from a URL to the specified WordPress.com site. See the documentation

Full schema: https://pipedream.com/apps/wordpress-com/actions/upload-media.md

## Triggers (3)

### `wordpress_com-new-comment` — New Comment (Polling)

Emit new event for each new comment added since the last run. If no new comments, emit nothing.

Full schema: https://pipedream.com/apps/wordpress-com/triggers/new-comment.md

### `wordpress_com-new-follower` — New Follower (Polling)

Emit new event for each new follower that subscribes to the site.

Full schema: https://pipedream.com/apps/wordpress-com/triggers/new-follower.md

### `wordpress_com-new-post` — New Post (Polling)

Emit new event for each new post published since the last run. If no new posts, emit nothing.

Full schema: https://pipedream.com/apps/wordpress-com/triggers/new-post.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
