Repository avatar
Search & Data Extraction
v1.1.1
active

seo-webmaster

io.github.itsaakashpatel/seo-webmaster

SEO MCP server for Google Search Console, Google Indexing API, Bing Webmaster Tools and IndexNow

Documentation

SEO Webmaster MCP: Google Search Console, Bing Webmaster Tools and IndexNow MCP Server

npm MCP TypeScript License: MIT

seo-webmaster-mcp is an open-source SEO MCP server. It connects Claude Desktop, Claude Code, Cursor, Windsurf, Cline, Zed and other AI agents to your search data. One server covers Google Search Console (GSC), the Google Indexing API, the Bing Webmaster Tools API and IndexNow.

Ask your AI assistant about clicks, queries and rankings, inspect URLs, check sitemaps, find declining pages, and submit URLs for indexing. You do not need to open a dashboard.

What you can do with this MCP server

  • Google Search Console MCP: search analytics by query, page, country and device, URL inspection and sitemaps.
  • Bing Webmaster Tools MCP: 61 tools for the Bing Webmaster API: traffic, crawl stats, crawl issues, backlinks, URL submission, sitemaps and site settings.
  • SEO insights for both engines: performance overview, search opportunities (low CTR and positions 11 to 20) and declining pages.
  • Instant indexing: IndexNow for Bing, Yandex, Seznam and Naver, plus the Google Indexing API.
  • Safe by default: risky changes ask for your approval before they run.
  • Setup in one command: npx -y @itsaakashpatel/seo-webmaster-mcp setup asks for your keys and adds the server to your AI client.

🚀 Quickstart: Install the SEO MCP Server in 2 Minutes

You do not need to configure all engines. All engines are completely optional!

  • If you only have Google Search Console, only configure Google.
  • If you only have Bing Webmaster Tools, only configure Bing.
  • If you want instant indexing without API keys, you can use IndexNow.
  • If you configure nothing, start the server and ask your AI: "Check engine status" to see step-by-step setup guides!

Option A: Run the setup (Recommended)

One command configures Google, Bing and IndexNow. You do not need a .env file.

npx -y @itsaakashpatel/seo-webmaster-mcp setup

The setup asks for each key in a hidden prompt, tests the key with a read call, and shows a summary before it writes anything. Then it offers to add the server to Claude Code, Claude Desktop or Cursor. Restart your client after the setup.

CommandResult
setupSets up the engines and the approval choices. Needs a terminal.
installAdds the server to Claude Code, Claude Desktop or Cursor. It shows the change and waits for y.
statusShows the engines, the approval choices and the path of the configuration file. Never a key.
serveStarts the MCP server. This is the default when a client starts the command.
--help, --versionShow the help text or the version.

The setup saves the keys as plain text in $XDG_CONFIG_HOME/seo-webmaster-mcp/config.json, or in ~/.config/seo-webmaster-mcp/config.json (on Windows: %APPDATA%\seo-webmaster-mcp\config.json). The file has mode 600 and its folder has mode 700. The setup stores the path of your Google key file, not its content. An environment variable that has a value has priority over the file. status shows each value that an environment variable overrides.

Option B: Set environment variables in the client configuration

Use this option if you do not want a configuration file. No cloning is required. Your MCP client downloads and runs the latest version automatically.

1. Claude Desktop

Add to your claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "seo-webmaster": {
      "command": "npx",
      "args": ["-y", "@itsaakashpatel/seo-webmaster-mcp"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/your/gsc-key.json",
        "BING_WEBMASTER_API_KEY": "your_bing_api_key",
        "INDEXNOW_KEY": "your_indexnow_key"
      }
    }
  }
}

2. Cursor

Add to .cursor/mcp.json (project-level) or Cursor Settings → Features → MCP Servers:

{
  "mcpServers": {
    "seo-webmaster": {
      "command": "npx",
      "args": ["-y", "@itsaakashpatel/seo-webmaster-mcp"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/your/gsc-key.json",
        "BING_WEBMASTER_API_KEY": "your_bing_api_key",
        "INDEXNOW_KEY": "your_indexnow_key"
      }
    }
  }
}

3. Claude Code CLI

Run this command. Add one --env flag for each engine that you use.

claude mcp add seo-webmaster \
  --env BING_WEBMASTER_API_KEY=your_bing_api_key \
  -- npx -y @itsaakashpatel/seo-webmaster-mcp

🛠️ Step-by-Step Setup Guide

