mcp-server-indexnow

by zizzfizzix

333 downloads
Not rated
GitHub

About

A Model Context Protocol (MCP) server allowing URL indexing requests via the IndexNow protocol. This server acts as a bridge, enabling MCP-compatible clients (like IDEs or AI assistants) to submit URLs to search engines using the IndexNow protocol for potentially faster content

Details

Author
zizzfizzix
Downloads
333
Categories
Other

- Provides an MCP tool to submit single or multiple URLs to IndexNow API.
- Enables interaction with IndexNow protocol through MCP clients.
- Requires minimal configuration after IndexNow key setup.
- Supports optional environment variables for key and API base.
- Can be run directly via uvx or installed with make.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name mcp-server-indexnow
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install the server using uvx (recommended) or make, then configure it in your MCP client (e.g., Claude desktop or Zed). Before use, you must set up an IndexNow key for your website host and place the verification file on your web server. Optionally, set environment variables (INDEXNOW_SECRET_KEY, INDEXNOW_API_BASE, INDEXNOW_KEY_LOCATION) in the MCP server configuration. Finally, instruct your assistant to call the server to submit single or multiple URLs with the provided key.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp-server-indexnow": {
            "mcp-server-indexnow": {
                "command": "uvx",
                "args": [
                    "cookiecutter",
                    "gh:zizzfizzix/python-base-mcp-server"
                ]
            }
        }
    }
}

McpServers

{
    "mcp-server-indexnow": {
        "command": "uvx",
        "args": [
            "cookiecutter",
            "gh:zizzfizzix/python-base-mcp-server"
        ]
    }
}

mcp-server-indexnow

> A Model Context Protocol (MCP) server allowing URL indexing requests via the IndexNow protocol.

This server acts as a bridge, enabling MCP-compatible clients (like IDEs or AI assistants) to submit URLs to search engines using the IndexNow protocol for potentially faster content discovery and indexing.

What is IndexNow?

IndexNow is a simple protocol that allows websites to easily notify search engines whenever their website content is created, updated, or deleted. Submitting URLs via IndexNow informs participating search engines (like Bing, Yandex, Seznam.cz, Naver, Yep) to prioritize crawling these URLs, potentially speeding up the reflection of changes in search results.

What is MCP?

The Model Context Protocol (MCP) is a standard for connecting language models (LLMs) and AI assistants to various tools, data sources, and capabilities through dedicated servers. This server implements MCP to expose IndexNow functionality as a tool.

Features

Provides an MCP tool to submit single or multiple URLs to the IndexNow API.
Facilitates interaction with the IndexNow protocol through MCP clients.
Requires minimal configuration once the IndexNow key is set up on your host.

Installation

Using uvx (recommended)

When using uvx no specific installation is needed. We will use it to directly run mcp_server_indexnow from the client app.

Add to Claude desktop with uvx

In your Claude config specify:

"mcpServers": {
  "mcp_server_indexnow": {
    "command": "uvx",
    "args": [
      "--from",
      "git+https://github.com/zizzfizzix/mcp-server-indexnow",
      "mcp_server_indexnow"
    ]
  }
}

Add to Zed with uvx

In your Zed settings.json add:

"context_servers": [
  "mcp_server_indexnow": {
    "command": "uvx",
    "args": [
      "--from",
      "git+https://github.com/zizzfizzix/mcp-server-indexnow",
      "mcp_server_indexnow"
    ]
  }
],

Using make

Alternatively you can install mcp_server_indexnow using make:

make install

Add to Claude desktop with make

In your Claude config specify:

"mcpServers": {
  "mcp_server_indexnow": {
    "command": "/path/to/mcp-server-indexnow/.venv/bin/python",
    "args": ["/path/to/mcp-server-indexnow/mcp_server_indexnow/main.py"]
  }
}

Add to Zed with make

In your Zed settings.json add:

"context_servers": {
  "mcp_server_indexnow": {
    "command": "/path/to/mcp-server-indexnow/.venv/bin/python",
    "args": ["/path/to/mcp-server-indexnow/mcp_server_indexnow/main.py"]
  }
}

Usage

After you've successfully added this MCP server to your assistant app follow the next steps below.

1. IndexNow Key Setup (Required)

Before using this server, you must set up an IndexNow key for your website host. This involves generating a key and placing a specific text file ({your-key}.txt) on your web server. This process verifies your ownership of the host to IndexNow.

Follow the official IndexNow instructions: Verifying ownership via the key
The key itself will be needed when you invoke the URL submission tool provided by this server. Keep it secure.

2. Environment Variables (Optional)

This server supports the following environment variables for configuration:

INDEXNOW_SECRET_KEY: If you set this environment variable to your IndexNow key, the server will use it by default when submitting URLs. This way your AI assistant won't know it. You can still override it by providing the key argument when invoking the tool e.g.:

"mcpServers": {
  "mcp_server_indexnow": {
    "command": "uvx",
    "args": [
      "--from",
      "git+https://github.com/zizzfizzix/mcp-server-indexnow",
      "mcp_server_indexnow"
    ],
    "env": {
      "INDEXNOW_SECRET_KEY": "https://example.com/2134131231.txt"
    }
  }
}

INDEXNOW_API_BASE: Allows you to specify a different IndexNow API endpoint. Defaults to https://api.indexnow.org/indexnow, full list at indexnow.com. You typically only need this if you care about network latency or a specific participating search engine - they share submitted events with each other in the background but there reasonably might be a delay.

"mcpServers": {
  "mcp_server_indexnow": {
    "command": "uvx",
    "args": [
      "--from",
      "git+https://github.com/zizzfizzix/mcp-server-indexnow",
      "mcp_server_indexnow"
    ],
    "env": {
      "INDEXNOW_API_BASE": "https://www.bing.com/indexnow"
    }
  }
}

INDEXNOW_KEY_LOCATION: Optional. Full URL to your key file if not hosted at the root (/keyfilename.txt). Use this if you followed Option 2 from the IndexNow documentation.

"mcpServers": {
  "mcp_server_indexnow": {
    "command": "uvx",
    "args": [
      "--from",
      "git+https://github.com/zizzfizzix/mcp-server-indexnow",
      "mcp_server_indexnow"
    ],
    "env": {
      "INDEXNOW_KEY_LOCATION": "https://example.com/some/path/myIndexNowKey63638.txt"
    }
  }
}

Examples

Interact with your MCP client (e.g., AI Assistant) to invoke the tool. The exact command might depend on the client, but conceptually:

> Assistant, please use the IndexNow server to submit the URL https://your-website.com/updated-page with the key 'your-indexnow-key'.

Or for multiple URLs:

> Assistant, please use the IndexNow server to submit the following URLs with the key 'your-indexnow-key':
>
> https://your-website.com/new-article-1
>
https://your-website.com/new-article-2
> * https://your-website.com/deleted-page

Refer to your specific MCP client's documentation on how to invoke server tools. This server will then make the appropriate request to the IndexNow API endpoint, by default https://api.indexnow.org/indexnow.

Development

For development, you can use the following commands:

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.