Connect Gemini CLI
Gemini CLI reads MCP servers from its settings file. Point it at your server URL and give it an access token.
A token can read your SEO data and change it — edit meta tags, create redirects, start optimization runs. Treat it like a password: anyone holding it can do the same.
Set it up
Create an access token
On the MCP page, in the Access tokens card, click Create token, name it something like Gemini CLI on my laptop, and copy the token. It is shown only once — see Access tokens for the full walkthrough.
Copy the config
Scroll to Setup guide, select the Gemini CLI tab and copy the block under Add to ~/.gemini/settings.json. It already has your server URL filled in:
{
"mcpServers": {
"avada-seo": {
"type": "http",
"url": "https://…/mcp/s/your-store.myshopify.com",
"headers": {
"Authorization": "Bearer YOUR_TOKEN"
}
}
},
"mcp": {
"allowed": ["avada-seo"]
}
}Add it to your settings file
Open ~/.gemini/settings.json — create the file if it isn't there — and paste the block in. Replace YOUR_TOKEN with the token you created.
Keep the mcp.allowed list. Without it Gemini CLI reports the server as connected but registers none of its tools, so the assistant answers from guesswork instead of your store's data.
Check it worked
Restart Gemini CLI and run /mcp. avada-seo should be listed with its tools. Ask "what's my store's speed score?" to confirm.
Replace the token
Edit the Authorization line in ~/.gemini/settings.json with the new token and restart Gemini CLI.
Disconnect
Remove the avada-seo entry from ~/.gemini/settings.json and restart Gemini CLI. Also revoke the token on the MCP page, otherwise it stays usable anywhere else you pasted it.
Trouble connecting? See Troubleshooting.