1. Google Search Console MCP Setup (GSC and Google Indexing API)

[!TIP] Both Search Console and Indexing API use the exact same service account credentials.

  1. Create a Cloud Project: Go to Google Cloud Console and create a project (e.g. my-seo-tools).
  2. Enable APIs:
    • In APIs & Services → Library, search for Google Search Console API and click Enable.
    • (Optional for instant Google push) Search for Indexing API (indexing.googleapis.com) and click Enable.
  3. Create Service Account:
    • Go to APIs & Services → Credentials → Create Credentials → Service Account.
    • Name it (e.g. gsc-reader), click Create and Continue, then Done.
  4. Generate JSON Key File:
    • Click on the created service account email.
    • Go to the Keys tab → Add Key → Create new key → JSON.
    • Save the downloaded file somewhere safe on your computer (e.g., ~/.config/gcloud/gsc-key.json).
  5. Grant Property Access in Search Console:
    • Copy the service account's email address (e.g. gsc-reader@my-seo-tools.iam.gserviceaccount.com).
    • Open Google Search Console.
    • Select your property → Settings (bottom left) → Users and permissions → Add user.
    • Paste the service account email:
      • For read-only search analytics: select Restricted or Full.
      • If using Google Indexing API: select Owner (required by Google to publish indexing requests).
  6. Give the key to the server:
    • Run npx -y @itsaakashpatel/seo-webmaster-mcp setup and give the path of your JSON file. Or set GOOGLE_APPLICATION_CREDENTIALS to the absolute path of your downloaded JSON file.
    • Alternatively, you can paste the raw JSON string or base64 into GOOGLE_SERVICE_ACCOUNT_KEY.

2. Bing Webmaster Tools MCP Setup (Bing Webmaster API Key)

  1. Sign in to Bing Webmaster Tools and ensure your site is verified.
  2. Click the Settings gear icon (top right) → API Access → API Key.
  3. Generate an API Key and copy it.
  4. Run npx -y @itsaakashpatel/seo-webmaster-mcp setup and paste the key. Or set the BING_WEBMASTER_API_KEY environment variable in your MCP configuration.

3. IndexNow MCP Setup (Instant Indexing for Bing, Yandex, Seznam and Naver)

