Connecting Codex CLI to Google Search MCP
📘 Complete Guide: Use Ace Data Cloud MCP in Codex CLI →
Connect Google search capabilities (web / images / news / maps / local businesses / videos) all at once. After connecting to Codex CLI via MCP, you can invoke them directly in the conversation, without switching windows or copying and pasting.
¶ Get an API Token
Log in to the application list, open General Application, and click the copy button to the right of API KEY. For detailed steps, see the complete guide.

¶ Configuration
Edit the configuration: ~/.codex/config.toml
[mcp_servers.serp]
url = "https://serp.mcp.acedata.cloud/mcp"
type = "http"
http_headers = { "Authorization" = "Bearer 你的Token" }
After saving, the tools will load automatically when the next codex session starts.
¶ Usage Examples
Search for the latest AI video generation technology trends in May 2026 and list 5 key points
Use Google to search for English-language results for "capacitor 8 ios build error", sorted by time
Find a set of image references for "Eastern ink wash style LOGO design" and give me 8 images
¶ Tools
| Tool | Description |
|---|---|
| google_search | Google web / image / news / maps / local business / video search |
