How to integrate Google search console MCP with Codex

Connect Codex to Google search console MCP. Fetch last week's top search queries, inspect indexing status for this url, and more using natural language, with authentication handled for you.

Google search console logoGoogle search console
Oauth2

Google Search Console is Google's tool for monitoring, maintaining, and troubleshooting your website's performance in Google Search results. It helps you track search traffic, optimize visibility, and resolve site issues quickly.

14 Tools

Introduction

Codex is one of the most popular coding harnesses out there. And MCP makes the experience even better. With the Google search console MCP integration, Codex can query search analytics, inspect URLs, submit and list sitemaps, and manage your sites, all without leaving the terminal or the app, whichever you prefer.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate Google search console with

Why use Composio?

Apart from a managed and hosted MCP server, you will get:

  • CodeAct: A dedicated workbench that allows GPT to write its code to handle complex tool chaining. Reduces to-and-fro with LLMs for frequent tool calling.
  • Large tool responses: Handle them to minimise context rot.
  • Dynamic just-in-time access to 20,000 tools across 2000+ other Apps for cross-app workflows. It loads the tools you need, so GPTs aren't overwhelmed by tools you don't need.

How to install Google search console MCP in Codex

Run the setup command

Run this command in your terminal to add the Composio MCP server to Codex.

Terminal

It will initiate the authentication in a browser window, authorize Codex to access your Composio account.

Composio authentication page

(Optional) Authenticate with OAuth

To authenticate manually, run the login command to open a browser window and authorize Codex to access your Composio account.

bash
codex mcp login composio

Verify the connection

Run codex mcp list to confirm Composio appears as a registered MCP server.

bash
codex mcp list

Codex App

Codex App follows the same approach as VS Code.

  1. Click ⚙️ on the bottom left → MCP Servers → + Add servers → Streamable HTTP:
  2. Fill the header and Key fields with { "x-consumer-api-key" = "ck_*******" }.
  3. The Key is the Composio API key, that you can find on dashboard.composio.dev
  4. Click on Authenticate and authorize Codex to your Composio account and you're all set.
Codex App MCP setup
  1. Restart and verify if it's there in .codex/config.toml
bash
[mcp_servers.composio]
url = "https://connect.composio.dev/mcp"
http_headers = { "x-consumer-api-key" = "ck_*******" }

Try it

Ask Codex for a Google search console task. The first time, Composio asks you to connect your Google search console account.

For example, ask it to:

  • "Fetch last week's top search queries"
  • "Inspect indexing status for this URL"
  • "List all sitemaps for your site"

What is the Google search console MCP server, and what's possible with it?

The Google search console MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Google Search Console account. It provides structured and secure access to your website’s search analytics and indexing data, so your agent can retrieve site lists, inspect URLs, manage sitemaps, and run detailed search performance queries on your behalf.

  • Comprehensive site and sitemap management: Have your agent list all properties you own, fetch details about specific sitemaps, or submit new sitemaps for indexing to keep Google up to date.
  • Automated URL inspection: Let your agent check the indexing status and uncover crawl or indexing issues for any URL in your properties, so you can spot and resolve problems quickly.
  • Instant search analytics reporting: Ask your agent to pull granular performance metrics such as clicks, impressions, CTR, and average position for any site, page, or query segment.
  • Bulk site and sitemap overview: Effortlessly retrieve a list of all sites and their associated sitemaps, making it easy to monitor your web presence at scale.
  • Proactive index issue detection: Enable your agent to routinely review URLs and sitemaps for errors or warnings, helping you stay ahead of SEO issues without manual digging.

Conclusion

You've successfully integrated Google search console with Codex using Composio's MCP server. Now you can interact with Google search console directly from your terminal, VS Code, or the Codex App using natural language commands.

Key benefits of this setup:

  • Seamless integration across CLI, VS Code, and standalone app
  • Natural language commands for Google search console operations
  • Managed authentication through Composio
  • Access to 20,000+ tools across 2000+ apps for cross-app workflows
  • CodeAct workbench for complex tool chaining

Next steps:

  • Try asking Codex to perform various Google search console operations
  • Explore cross-app workflows by connecting more toolkits
  • Build automation scripts that leverage Codex's AI capabilities
TOOLS

Supported Tools

Every Google search console action and event your agent gets out of the box.

Add Site

Adds a site to the set of the user's sites in Google Search Console.

Delete Site

Removes a site property from the authenticated user's Google Search Console account.

Delete Sitemap

Removes a sitemap entry from a Search Console property's Sitemaps report.

Get Site

Retrieves information about a specific Search Console site.

Get Sitemap

Retrieves metadata for a specific sitemap in Search Console, including submitted counts, errors, warnings, and submission timestamps.

Get Site Verification Resource

Retrieves one Google site verification web resource by its opaque ID.

Get Site Verification Token

Returns the token needed to prove ownership of a site to Google.

Inspect URL

Inspects a URL for indexing issues and status in Google Search Console.

List Sitemaps

Lists sitemap entries submitted for a site in Google Search Console, or those contained in a specified sitemap index.

List Sites

Lists Google Search Console sites associated with the authenticated user, with permission levels when provided.

List Site Verification Resources

Lists site verification resources owned by the authenticated user.

Search Analytics Query

Queries Google Search Console for search analytics data including clicks, impressions, CTR, and average position, grouped and filtered by requested dimensions.

Submit Sitemap

Submits a sitemap to Google Search Console for indexing.

Verify Site Ownership

Verifies site ownership and optionally records delegated verified owners.

FAQ

Frequently asked questions

Start with Google search console.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Google search console tool your agent needs.Free to start.

Start building