searchconsole-mcp
Enables automation of Google Search Console tasks, including retrieving search analytics, managing sitemaps and site properties, and inspecting URLs for index status and crawl information.
README
searchconsole-mcp
MCP server that automates Google Search Console for your projects: search analytics, sitemap management, site properties and URL inspection.
Tools
| Tool | Description |
|---|---|
gsc_list_sites |
List all properties the service account can access |
gsc_add_site / gsc_remove_site |
Add/remove a property (sc-domain:example.com or https://www.example.com/) |
gsc_search_analytics |
Clicks, impressions, CTR, position grouped by query/page/country/device/date, with filters. Defaults to last 28 days |
gsc_list_sitemaps / gsc_get_sitemap |
Inspect submitted sitemaps and indexed counts |
gsc_submit_sitemap / gsc_delete_sitemap |
Submit or remove sitemaps |
gsc_inspect_url |
URL Inspection API: index status, canonical, crawl info, mobile usability |
One-time Google setup
- In Google Cloud Console create a project.
- Enable the Google Search Console API (APIs & Services > Library).
- Create a Service account (IAM & Admin > Service Accounts) and download a JSON key.
- For each Search Console property: Settings > Users and permissions > Add user, paste the service account email (
...@...iam.gserviceaccount.com) and grant Owner (Owner is required for the URL Inspection API).
Configuration
Environment variables:
| Var | Required | Description |
|---|---|---|
GSC_SERVICE_ACCOUNT_JSON |
one of | Full service-account JSON key inline |
GSC_SERVICE_ACCOUNT_FILE |
one of | Path to the key file. Defaults to ./service-account.json |
GSC_DEFAULT_SITE |
optional | Default property so you can omit siteUrl per call |
The server also loads .env from its working directory at startup.
Register in an MCP client
opencode (~/.config/opencode/opencode.json or project .opencode/opencode.json):
{
"mcp": {
"searchconsole": {
"type": "local",
"command": ["node", "/absolute/path/to/searchconsole-mcp/dist/index.js"],
"environment": {
"GSC_SERVICE_ACCOUNT_FILE": "/absolute/path/to/service-account.json",
"GSC_DEFAULT_SITE": "sc-domain:example.com"
}
}
}
}
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"searchconsole": {
"command": "node",
"args": ["/absolute/path/to/searchconsole-mcp/dist/index.js"],
"env": {
"GSC_SERVICE_ACCOUNT_FILE": "/absolute/path/to/service-account.json",
"GSC_DEFAULT_SITE": "sc-domain:example.com"
}
}
}
}
Development
npm install
npm run build # tsc -> dist/
npm start # run the server on stdio
npm run smoke # boots the server and lists tools
Notes
- Analytics data lags ~2 days; pass
dataState: "all"to include fresh partial data. - The API caps analytics rows at 25,000 per request; use
startRowto page. - Adding a site via API leaves it unverified until ownership is confirmed; easiest path is adding the service account email as an Owner in the UI first.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.