---
title: "WordPress Integration"
description: "Manage WordPress get site, list posts, get post, create post, update post"
---
The WordPress integration provides access to manage WordPress get site, list posts, get post, create post, update post through the Integrate MCP server.

## Installation

The WordPress integration is included with the SDK:

```typescript
import { wordpressIntegration } from "integrate-sdk/server";
```

## Setup

### 1. Create a WordPress OAuth App

1. Create an OAuth application for WordPress
2. Configure your redirect URI
3. Note your Client ID and Client Secret

### 2. Configure the Integration on Your Server

Add the WordPress integration to your server configuration. The integration automatically reads `WORDPRESS_CLIENT_ID` and `WORDPRESS_CLIENT_SECRET` from your environment variables:

```typescript
import { createMCPServer, wordpressIntegration } from "integrate-sdk/server";

export const { client: serverClient } = createMCPServer({
  apiKey: process.env.INTEGRATE_API_KEY,
  integrations: [
    wordpressIntegration({
      scopes: ["global"], // Optional
    }),
  ],
});
```

You can override the environment variables by passing explicit values:

```typescript
wordpressIntegration({
  clientId: process.env.CUSTOM_WORDPRESS_ID,
  clientSecret: process.env.CUSTOM_WORDPRESS_SECRET,
      scopes: ["global"], // Optional
});
```

### 3. Client-Side Usage

The default client automatically includes all integrations. You can use it directly:

```typescript
import { client } from "integrate-sdk";

await client.authorize("wordpress");
const result = await client.wordpress.getSite({
  site: "value",
});

console.log(result);
```

If you're using a custom client, add the integration to the integrations array:

```typescript
import { createMCPClient, wordpressIntegration } from "integrate-sdk";

const customClient = createMCPClient({
  integrations: [wordpressIntegration()],
});
```

## Configuration Options

<AutoTypeTable
  path="../src/integrations/wordpress.ts"
  name="WordpressIntegrationConfig"
/>


## Default Scopes

These defaults are applied unless you override `scopes` in the integration config:

- `global`

## Tools

### `wordpress_get_site`

Get site

<AutoTypeTable
  path="generated/tool-params/wordpress.ts"
  name="WordpressGetSiteParams"
/>

### `wordpress_list_posts`

List posts

<AutoTypeTable
  path="generated/tool-params/wordpress.ts"
  name="WordpressListPostsParams"
/>

### `wordpress_get_post`

Get post

<AutoTypeTable
  path="generated/tool-params/wordpress.ts"
  name="WordpressGetPostParams"
/>

### `wordpress_create_post`

Create post

<AutoTypeTable
  path="generated/tool-params/wordpress.ts"
  name="WordpressCreatePostParams"
/>

### `wordpress_update_post`

Update post

<AutoTypeTable
  path="generated/tool-params/wordpress.ts"
  name="WordpressUpdatePostParams"
/>

### `wordpress_list_media`

List media

<AutoTypeTable
  path="generated/tool-params/wordpress.ts"
  name="WordpressListMediaParams"
/>

## Notes

- Category: Websites & CMS
- Authentication mode: OAuth
