On gemini.google.com, go to Settings, then Connected Apps (if you don't see this option, go to Personal Intelligence first). Add a custom app with the address https://mcp.wp2ai.io/mcp.
Important: this feature is currently limited to personal Google accounts (work or school accounts aren't supported), to users 18 or over located in the US, with "Keep Activity" turned on, and is only available in English.
If you don't meet these conditions, you can connect wp2ai through Gemini CLI instead, with none of these restrictions, by running in a terminal: gemini mcp add --transport http wp2ai https://mcp.wp2ai.io/mcp