IndexNow allows search engines to instantly discover updated, new, or deleted URLs without waiting for crawlers.

  1. Generate a Key: Create a random 32-character hexadecimal key (or use Bing's Key Generator).
  2. Host the Verification File:
    • Place a text file named <your-key>.txt containing only the key at your website root: https://example.com/<your-key>.txt
    • Confirm it opens in your browser and displays only the key string.
  3. Give the key to the server:
    • Run the setup and choose IndexNow. It can create a key and write the key file for you. Or set INDEXNOW_KEY to your key string.
    • (Optional) If your key file is hosted in a subfolder or custom URL, set INDEXNOW_KEY_LOCATION to the full URL (e.g. https://example.com/assets/my-key.txt).

🧰 Available SEO MCP Tools

ToolEngineDescription
engine_statusAllCheck connection and configuration health across all 4 search engine providers with setup tips.
list_sitesGoogle & BingList all verified website properties with user permissions/roles.
search_analyticsGoogle & BingQuery clicks, impressions, CTR, and average position grouped by query, page, country, device, and date.
inspect_urlGoogle & BingInspect live URL index status, crawl dates, canonical tags, mobile usability, and rich results schema.
list_sitemapsGoogle & BingList submitted sitemaps, error/warning counts, crawl timestamps, and indexed URL breakdown.
get_sitemapGoogle & BingRetrieve deep indexing statistics for a specific sitemap feed.
submit_urls_indexnowIndexNowInstantly notify Bing, Yandex, and partner engines about up to 10,000 published/updated/deleted URLs.
submit_urls_googleGoogle IndexingPush up to 200 URLs/day to Google via the Indexing API (URL_UPDATED or URL_DELETED).
Detailed Parameter Reference

1. engine_status

No parameters required.

2. list_sites

ParameterTypeRequiredDescription
enginestringNoFilter by engine: all, google, or bing (default: all)

3. search_analytics

ParameterTypeRequiredDescription
siteUrlstringYesSite URL as verified in Search Console (e.g. https://example.com/ or sc-domain:example.com)
startDatestringYesStart date in YYYY-MM-DD format
endDatestringYesEnd date in YYYY-MM-DD format
enginestringNoProvider: google or bing (default: google)
dimensionsstringNoComma-separated: query, page, country, device, searchAppearance, date (default: query)
rowLimitnumberNoMax rows to return (default: 100, max: 25000)
searchTypestringNoVertical: web, image, video, news, discover, googleNews (default: web)
dataStatestringNoall (includes fresh data) or final (default: all)
queryFilterstringNoFilter queries: text (contains), !text, exact:keyword, !exact:keyword, regex:pattern, or !regex:pattern (RE2 syntax)
pageFilterstringNoFilter page URLs: same syntax as queryFilter
countryFilterstringNoISO 3166-1 alpha-3 code (e.g. USA, GBR, DEU, IND)
deviceFilterstringNoDESKTOP, MOBILE, or TABLET
startRownumberNoPagination row offset (default: 0)

4. inspect_url

ParameterTypeRequiredDescription
siteUrlstringYesSite URL as verified in Search Console
inspectionUrlstringYesFully qualified URL to inspect
enginestringNogoogle or bing (default: google)
languageCodestringNoLanguage code for localized messages (default: en-US)

5. list_sitemaps

ParameterTypeRequiredDescription
siteUrlstringYesSite URL as verified in Search Console
enginestringNogoogle or bing (default: google)

6. get_sitemap

ParameterTypeRequiredDescription
siteUrlstringYesSite URL as verified in Search Console
feedpathstringYesFull URL or path to the sitemap feed
enginestringNogoogle or bing (default: google)

7. submit_urls_indexnow

ParameterTypeRequiredDescription
hoststringYesDomain name without protocol (e.g. example.com)
urlsstringYesComma/newline-separated list of full URLs (or JSON array)
keystringNoIndexNow key (optional if INDEXNOW_KEY env var is set)
keyLocationstringNoFull URL to key file if hosted in custom location

8. submit_urls_google

ParameterTypeRequiredDescription
urlsstringYesComma/newline-separated full https URLs (or JSON array). Max 200 per call
typestringNoURL_UPDATED (new/changed) or URL_DELETED (removed). Default: URL_UPDATED

Google Indexing API note: Only pages containing JobPosting or BroadcastEvent (in VideoObject) structured data are supported by Google. Default daily quota is 200 requests.

SEO Insight Tools for Google Search Console and Bing

ToolEngineDescription
get_performance_overviewGoogle & BingCompare two periods: totals, and the queries and pages that changed, disappeared or appeared.
find_search_opportunitiesGoogle & BingFind page-one results with a low CTR, and results at positions 11 to 20.
find_declining_pagesGoogle & BingFind pages that lost clicks, with the queries behind the loss.
bing_get_crawl_overviewBingCompare crawl results between two periods and group the crawl issues.
bing_get_link_evidenceBingGroup inbound links by domain and anchor text.

Bing Webmaster Tools API Tools

The 61 bing_ operation tools cover the operations of the Bing Webmaster API. They need only BING_WEBMASTER_API_KEY. The full contract is in specs/bing-tools.md.

Read tools (35)

ToolWhat it does
bing_get_sitesList Bing sites with verification state and the codes that verify a site. Use list_sites for Google and Bing together.
bing_get_site_rolesList the users who have access to a site.
bing_get_site_movesList site move requests. Bing returned HTTP 404 for this method in December 2026.
bing_get_feed_detailsGet the entries of one sitemap or feed. Use get_sitemap for a short summary.
bing_get_url_submission_quotaGet the daily and monthly URL submission quota.
bing_get_content_submission_quotaGet the daily and monthly content submission quota.
bing_get_fetched_urlsList the URLs that you asked Bing to fetch.
bing_get_fetched_url_detailsGet the headers and document that Bing fetched. The content is untrusted and long documents are cut.
bing_get_query_statsWeekly clicks, impressions and position for each query. Use search_analytics for totals over a date range.
bing_get_query_traffic_statsDaily clicks and impressions for one query.
bing_get_query_page_statsWeekly statistics of the pages that rank for one query.
bing_get_query_page_detail_statsDetailed statistics for one query on one page.
bing_get_page_statsWeekly clicks, impressions and position for each page. The query field holds the page URL.
bing_get_page_query_statsWeekly statistics of the queries for one page.
bing_get_rank_and_traffic_statsDaily clicks and impressions for the site.
bing_get_keywordImpressions of one keyword in a market and date range.
bing_get_keyword_statsWeekly impressions of one keyword in a market.
bing_get_related_keywordsKeywords related to one keyword, with impressions.
bing_get_crawl_statsDaily crawl counts, pages in the index and inbound links.
bing_get_crawl_issuesURLs that have crawl issues.
bing_get_crawl_settingsThe crawl rate for each hour and the crawl boost state.
bing_get_link_countsPages of the site with their inbound link counts. Bing makes the result pages.
bing_get_url_linksInbound links and anchor texts for one URL. Bing makes the result pages.
bing_get_connected_pagesPages connected to the site.
bing_get_deep_link_blocksBlocked deep links.
bing_get_url_infoIndex data for one URL: discovery date, last crawl and size.
bing_get_url_traffic_infoClicks and impressions for one URL.
bing_get_children_url_infoIndex data for the URLs below one URL, with filters.
bing_get_children_url_traffic_infoClicks and impressions for the URLs below one URL.
bing_get_blocked_urlsURLs that are blocked from Bing results.
bing_get_page_preview_blocksActive page preview blocks.
bing_get_country_region_settingsCountry and region targeting settings.
bing_get_query_parametersURL query parameters that Bing handles for the site.
bing_get_deep_linkDeprecated: deep links for one URL. Bing returned HTTP 404 for this method in December 2026.
bing_get_deep_link_algo_urlsDeprecated: URLs with deep links. Bing returned HTTP 404 for this method in December 2026.

Add and submit tools (8)

ToolWhat it does
bing_add_siteAdd a site to the Bing account. Verify it after with bing_verify_site.
bing_verify_siteAsk Bing to verify a site. First place the code that bing_get_sites returns.
bing_submit_urlSubmit one URL to Bing. Uses the daily quota.
bing_submit_url_batchSubmit up to 500 URLs to Bing. Uses the daily quota.
bing_submit_contentSubmit the content of a page to Bing. Uses the daily quota.
bing_submit_feedSubmit a sitemap or feed to Bing.
bing_fetch_urlAsk Bing to fetch a URL. Read the result with bing_get_fetched_url_details.
bing_add_connected_pageConnect a page, for example a social profile, to the site.

Change and remove tools (18)

These tools need confirmSiteUrl.

ToolWhat it does
bing_add_site_roleGive a user access to a site. This changes who controls the site.
bing_remove_siteRemove a site from the Bing account.
bing_remove_site_roleRemove the access of a user. See bing_get_site_roles first.
bing_submit_site_moveTell Bing that a site or directory moved. This changes how Bing shows it.
bing_remove_feedRemove a sitemap or feed from Bing.
bing_update_crawl_settingsChange the crawl rate or crawl boost. A low rate slows how Bing reads the site.
bing_add_deep_link_blockBlock a deep link from Bing results.
bing_remove_deep_link_blockRemove a deep link block.
bing_update_deep_linkDeprecated: set the weight of a deep link. Bing can reject this call.
bing_add_blocked_urlBlock a page or directory from Bing results. This removes content from results.
bing_remove_blocked_urlRemove a URL block.
bing_add_page_preview_blockStop Bing from showing a preview of a page.
bing_remove_page_preview_blockRemove a page preview block.
bing_add_country_region_settingsTarget a URL at a country. This changes where Bing shows it.
bing_remove_country_region_settingsRemove a country setting.
bing_add_query_parameterTell Bing to ignore a URL query parameter. This can change which URLs it keeps.
bing_remove_query_parameterRemove a URL query parameter rule.
bing_set_query_parameter_stateTurn a URL query parameter rule on or off.

The server lists the 61 bing_ tools only when Bing has a key at the start. Without a Bing key, the server lists 13 tools. With a key, it lists 74. After you set a key, restart your client.

[!WARNING] Some of these tools can remove your site from Bing, block pages or give another user access.

  • Each change or remove tool needs confirmSiteUrl, and your MCP client sees it as destructive.
  • Before a risky call, the server shows an approval dialog (see "Approvals").
  • Do not set your client to approve these tools automatically.
  • Search queries, link text and fetched pages come from other people. They can contain instructions that try to mislead an agent.

Approvals

Each tool is in one approval group. Before a risky call, the server asks you in a dialog, unless you chose "run without asking" in setup.

GroupToolsRisk
read46Reads search data of your sites. It never asks.
submit10Sends URLs, content and sitemaps to search engines, and adds sites. Uses daily quota.
visibility14Can remove pages or the whole site from search results, and slow the crawl.
access4Can remove or move a site, or give or remove the access of other people.
  • The default for submit, visibility and access is "ask first". Only the configuration file of your user holds this choice. No argument and no environment variable changes it.
  • The dialog shows the tool, the risk, the site and the values of the call, written by the server. It shows no secret. You can accept for one call (once) or for the same group on the same site until the server stops (session). The access group never offers session.
  • A decline or a cancel sends nothing. The dialog waits 10 minutes at most.
  • submit_urls_google with URL_DELETED uses the rules of visibility.
  • A client that cannot show dialogs (no form elicitation support) runs the call. The tool prompt of the client is then the only approval, and the first risky result of the session starts with a warning. engine_status shows whether your client supports dialogs. The visibility and access tools also ask Claude Code at each call through _meta["anthropic/requiresUserInteraction"].
  • Approvals are not a sandbox. An agent with shell access can change the configuration file. A client that approves tools automatically removes the client prompt.

A successful write means that Bing accepted the request. It does not mean that Bing applied it.

Bing returned HTTP 404 for bing_get_site_moves, bing_get_deep_link and bing_get_deep_link_algo_urls in December 2026.


💬 Example Prompts for Claude, Cursor and Other AI Agents

Once configured in Claude or Cursor, you can interact with your search data in plain English:

  • "Check search engine provider status to see what is connected."
  • "List all my verified websites across Google and Bing."
  • "Which pages lost Bing clicks in the last 8 weeks, and for which queries?"
  • "Group the current Bing crawl issues for my site."
  • "Show me the top 20 queries for my site on Google over the last 28 days."
  • "Find pages that get high impressions but low click-through rates (CTR < 2%)."
  • "Inspect https://example.com/blog/latest-post and tell me if it has any schema errors or mobile usability issues."
  • "Check all submitted sitemaps for my site and report indexing health."
  • "I just published 5 new blog posts: [URL list]. Submit them to IndexNow immediately."
  • "Notify Google that these 2 job postings were updated via the Indexing API."

❓ Troubleshooting & FAQs

1. Permission error (403): User does not have sufficient permission

  • Cause: The service account has not been added as a user to your property in Google Search Console.
  • Fix: In Google Search Console, go to Settings → Users and permissions → Add user and paste the exact email of your service account.

2. Site URL not found

  • Cause: Search Console differentiates between domain properties (sc-domain:example.com) and URL prefix properties (https://example.com/).
  • Fix: Run the list_sites tool first to view the exact property string format for your website.

3. Bing Webmaster API rejected the API key

  • Cause: Missing or invalid Bing API key (BING_WEBMASTER_API_KEY or the key in the configuration file).
  • Fix: Re-generate your API key in Bing Webmaster Tools (Settings → API Access → API Key) and ensure there are no leading/trailing spaces in your config.

4. The bing_ tools are not in the tool list

  • Cause: The server lists the 61 bing_ tools only when Bing has a key at the start.
  • Fix: Run the setup, or set BING_WEBMASTER_API_KEY. Then restart your client. seo-webmaster-mcp status shows whether the server finds a key.

5. The user did not approve <tool> or The user rejected <tool>

  • Cause: You declined or cancelled the approval dialog, or the dialog got no answer in 10 minutes. The server sent nothing.
  • Fix: Ask for the call again. To skip the dialog for a group, run the setup and choose Approvals.

6. Bing URL inspection returns UNKNOWN

  • Explanation: Unlike Google, the Bing Webmaster Tools API does not offer URL-level live inspection. The server returns coarse crawl stats if available, and transparently marks inspection verdict as UNKNOWN rather than fabricating data.

💻 Local Development & Contributing

Contributions are welcome! Please ensure all pull requests follow the project standards.

# Clone the repository
git clone https://github.com/itsaakashpatel/seo-webmaster-mcp.git
cd seo-webmaster-mcp

# Install dependencies
npm install

# Compile TypeScript
npm run build

# Run unit tests
npm test

# Run linter (oxlint)
npm run lint

# Check code formatting (oxfmt)
npm run format:check

Pull Requests

When opening a pull request, please use the template located at .github/pull_request_template.md and adhere to the guidelines in AGENTS.md.


📄 License

MIT © Aakash Patel

NPM
@itsaakashpatel/seo-webmaster-mcp
Install Command
npm install @itsaakashpatel/seo-webmaster-mcp