---
title: "Serql MCP server"
description: "Connect Claude, ChatGPT, Cursor, or any Model Context Protocol client to Serql: server URLs, OAuth, tools, resources, and a public documentation server."
canonical: https://www.serql.io/docs/mcp
markdown: https://www.serql.io/docs/mcp.md
last-updated: 2026-09-14
section: docs
site: "Serql"
llms: https://www.serql.io/llms.txt
---

# Serql MCP server

Serql exposes its Search Console analytics to AI assistants through the [Model Context Protocol](https://modelcontextprotocol.io) using the **Streamable HTTP** transport.

| Server | URL | Authentication | Purpose |
| --- | --- | --- | --- |
| Product | `https://www.serql.io/mcp` (alias: `https://app.serql.io/api/mcp`) | OAuth 2.0 bearer token (see https://www.serql.io/auth.md) | Act on the authorizing user's Search Console properties |
| Documentation | `https://www.serql.io/api/mcp/docs` | none | Search and read the public documentation |

Server card (name, icon, description, tools): https://www.serql.io/.well-known/mcp/server-card.json.

## Connecting

- **Claude (web/desktop):** Settings → Connectors → Add custom connector → URL `https://www.serql.io/mcp`. Claude discovers the OAuth server from the `401` challenge and opens the consent screen.
- **ChatGPT:** Settings → Connectors → Create → MCP server URL `https://www.serql.io/mcp`, authentication OAuth.
- **Cursor / VS Code / Claude Code:** add an HTTP server entry:

  ```json
  { "mcpServers": { "serql": { "url": "https://www.serql.io/mcp" } } }
  ```

  `claude mcp add --transport http serql https://www.serql.io/mcp`

- **Custom agents:** use any MCP SDK with Streamable HTTP and an OAuth 2.0 authorization-code client. The protected-resource metadata is at `https://www.serql.io/.well-known/oauth-protected-resource/mcp` (and `https://app.serql.io/.well-known/oauth-protected-resource/api/mcp` for the app-origin alias). The server card is also served at `/.well-known/mcp.json`.

Public clients register automatically when the deployment enables Client ID Metadata Documents or Dynamic Client Registration in Clerk; otherwise the operator issues a `client_id`.

## Tools (product server)

The product server registers every tool below; the documentation server registers only the `search_docs`, `get_doc`, and `list_docs` tools.

| Tool | Mode | Parameters | Description |
| --- | --- | --- | --- |
| `list_properties` | read-only | `days`?, `classification`?, `searchType`? | List every Google Search Console property the authorized user can access (owned and shared via team grants), with clicks, impressions, CTR, position, and period-over-period deltas for the requested window, a per-property KPI `status` (ok, error, needs_reconnect), plus tags, favorites, and hidden status. `periodLabel` names the window the totals cover. Call this first to obtain propertyId values for the other tools. |
| `get_performance` | read-only | `propertyId`, `startDate`, `endDate`, `compareStart`?, `compareEnd`?, `aggregation`?, `scope`?, `classification`?, `searchType`?, `filters`?, `queryLimit`?, `pageLimit`?, `diff`?, `focusStart`?, `focusEnd`? | Fetch Search Console performance for one property over a date range: a clicks/impressions/CTR/position time series (daily, weekly, or monthly), optional comparison range, Google core-update and custom annotations, and top queries, pages, countries, devices, topic clusters, and segments, plus CTR by position band (also without branded queries when brand terms are configured). Each breakdown row carries percentage and absolute deltas when compareStart/compareEnd are set, so rising, falling and new rows can be read from one call. `devices` is left out when including it would cut rows from the other tables in a large result. With `diff: true` and a comparison window, each breakdown row also carries its previous-period values (`clicksPrev`, `impressionsPrev`, `ctrPrev`, `positionPrev`; compare CTR in percentage points and position in places), and `lost` lists the rows that had traffic only in the comparison window (up to 100 per table, largest first; `meta.lostTotals` counts them before that cap, null when unknown, and `meta.lostTotalsCapped` marks counts that are lower bounds). Diff mode adds no Search Console request; in a large result its fields are left out rather than cut table rows, and `meta.diffOmitted` is then true (with the lost-row counts when they fit). With `scope=tables` and `focusStart`/`focusEnd` (a window inside the date range, shorter than it), a separate `focus` object adds that window's queries, pages and countries, each with its rest-of-period values (`restClicks`, `restImpressions`, `restCtr`, `restPosition`) and deltas that compare the row's daily average in the window with its daily average over the rest of the period, plus window and rest totals; the other tables keep their full-period values. Focus costs up to three cached Search Console requests; in a large result its rows are trimmed to what fits (`focus.rowsShown`) or left out (`meta.focusOmitted`), never at the cost of table rows. Supports branded/non-branded and segment classifications and JSON dimension filters. |
| `get_cannibalization` | read-only | `propertyId`, `startDate`, `endDate` | Find keyword cannibalization on a property: queries where two or more pages compete for the same search term over the date range, with each page's clicks, impressions, and position, plus a `verdict` (consolidate, strengthen_leader, locale_twins, low_impact), an estimate of `recoverableClicks` to sort by, `leaderShare`, `isBranded`, and the property's stored `decision`. Recoverable clicks are an estimate: 0.4 × each competing page's impressions × its CTR gap to the leading page in its locale group; pages in different locale groups never compete. The verdict and `leaderShare` describe the locale group with the most recoverable clicks (else the one with the most clicks), so `leaderShare` is that group's leading page's share, not the whole query's. Locales are read from the first path segment (optionally after `intl/`) or a locale subdomain: ISO 639-1 languages with an optional script or region, plus a few country-only prefixes such as `/us/`; codes that double as path words (`/hr/`, `/it/`, `/my/`, `/id/` …) need a region. A page without a locale joins the group of a localised page with the same path (`/pricing` with `/en/pricing`). `locale_twins` needs two or more locales with one page each. Every conflict is returned whatever its decision. MCP returns the original fields plus only those five compact fields (the REST endpoint also returns `locales`); if adding them would make the result hold fewer conflicts than this tool returned before they existed, they are left out (rows then have no `verdict`), so the conflict count never drops. |
| `get_growth_opportunities` | read-only | `propertyId`, `startDate`, `endDate` | Surface striking-distance growth opportunities for a property (queries whose best-ranking page sits at positions 4-20), ordered by impressions, each with its own `estGain`, `lowEvidence` and `decision`, dismissed queries included and flagged. `estGain` is that row's estimated extra clicks if its CTR matched the typical CTR at position 3 (an industry benchmark, 11%, not this site's data): an estimate, not a forecast. Long lists are truncated to the highest-impression rows, so compare `estGain` within what was returned rather than treating it as a complete ranking. `lowEvidence` is true when the best position rests on under 20 impressions; `decision` is `fixing`, `dismissed` or null. The page to fix is the entry in `pages` with the most impressions. |
| `get_optimization_summary` | read-only | `propertyId`, `startDate`, `endDate` | Count a property's cannibalization conflicts and growth opportunities (with their total clicks and impressions) for the date range, computed exactly like get_cannibalization and get_growth_opportunities in their default view, so dismissed growth queries are counted just as get_growth_opportunities lists them. Cheap: at most one cached Search Console request. Call it first to decide which of those two reports is worth fetching. |
| `get_query_insights` | read-only | `propertyId`, `startDate`, `endDate` | Return query visibility and the branded split for a property over a date range, in two daily series: `queryCount` (unique queries that earned impressions each day, bucketed by average position: top 3, 4-10, 11-20, beyond 20) and `brandedTraffic` (branded versus non-branded clicks and impressions; `isConfigured` is false when no brand terms are set). Days in a truncated fetch window are listed in `queryCount.truncatedDays`; counts and branded figures on those days are lower bounds (`brandedTraffic.isTruncated` flags it), and `queryCount.meta.capPerDay` is the per-day row cap (null when no window was truncated). It does not list individual queries or pages; for rising and decaying queries or pages, call get_performance with compareStart/compareEnd and read each row's delta. |
| `explain_performance_window` | read-only | `propertyId`, `startDate`, `endDate`, `metric`?, `classification`?, `searchType`?, `filters`? | Show where a metric changed in a date window. Compares the window (1-90 days) with the equal preceding period and returns, for queries, pages, countries and devices, the 10 keys with the largest absolute change (each with `current`, `baseline`, `delta`, a signed `share` of that dimension's gross change, and a `status`: up, down, new or lost), every other key summed as `other` (the top deltas plus `other.delta` equal the dimension's total change), and `newKeys`/`lostKeys` counts (null when a fetch hit its row cap, which `truncated` reports). `possibleCauses` comes first: the custom annotations (with category) and Google core updates that fall inside the window. They coincide with the change in time; that alone does not show they produced it, so say "in the same window", not "caused". `sentence` is a plain one-line summary that makes no causal claim; `summary` is the headline change (from device totals, or from page or query totals under a segment or topic-cluster classification, see `meta.headlineDimension`); `baselineNote` flags a different weekend-day mix between the two periods. Limited to 6 calls per minute per user, shared with the web app, and at most 8 cached Search Console requests per call with no cache bypass: choose the window first (for example from a get_performance time series) rather than scanning windows in a loop. |
| `list_annotations` | read-only | `propertyId` | List the custom annotations (site changes, campaigns, migrations) recorded on a property, each with a date, title, optional description, and a category (content, technical, campaign, algorithm, or other), plus a `viewer` object saying whether the caller may create, edit or delete them. |
| `create_annotation` | writes | `propertyId`, `date`, `title`, `description`?, `category`? | Create a custom annotation on a property so a site change or campaign is overlaid on every performance chart. Writes data; requires member access or higher on the property. |
| `list_segments` | read-only | `propertyId` | List the saved classifications (segments) defined for a property, with their rules, so the agent can pass a segment id to get_performance as a classification. |
| `list_tags` | read-only | — | List the portfolio tags the authorized user has created for grouping properties (for example by client or business unit). |

| Tool | Mode | Parameters | Description |
| --- | --- | --- | --- |
| `search_docs` | read-only | `query`, `limit`? | Search the public product and developer documentation (REST API, MCP, authentication, self-hosting, pricing, concepts) and return the best-matching sections with links. Use it to answer 'how do I' questions about the product without guessing. |
| `get_doc` | read-only | `slug` | Fetch one documentation page as markdown by its slug (for example 'docs/api', 'docs/mcp', 'auth', 'pricing'). Use list_docs or search_docs to discover slugs. |
| `list_docs` | read-only | `section`? | List every public documentation page with its slug, title, description, and URL. |

Every tool declares a typed `inputSchema` with `required` fields and behavioural annotations (`readOnlyHint`, `destructiveHint`, `idempotentHint`, `openWorldHint`). Only `create_annotation` writes data, and it only creates a note inside Serql; nothing ever modifies Google Search Console.

## Resources

Both servers expose the documentation as resources with the URI template `serql://docs/{+slug}` (`text/markdown`), for example `serql://docs/docs/api` or `serql://docs/auth`. `resources/list` enumerates every page.

## Behaviour notes for agents

- Call `list_properties` first; every other product tool needs a `propertyId`.
- Search Console data lags two to three days. End ranges at "today minus 3 days" unless the user asks otherwise.
- Large tables are capped in tool responses; ask for a narrower date range or a `classification` to drill down.
- Errors come back as structured JSON with `isError: true`, a `status`, and a `hint`. `402` means the user needs a subscription; `404` means the property is not tracked or not visible.
- The server's `initialize` response includes `instructions` summarizing the above.

## Related

- REST API: https://www.serql.io/docs/api
- Authentication: https://www.serql.io/auth.md
- Agent guide: https://www.serql.io/docs/agents
