Searxng MCP Server

A Python client for interacting with local/LAN SearXNG instances.

Remote serverstreamable-httpPython

What is the Searxng MCP server?

Searxng MCP server exists for a simple reason — assistants are far more useful when they can act on Searxng directly instead of describing what you should do. A Python client for interacting with local/LAN SearXNG instances.

What you get

A Python client library crafted by JamePeng (jame_peng@sina.com) for seamless interaction with your self-hosted SearXNG instance. This library empowers you to programmatically perform various searches (text, images, videos, news, etc.) against your local or LAN-deployed SearXNG server, giving you full control over your search data without relying on external APIs.

  • Connect to Local/LAN SearXNG: — Easily specify the base URL (IP address and port) of your self-hosted SearXNG instance, supporting both local and network-accessible deployments
  • Text Search: — Perform general web searches and retrieve structured results
  • Structured Output: — Receive search results in a clean, parseable JSON format
  • Robust Error Handling: — Comprehensive error management for network issues, server responses, and parsing failures
  • Customizable: — Extendable to support more SearXNG categories and search types

What the assistant can call

Once Searxng is connected, these are the calls the assistant has available:

  • Prerequisites — The Prerequisites tool exposed by this server

Setting it up

Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.

Configuration and credentials

You will need 2 environment variables: SEARXNG_HOST, SEARXNG_BASE_URL. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Python 3.9+: Ensure you have a compatible Python version installed. * Docker & Docker Compose: (Recommended for setting up SearXNG) Make sure Docker and Docker Compose are installed on your system.

Choosing this one

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Searxng's toolset — Prerequisites — is a fair guide to whether it matches your workflow.

This entry was verified against Searxng's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Before you rely on it

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the searxng mcp server does with a few real requests.

Available tools

ToolWhat it does
PrerequisitesThe Prerequisites tool exposed by this server.

How to install the Searxng MCP server

{
  "mcpServers": {
    "searxng-search": {
      "command": "uvx",
      "args": ["build"],
      "env": {
        "SEARXNG_HOST": "your-value",
        "SEARXNG_BASE_URL": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Python 3.9+: Ensure you have a compatible Python version installed. * Docker & Docker Compose: (Recommended for setting up SearXNG) Make sure Docker and Docker Compose are installed on your system.
VariableDescriptionRequired
SEARXNG_HOSTEndpoint or connection string the server talks to.Optional
SEARXNG_BASE_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Searxng to Prerequisites.

Frequently asked questions

It connects Searxng to MCP-compatible AI assistants such as Claude and Cursor, exposing 1 tool (Prerequisites) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Searxng directly.