Connecting Imagify with OpenAI Codex via MCP

Before continuing, make sure you have already completed Step 2.1: Make your WordPress site accessible to your AI assistant and have the following information ready:

  • Website URL
  • WordPress username
  • Application Password

Prerequisites

Before connecting OpenAI Codex Desktop, ensure you have:

  • WordPress 7 or later installed
  • OpenAI Codex Desktop installed
  • An OpenAI account

Step 1: Add a New MCP Server

  1. Open OpenAI Codex Desktop
  2. Open Settings → MCP Servers.
  3. Click Add server.
  4. Select STDIO.

Step 2: Configure Your WordPress MCP Server

Codex supports multiple MCP connection types. For WordPress MCP integrations, select: STDIO

Enter the following values:

Field Value
Name your-website-domain
Command to launch npx

Arguments
Add the following arguments:

-y
@automattic/mcp-wordpress-remote@latest

Environment Variables
Add the following environment variables:

Key Value
WP_API_URL https://your-website-domain/wp-json/mcp/mcp-adapter-default-server
WP_API_USERNAME your-wordpress-username
WP_API_PASSWORD your-application-password
OAUTH_ENABLED false

Replace the following placeholders:

Placeholder Description
your-website-domain Your website domain
your-wordpress-username Your WordPress username
your-application-password The Application Password generated in Step 2.1

Step 3: Review and Save Your Configuration

Review your configuration and verify all values are correct. Your completed configuration should look similar to the example shown above.
Click Save.

Step 4: Restart Codex

  1. Return to the MCP Servers page.
  2. Verify your server appears in the list.
  3. Click Restart.

Codex reloads the MCP servers automatically after clicking Restart.

Step 5: Verify the connection

  1. Click Back to app to leave the Settings screen.
  2. Create a New Chat.
  3. Enter the following prompt:
    What Imagify abilties are available for my WordPress site?
  4. Submit the prompt.

Codex should display the MCP tools exposed by your WordPress plugin.

If the connection is successful, Codex is ready to interact with your WordPress site using natural language.

Next Step

Return to the main guide and continue with Step 3: Get Started to explore example prompts and MCP abilities.

Was this guide helpful? :) Great! Glad we could help! Thanks for your feedback
Great! Glad we could help!

Your feedback has been sent to our team We value every bit of feedback we receive as it helps us to improve our products and services. Thank you for your time.