Connect Gemini CLI to WordPress
Gemini CLI is Google’s AI agent for the terminal — and with the Saddle plugin it can manage your WordPress content: reading, writing, and organizing posts, pages, and media. The setup is one terminal command that Saddle generates for you.
What do I need before connecting?
- A WordPress site with the Saddle plugin installed and activated.
- Gemini CLI installed on your computer.
How do I connect Gemini CLI to my WordPress site?
Step 1: Open the connect wizard in Saddle
In your WordPress dashboard, go to Saddle → Connections, click Connect an app, and choose Gemini CLI.

Step 2: Copy the setup command

The command looks like this (yours contains your real site address and key):
gemini mcp add --scope user --transport http saddle-your-site https://your-site.com/wp-json/saddle/v1/mcp
--header "Authorization: Basic PASTE-YOUR-KEY-HERE"
Step 3: Paste it into your terminal
Open a terminal, paste the command, and press Enter. The connection is saved to your user profile, so it works from any folder.
How do I know the connection works?
Run gemini in any folder and ask:
What can you see on my WordPress site?
Gemini should report your site name, WordPress version, and content counts, and the app shows as connected in Saddle → Connections.
What can Gemini do on my WordPress site?
Only what you allow on the Permissions screen — sites start read-only, and deletions always require a preview-and-confirm approval.
Something not working?
See Troubleshooting and FAQ — a stripped Authorization header or a mistyped key covers most failed connections.