# SearXNG MCP Server

> SearXNG MCP Server is an open-source MCP server for web search and scraping. Thirteen search and crawl tools for a self-hosted SearXNG instance, no API keys. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/bumbarasch/searxng-mcp-server
- **MCP Registry name:** io.github.bumbaRasch/searxng-mcp-server
- **Categories:** [web search and scraping](https://ai-powered.com/categories/web-search-and-scraping)
- **Listing updated:** 2026-11-23

## About

The server sits between an MCP client and a SearXNG metasearch instance you run yourself, normally in Docker on localhost. Because queries go only to your own instance, the README says there are no signups, keys, rate limits or provider-side tracking.

Search results carry stable citation refs, so a model can call fetch_content with ref:N rather than repeat URLs. Beyond web search there are image, news, video, music and paper searches, a search-and-fetch combo, a robots-aware site crawler, query autocomplete, an instance doctor and an iterative deep_search that produces a cited dossier. Page fetches go straight to the public web with SSRF and DNS-rebind guards on every redirect, and web output is wrapped against prompt injection.

It runs over stdio by default; Streamable HTTP is opt-in, with an auth token and DNS-rebinding protection described in its HTTP guide. Node 22.19 or newer and Docker for SearXNG are required.

## Features

- **Citation refs:** Each result gets a session-stable ref that fetch_content can resolve to clean Markdown.
- **Many search types:** Covers web, image, news, video, music and scientific paper search.
- **Search and fetch:** search_and_fetch returns the full content of top results in one call.
- **Site crawling:** crawl_site walks a site same-origin from a seed URL, honouring robots rules.
- **Deep search dossier:** deep_search iterates over a question and returns a cited dossier.
- **Instance doctor:** doctor checks whether the SearXNG instance is the problem.
- **Hardened output:** SSRF guarding on redirects and prompt-injection wrapping on web output.

## Good for

- Give an assistant private web search backed by your own SearXNG
- Search for research papers and read their abstracts and PDF links
- Crawl a documentation site into a manifest for later reading
- Research a question and get a dossier with citations

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add searxng-mcp-server -- npx -y searxng-mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "searxng-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "searxng-mcp-server"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "searxng-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "searxng-mcp-server"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "searxng-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "searxng-mcp-server"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "searxng-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "searxng-mcp-server"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add searxng-mcp-server -- npx -y searxng-mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.searxng-mcp-server]
command = "npx"
args = ["-y", "searxng-mcp-server"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "searxng-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "searxng-mcp-server"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user searxng-mcp-server npx -- -y searxng-mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "searxng-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "searxng-mcp-server"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "searxng-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "searxng-mcp-server"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "searxng-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "searxng-mcp-server"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "searxng-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "searxng-mcp-server"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "searxng-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "searxng-mcp-server"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "searxng-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "searxng-mcp-server"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "searxng-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "searxng-mcp-server"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "searxng-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "searxng-mcp-server"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 9 of 12 tools read data; 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `search` (name suggests: reads): Web search with ranked results and citation refs
- `image_search` (name suggests: reads): Image search with links, thumbnails and metadata
- `news_search` (name suggests: reads): News articles with dates and a freshness filter
- `video_search` (name suggests: reads): Video search with thumbnails and duration
- `music_search` (name suggests: reads): Music search with page and audio links
- `paper_search` (name suggests: reads): Scientific publications with abstracts and DOI data
- `fetch_content` (name suggests: reads): Fetch a page or ref as clean Markdown
- `search_and_fetch` (name suggests: reads): Search and fetch top results in one call
- `crawl_site`: Crawl a site into a ref-addressed manifest
- `autocomplete`: Query suggestions for a prefix
- `doctor`: Check whether the SearXNG instance is the problem
- `deep_search` (name suggests: reads): Iterative cited dossier for a question

## FAQ

### Does SearXNG MCP Server need API keys?

No. It talks to your own SearXNG instance, which needs none.

### What do I need to run SearXNG MCP Server?

Node 22.19 or newer, plus Docker for the bundled SearXNG stack.

### Can I use SearXNG MCP Server remotely?

Yes. Streamable HTTP is opt-in via the --transport http flag; stdio is the default.

### Is the SearXNG API safe to expose?

The README warns that the API is unauthenticated, so the bundled compose file binds to 127.0.0.1 only.

### Is SearXNG MCP Server free?

Yes. SearXNG MCP Server is open source, so you can use and self-host it for free.

### How do I add SearXNG MCP Server to Claude Code?

Run this command in your terminal: claude mcp add searxng-mcp-server -- npx -y searxng-mcp-server

### What are the best alternatives to SearXNG MCP Server?

The closest alternatives to SearXNG MCP Server are Scrapling MCP Server, Firecrawl MCP Server, Douyin_TikTok_Download_API, SearXNG Search and acrawl.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Scrapling MCP Server](https://ai-powered.com/mcp/scrapling-mcp-server): Scrapling MCP Server is an open-source MCP server for web search and scraping.
- [Firecrawl MCP Server](https://ai-powered.com/mcp/firecrawl-mcp-server): Firecrawl MCP Server is a freemium MCP server for web search and scraping.
- [Douyin_TikTok_Download_API](https://ai-powered.com/mcp/douyin-tiktok-download-api): Douyin_TikTok_Download_API is an open-source MCP server for web search and scraping.
- [SearXNG Search](https://ai-powered.com/mcp/searxng-search): SearXNG Search is an open-source MCP server for web search and scraping.
- [acrawl](https://ai-powered.com/mcp/acrawl): acrawl is an open-source MCP server for browser automation.
- [machine_internet](https://ai-powered.com/mcp/machine-internet): machine_internet is an open-source MCP server for web search and scraping.
- [Google Maps Reviews Scraper — New Review Alerts](https://ai-powered.com/mcp/google-maps-reviews-scraper-new-review-alerts): Google Maps Reviews Scraper — New Review Alerts is a paid MCP server for web search and scraping.
- [OnTheMarket Property Scraper — New Listings & Price-Drop Alerts](https://ai-powered.com/mcp/onthemarket-property-scraper-new-listings-and-price-drop-ale): OnTheMarket Property Scraper — New Listings & Price-Drop Alerts is a paid MCP server for web search and scraping.

---
Source: https://ai-powered.com/mcp/searxng-mcp-server
