WordPress Integration
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:
import { wordpressIntegration } from "integrate-sdk/server";Setup
1. Create a WordPress OAuth App
- Create an OAuth application for WordPress
- Configure your redirect URI
- 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:
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:
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:
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:
import { createMCPClient, wordpressIntegration } from "integrate-sdk";
const customClient = createMCPClient({
integrations: [wordpressIntegration()],
});Configuration Options
Prop
Type
Default Scopes
These defaults are applied unless you override scopes in the integration config:
global
Tools
wordpress_get_site
Get site
Prop
Type
wordpress_list_posts
List posts
Prop
Type
wordpress_get_post
Get post
Prop
Type
wordpress_create_post
Create post
Prop
Type
wordpress_update_post
Update post
Prop
Type
wordpress_list_media
List media
Prop
Type
Notes
- Category: Websites & CMS
- Authentication mode: OAuth