Google Search Console in Claude Code, without a GCP project
Lodd can now read Google Search Console for your agent: queries, impressions, clicks and positions for your sites, next to the visits Lodd already measures. Setup is one prompt, one link you open yourself, and a Google sign-in. There is no Google Cloud project to create and no OAuth client to configure.
I connected lodd.dev the day this shipped, and the first useful answer was not a search number. It was two numbers side by side for the same page: what Google showed people, and what they did after the click. This guide covers the setup, what the agent can ask afterwards, and the places where the connection stops.
What you need before you start
You need three things: a site in Lodd, a verified Search Console property for the same domain, and an MCP client with the Lodd server. The Google account you sign in with must have verified access to that property.
If you use the hosted server at api.lodd.dev/mcp, the new tools are already there, although some clients cache the tool list until you reconnect. If you run the local server, you need version 0.1.21 or later:
claude mcp add lodd --env LODD_API_KEY=your_api_key -- npx --yes @lodd/mcp-server@latestIf Lodd is not set up at all, tell your coding agent "Add lodd.dev analytics to this project" and it does the rest from lodd.dev/llms.txt. Search Console is included on the free plan.
Ask your agent to connect
The whole setup runs through the agent, apart from one link that you open in a browser. Say something like:
"Connect Google Search Console to Lodd."
The agent calls connect_search_console and gives you a link. It works once and for ten minutes. On that page you do three things:
- Sign in to Lodd with a 6-digit email code, if you are not signed in already.
- Agree to one thing: that the search data you ask for is sent to the AI tool you use, and to its provider. That is the nature of an MCP tool, and we would rather say it plainly than leave it implied.
- Sign in to Google and give read-only access to Search Console. Lodd asks for nothing else, and cannot change anything in your property.
Then tell the agent you are done. It was never shown your Google password or the access itself. Lodd keeps that encrypted on the server.
Which sites get search data?
None, until you say so. After you connect, the agent calls get_search_console_status, which lists your Lodd sites next to the Search Console properties that match each one, and asks which to turn on. Your answer goes into one call:
set_search_console_sites
{ "sites": [
{ "site": "example.com", "property": "sc-domain:example.com" },
{ "site": "old-site.com", "property": null }
] }A site can use a domain property for its own domain, a domain property for a parent domain, or a URL-prefix property for the root of the domain or its www version. A prefix that only covers a folder, such as example.com/blog/, is not offered.
Setting a property to null turns search data off for that site and leaves the connection alone.
Two tools read the data
Once a site is on, the agent has two read tools, and they answer different questions.
| Tool | Returns | A question it answers |
|---|---|---|
get_search_performance | Clicks, impressions, CTR and position, grouped by query, page, date, country or device | "Which queries gained impressions this month?" |
get_search_pages | The same numbers per page, with each page's top queries and Lodd's visits and bounce rate | "Which pages rank but lose people after the click?" |
Both take a site and a period, which defaults to the last 28 days. get_search_performance can also filter:
{ "site": "example.com", "period": "28d", "group_by": "page", "query_contains": "analytics" }You will rarely write these calls yourself. The point is that the agent can, in the middle of other work: before it rewrites a page it can check which queries that page already ranks for, which is a different thing from you asking it a question.
Searches and visits in one answer
get_search_pages is the reason to connect Search Console through Lodd and not through a separate server: each row holds Google's numbers and Lodd's numbers for the same page. Two rows in the shape the tool returns, shortened and with made-up numbers:
{ "path": "/compare/acme-alternative",
"impressions": 940, "clicks": 4, "position": 24.6,
"google_visits": 4, "bounce_rate": 25,
"top_queries": [
{ "query": "acme alternative", "impressions": 610, "position": 31.2 } ] }
{ "path": "/blog/setup-guide",
"impressions": 820, "clicks": 38, "position": 6.8,
"google_visits": 35, "bounce_rate": 91,
"top_queries": [
{ "query": "acme setup", "impressions": 270, "position": 5.9 } ] }The two rows have similar impressions and say different things. The first page is shown often and sits on page three, so the work is ranking. The second ranks on page one and gets its clicks, and nine in ten of those visitors leave straight away, so the work is on the page. An agent with only Search Console sees the first problem, and one with only analytics sees neither clearly.
Where the numbers will not match Search Console
The figures come from Google's own API, and they still differ from what you see in the Search Console interface in four known ways.
- The last few days are missing. Google finishes a day two to three days late, and counts days in Pacific time. A period like
28dends on the last complete day, andwindowin the answer shows the dates that were used. Asking for today is refused. - Totals are counted by page. They cover your site's domain and its
wwwversion, so they can differ from the property total. - Rare queries are hidden. Google leaves them out for privacy, so query rows add up to less than the totals.
- Clicks are not visits. Google counts clicks, and Lodd counts visits that arrived with a Google search referrer. Blockers and missing referrers make the two differ.
What the connection does not do
It reads the Performance report and nothing else. There are no tools for URL inspection, indexing status or sitemaps, so if your agent needs those, a dedicated server such as mcp-gsc is still the right tool, and our guide to Search Console MCP servers covers setting it up. The two can run side by side.
Three more limits are deliberate:
- Only you see your search data. Sharing a site in Lodd does not share its search data. A member has to connect their own Google account, and needs their own access to the property.
- Lodd stores no search data. Each answer is fetched from Google when the agent asks. We keep the encrypted access, your Google email address and your site choices. The privacy page has the full list.
- It is MCP only. The REST API has no Search Console endpoints.
One caution for agent builders: queries are text written by strangers. Some of them are whole prompts pasted into Google. The tool descriptions tell the agent to treat queries as data and never as instructions.
How do you disconnect?
Ask the agent to disconnect Search Console, or use the button on your account page. Either way Lodd deletes the connection and your site choices, and cancels its access at Google. If a second Lodd account is connected to the same Google account, access at Google stays until that one disconnects too, because Google cancels per Google account and not per connection.
You can also remove Lodd from the Google side, under third-party access in your Google account. Reports then stop with a search_console_reconnect error, and connecting again restores them with your site choices intact. The full parameter and error reference is in the documentation.