Skip to main content

MCP server providing SearXNG-based web search functionality

Project description

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:

  • Web search via multiple search engines
  • Supports various search categories (general, images, news, etc.)
  • Customizable search engine selection
  • Language filtering
  • Time range filtering
  • Control over the number of search results

Available Tools

  • web_search - Perform web search using SearXNG
    • Required parameters:
      • query (string): The search query
    • Optional parameters:
      • categories (array): Search categories, e.g. ['general', 'images', 'news']
      • engines (array): Search engines, e.g. ['google', 'bing', 'duckduckgo']
      • language (string): Language code for search, default is "en"
      • max_results (integer): Maximum number of results, default is 10
      • time_range (string): Time range filter ('day', 'week', 'month', 'year')

Installation

Install via pip

# Install
pip install searXNG

# Get the latest version
pip install -U searXNG

Usage Example

Configure as an MCP Service

Add the following to your MCP configuration:

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

Example Invocation

{
  "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 uv run searxng

License

AGPLv3+ License - see LICENSE for details.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

searxng-0.0.0.dev0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

searxng-0.0.0.dev0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file searxng-0.0.0.dev0.tar.gz.

File metadata

  • Download URL: searxng-0.0.0.dev0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for searxng-0.0.0.dev0.tar.gz
Algorithm Hash digest
SHA256 a4052f398a3e1281a3deb9b120da29986f2a8e91dc1f2981b78d32ffbf436f8a
MD5 da29fbb5ee76d881d115f14fc381d8c1
BLAKE2b-256 1c4c07ff0b1e8191a858c6ee24b02c94bfe264d0ada24199ecaa68f1a86f01fc

See more details on using hashes here.

File details

Details for the file searxng-0.0.0.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for searxng-0.0.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbe1aaa868e09c54ea1dbab1c15261fbfad6e546196b8d221224de8230381636
MD5 c55d08c069862d976f991335af1feba6
BLAKE2b-256 5aebfc8baeeb3e3f7052927c30840be1c978f4b3d8ad9fe29722e68f24c2b9aa

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page