Skip to main content
Glama
Google Indexing API MCP Server

Google Indexing API MCP Server

MCP Server

This project is an MCP (Model Context Protocol) Server for the given OpenAPI URL - https://api.apis.guru/v2/specs/googleapis.com/indexing/v3/openapi.json, auto-generated using AG2's MCP builder.

Prerequisites

  • Python 3.9+

  • pip and uv

Related MCP server: Google Search Console API MCP Server

Installation

  1. Clone the repository:

    git clone <repository-url>
    cd mcp-server
  2. Install dependencies: The .devcontainer/setup.sh script handles installing dependencies using pip install -e ".[dev]". If you are not using the dev container, you can run this command manually.

    pip install -e ".[dev]"

    Alternatively, you can use uv:

    uv pip install --editable ".[dev]"

Development

This project uses ruff for linting and formatting, mypy for static type checking, and pytest for testing.

Linting and Formatting

To check for linting issues:

ruff check

To format the code:

ruff format

These commands are also available via the scripts/lint.sh script.

Static Analysis

To run static analysis (mypy, bandit, semgrep):

./scripts/static-analysis.sh

This script is also configured as a pre-commit hook in .pre-commit-config.yaml.

Running Tests

To run tests with coverage:

./scripts/test.sh

This will run pytest and generate a coverage report. For a combined report and cleanup, you can use:

./scripts/test-cov.sh

Pre-commit Hooks

This project uses pre-commit hooks defined in .pre-commit-config.yaml. To install the hooks:

pre-commit install

The hooks will run automatically before each commit.

Running the Server

The MCP server can be started using the mcp_server/main.py script. It supports different transport modes (e.g., stdio, sse, streamable-http).

To start the server (e.g., in stdio mode):

python mcp_server/main.py stdio

The server can be configured using environment variables:

  • CONFIG_PATH: Path to a JSON configuration file (e.g., mcp_server/mcp_config.json).

  • CONFIG: A JSON string containing the configuration.

  • SECURITY: Environment variables for security parameters (e.g., API keys).

Refer to the if __name__ == "__main__": block in mcp_server/main.py for details on how these are loaded.

The tests/test_mcp_server.py file demonstrates how to start and interact with the server programmatically for testing.

Building and Publishing

This project uses Hatch for building and publishing. To build the project:

hatch build

To publish the project:

hatch publish

These commands are also available via the scripts/publish.sh script.

Related MCP Connectors

  • Web search API and MCP server for developers building AI agents.

    https://searchpipe.tech/mcp/
  • Read-only Google Search Console MCP server for AI assistants.

    https://gsc.vosiksignals.win/mcp
  • MCP server for Google search results via SERP API

  • Google indexer: free IndexNow, Bing, sitemap and index checks; paid backlink force indexing Google indexer and URL indexer for AI agents. Free URL submission for sites you own: IndexNow and Bing Webmaster Tools, sitemap resubmission to Google Search Console, and a free index checker (Search Console URL inspection) that finds pages stuck in 'Crawled - currently not indexed' or 'Discovered - currently not indexed'. Force indexing (paid) is the fast indexing service: a backlink indexer and link indexer that pushes any public URL, including backlinks and pages you don't own, to Google through a third-party indexing service so Googlebot crawls it sooner. It uses URL credits, always shows an exact quote first and needs the account owner's approval; Google still decides what it indexes. It never uses the Google Indexing API. Which one do I need? New page missing from Google: Free URL submission + index check first, then Force indexing if still not indexed. Backlinks or links you don't own: Force indexing. 'Crawled - currently not indexed' or 'Discovered - currently not indexed': free index check, then Force indexing. Is my page indexed?: check_if_url_is_indexed (free). Notify Bing and other IndexNow engines: Free URL submission. Fast or instant indexing searches: Force indexing, without any indexing or timing guarantee. Google has no public indexing API, so free submission can't force Google; Force indexing is the paid option. Free URL submission: IndexNow (Bing, Yandex, Seznam, Naver), Bing Webmaster Tools, sitemap resubmission to Google Search Console, and a free Google index checker through Search Console URL Inspection. For sites you own or have connected. Force indexing (paid): 1 URL credit per URL the third-party indexing service accepts. Always an exact quote first, then account-owner approval in the dashboard. No indexing, ranking or timing guarantee. Tools: - Free: Free URL submission: IndexNow (`submit_urls_to_indexnow`) - Free: Free URL submission: Bing Webmaster Tools (`submit_urls_to_bing`) - Free: Free URL submission: IndexNow, Bing and the Google next step (`notify_search_engines_free`) - Free: Free index check: are URLs indexed in Google (`check_if_url_is_indexed`) - Free: Submit a sitemap to Google and Bing (`submit_sitemap`) - Paid: Force indexing: read URL credits and readiness (`get_force_indexing_balance`) - free to call; no purchase or indexing-service call - Paid: Force indexing: quote URLs (backlink and Google indexer) (`quote_force_indexing`) - Paid: Force indexing: submit approved quote (`submit_force_indexing`) - Paid: Force indexing: read job (`get_force_indexing_job`) - Paid: Force indexing: list jobs (`list_force_indexing_jobs`) Example prompts: - "Is https://example.com/new-post indexed in Google? If not, resubmit my sitemap." - "Index these 5 backlinks in Google: quote Force indexing and wait for my approval." - "My pages show 'Crawled – currently not indexed' in Search Console; check them and suggest a fix." Search keywords and tags (most searched first): google indexer, google indexing, page indexer, website indexer, web indexer, indexnow, submit website to google, index checker, google index checker, submit url to google, link indexer, backlink indexer, index backlinks, seo indexer, crawled currently not indexed, discovered currently not indexed, url indexer, google crawl request, indexing service, link indexing service, rapid indexing, request indexing, instant indexing, fast indexing, force indexing, force crawl google Docs: https://docs.crakseo.com/mcp-servers/url-indexing Free URL submission and Force indexing: https://docs.crakseo.com/seo-mcp/managed-indexing

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    An MCP Server that provides access to Google's Search Console API, allowing users to interact with website search performance data and manage search presence through natural language.
    -
  • A
    license
    B
    quality
    D
    maintenance
    An MCP server integrating Google Analytics 4, Search Console, and Indexing API, enabling AI agents to run reports, inspect URLs, manage properties, and request indexing.
    16
    263 npm
    2
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server that exposes the Google Search Console API, allowing LLMs to query SEO data, inspect URLs, manage sitemaps, and analyze search performance via natural language.
    113 npm
    MIT