{"id":1256,"date":"2026-07-08T08:21:23","date_gmt":"2026-07-08T08:21:23","guid":{"rendered":"https:\/\/imagify.io\/documentation\/?p=1256"},"modified":"2026-07-08T08:23:02","modified_gmt":"2026-07-08T08:23:02","slug":"connecting-imagify-with-openai-codex-via-mcp","status":"publish","type":"post","link":"https:\/\/imagify.io\/documentation\/connecting-imagify-with-openai-codex-via-mcp\/","title":{"rendered":"Connecting Imagify with OpenAI Codex via MCP"},"content":{"rendered":"<p>Before continuing, make sure you have already completed <a href=\"https:\/\/imagify.io\/documentation\/imagify-mcp\/#toc6\" target=\"_blank\" rel=\"noopener\">Step 2.1: Make your WordPress site accessible to your AI assistant<\/a> and have the following information ready:<\/p>\n<ul>\n<li>Website URL<\/li>\n<li>WordPress username<\/li>\n<li>Application Password<\/li>\n<\/ul>\n<h4>Prerequisites<\/h4>\n<p>Before connecting OpenAI Codex Desktop, ensure you have:<\/p>\n<ul>\n<li>WordPress 7 or later installed<\/li>\n<li>OpenAI Codex Desktop installed<\/li>\n<li>An OpenAI account<\/li>\n<\/ul>\n<h3>Step 1: Add a New MCP Server<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1257\" src=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.20.09\u202fPM.png\" alt=\"\" width=\"2068\" height=\"1320\" srcset=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.20.09\u202fPM.png 2068w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.20.09\u202fPM-300x191.png 300w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.20.09\u202fPM-1024x654.png 1024w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.20.09\u202fPM-768x490.png 768w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.20.09\u202fPM-1536x980.png 1536w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.20.09\u202fPM-2048x1307.png 2048w\" sizes=\"auto, (max-width: 2068px) 100vw, 2068px\" \/><\/h3>\n<ol>\n<li>Open OpenAI Codex Desktop<\/li>\n<li>Open Settings \u2192 MCP Servers.<\/li>\n<li>Click Add server.<\/li>\n<li>Select STDIO.<\/li>\n<\/ol>\n<h3>Step 2: Configure Your WordPress MCP Server<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1258\" src=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.20.32\u202fPM.png\" alt=\"\" width=\"2068\" height=\"1552\" srcset=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.20.32\u202fPM.png 2068w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.20.32\u202fPM-300x225.png 300w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.20.32\u202fPM-1024x768.png 1024w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.20.32\u202fPM-768x576.png 768w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.20.32\u202fPM-1536x1153.png 1536w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.20.32\u202fPM-2048x1537.png 2048w\" sizes=\"auto, (max-width: 2068px) 100vw, 2068px\" \/><\/h3>\n<p>Codex supports multiple MCP connection types. For WordPress MCP integrations, select: <strong>STDIO<\/strong><\/p>\n<p>Enter the following values:<\/p>\n<table style=\"width: 100%;border-collapse: collapse;margin-bottom: 20px\">\n<thead>\n<tr style=\"background-color: #f1f1f1;border-bottom: 1px solid #ccc\">\n<th style=\"padding: 8px;text-align: left;border: 1px solid #ddd\">Field<\/th>\n<th style=\"padding: 8px;text-align: left;border: 1px solid #ddd\">Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding: 8px;border: 1px solid #ddd\">Name<\/td>\n<td style=\"padding: 8px;border: 1px solid #ddd\"><code>your-website-domain<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 8px;border: 1px solid #ddd\">Command to launch<\/td>\n<td style=\"padding: 8px;border: 1px solid #ddd\"><code>npx<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Arguments<\/strong><br \/>\nAdd the following arguments:<\/p>\n<pre style=\"background-color: #f5f5f5;padding: 15px;border-left: 4px solid #0073aa;font-family: monospace\">-y\n@automattic\/mcp-wordpress-remote@latest<\/pre>\n<p><strong>Environment Variables<\/strong><br \/>\nAdd the following environment variables:<\/p>\n<table style=\"width: 100%;border-collapse: collapse;margin-bottom: 20px\">\n<thead>\n<tr style=\"background-color: #f1f1f1;border-bottom: 1px solid #ccc\">\n<th style=\"padding: 8px;text-align: left;border: 1px solid #ddd\">Key<\/th>\n<th style=\"padding: 8px;text-align: left;border: 1px solid #ddd\">Value<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding: 8px;border: 1px solid #ddd\">WP_API_URL<\/td>\n<td style=\"padding: 8px;border: 1px solid #ddd\"><code>https:\/\/your-website-domain\/wp-json\/mcp\/mcp-adapter-default-server<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 8px;border: 1px solid #ddd\">WP_API_USERNAME<\/td>\n<td style=\"padding: 8px;border: 1px solid #ddd\"><code>your-wordpress-username<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 8px;border: 1px solid #ddd\">WP_API_PASSWORD<\/td>\n<td style=\"padding: 8px;border: 1px solid #ddd\"><code>your-application-password<\/code><\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 8px;border: 1px solid #ddd\">OAUTH_ENABLED<\/td>\n<td style=\"padding: 8px;border: 1px solid #ddd\"><code>false<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Replace the following placeholders:<\/p>\n<table style=\"width: 100%;border-collapse: collapse;margin-bottom: 20px\">\n<thead>\n<tr style=\"background-color: #f1f1f1;border-bottom: 1px solid #ccc\">\n<th style=\"padding: 8px;text-align: left;border: 1px solid #ddd\">Placeholder<\/th>\n<th style=\"padding: 8px;text-align: left;border: 1px solid #ddd\">Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"padding: 8px;border: 1px solid #ddd\">your-website-domain<\/td>\n<td style=\"padding: 8px;border: 1px solid #ddd\">Your website domain<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 8px;border: 1px solid #ddd\">your-wordpress-username<\/td>\n<td style=\"padding: 8px;border: 1px solid #ddd\">Your WordPress username<\/td>\n<\/tr>\n<tr>\n<td style=\"padding: 8px;border: 1px solid #ddd\">your-application-password<\/td>\n<td style=\"padding: 8px;border: 1px solid #ddd\">The Application Password generated in Step 2.1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Step 3: Review and Save Your Configuration<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1259\" src=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/SCR-20260708-migs.png\" alt=\"\" width=\"1130\" height=\"1126\" srcset=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/SCR-20260708-migs.png 1130w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/SCR-20260708-migs-300x300.png 300w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/SCR-20260708-migs-1024x1020.png 1024w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/SCR-20260708-migs-150x150.png 150w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/SCR-20260708-migs-768x765.png 768w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/SCR-20260708-migs-120x120.png 120w\" sizes=\"auto, (max-width: 1130px) 100vw, 1130px\" \/><\/h3>\n<p>Review your configuration and verify all values are correct. Your completed configuration should look similar to the example shown above.<br \/>\nClick Save.<\/p>\n<h3>Step 4: Restart Codex<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1260\" src=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.47.11\u202fPM.png\" alt=\"\" width=\"2050\" height=\"1342\" srcset=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.47.11\u202fPM.png 2050w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.47.11\u202fPM-300x196.png 300w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.47.11\u202fPM-1024x670.png 1024w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.47.11\u202fPM-768x503.png 768w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.47.11\u202fPM-1536x1006.png 1536w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-06-01-at-8.47.11\u202fPM-2048x1341.png 2048w\" sizes=\"auto, (max-width: 2050px) 100vw, 2050px\" \/><\/h3>\n<ol>\n<li>Return to the MCP Servers page.<\/li>\n<li>Verify your server appears in the list.<\/li>\n<li>Click Restart.<\/li>\n<\/ol>\n<p>Codex reloads the MCP servers automatically after clicking Restart.<\/p>\n<h3>Step 5: Verify the connection<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1261\" src=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-07-07-at-1.26.55\u202fAM.png\" alt=\"\" width=\"1356\" height=\"1468\" srcset=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-07-07-at-1.26.55\u202fAM.png 1356w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-07-07-at-1.26.55\u202fAM-277x300.png 277w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-07-07-at-1.26.55\u202fAM-946x1024.png 946w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2026\/07\/Screenshot-2026-07-07-at-1.26.55\u202fAM-768x831.png 768w\" sizes=\"auto, (max-width: 1356px) 100vw, 1356px\" \/><\/h3>\n<ol>\n<li>Click Back to app to leave the Settings screen.<\/li>\n<li>Create a New Chat.<\/li>\n<li>Enter the following prompt:<br \/>\n<code style=\"background-color: #f5f5f5;border-left: 4px solid #ccc;padding: 4px 8px;font-family: monospace;font-size: 13px;border-radius: 4px;color: #333\">What Imagify abilties are available for my WordPress site?<\/code><\/li>\n<li>Submit the prompt.<\/li>\n<\/ol>\n<p>Codex should display the MCP tools exposed by your WordPress plugin.<\/p>\n<p>If the connection is successful, Codex is ready to interact with your WordPress site using natural language.<\/p>\n<h3>Next Step<\/h3>\n<p>Return to the main guide and continue with <a href=\"https:\/\/imagify.io\/documentation\/imagify-mcp\/#toc9\" target=\"_blank\" rel=\"noopener\">Step 3: Get Started to explore example prompts and MCP abilities<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39],"tags":[],"class_list":["post-1256","post","type-post","status-publish","format-standard","hentry","category-ai-assistants"],"_links":{"self":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts\/1256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/comments?post=1256"}],"version-history":[{"count":4,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts\/1256\/revisions"}],"predecessor-version":[{"id":1265,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts\/1256\/revisions\/1265"}],"wp:attachment":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/media?parent=1256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/categories?post=1256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/tags?post=1256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}