searXNG

PyPI Version License PyPI Downloads

searXNG

A network search server based on MCP technology, providing privacy-friendly web search functionality using the SearXNG search engine.

Features

This server provides the following main features:

Available Tools

Usage Example

Configure as an MCP Service

To set up SearXNG as an MCP server, add one of the following to your MCP configuration file:

UVX setup:

"mcpServers": {
  "searxng": {
    "command": "uvx",
    "args": ["searxng", "--instance-url=https://searx.party"]
  }
}

Docker setup:

"mcpServers": {
  "searxng": {
    "command": "docker",
    "args": [
      "run",
      "-i",
      "--rm",
      "supercorp/supergateway:uvx",
      "--stdio",
      "uvx searxng --instance-url=https://searx.party"
    ]
  }
}

Example Invocation

1.

{
  "name": "web_search",
  "arguments": {
    "query": "climate change research",
    "categories": ["general"],
    "engines": ["google"],
    "language": "en",
    "max_results": 15,
    "time_range": "month"
  }
}

Debugging

You can use the MCP inspector to debug the server:

npx @modelcontextprotocol/inspector uvx searxng

License

AGPLv3+ License - see LICENSE for details.