Skip to main content

MCP Server for SearxNG

Project description

SearxNG MCP Server

A Model Context Protocol (MCP) server that provides search capabilities through SearxNG, the privacy-respecting metasearch engine.

PyPi: https://pypi.org/project/searxng-mcp-server/#description

Usage

Using uvx

You can also just pip install this but we recommend using uv.

# With command line argument
uvx searxng-mcp-server --searxng-url https://searx.be

# With environment variable
SEARXNG_URL=https://searx.be uvx searxng-mcp-server

Package link: https://pypi.org/project/searxng-mcp-server/

Using Docker/Podman

# With command line argument
podman run --rm -i docker.io/icewreck/searxng-mcp-server:latest --searxng-url https://searx.be

# With environment variable
podman run --rm -i -e SEARXNG_URL=https://searx.be docker.io/icewreck/searxng-mcp-server:latest

Usage as Library

You can also use the SearxNG client directly in your Python projects. The client is fully async and requires async/await syntax.

For detailed examples, see the examples/client_example.py file in the repository.

The SearxNGClient can be easily integrated into custom AI agents as a search tool. All search methods are async and return structured response objects.

Available Tools

  • search_web: General web search with language and time filtering
  • search_images: Image search across multiple search engines
  • search_videos: Video search from various platforms
  • search_news: News search with time range filtering
  • fetch_url: Fetch content from a URL and convert it to markdown

Configuration

The server requires a SearxNG instance URL. You can provide it via:

  • Environment Variable: SEARXNG_URL=https://your-searxng-instance.com
  • Command Line Argument: --searxng-url https://your-searxng-instance.com

Optional: SEARXNG_TIMEOUT (default: 30), SEARXNG_USER_AGENT, LOG_LEVEL

Project 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_mcp_server-0.1.6.tar.gz (90.0 kB view details)

Uploaded Source

Built Distribution

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

searxng_mcp_server-0.1.6-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file searxng_mcp_server-0.1.6.tar.gz.

File metadata

  • Download URL: searxng_mcp_server-0.1.6.tar.gz
  • Upload date:
  • Size: 90.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.5

File hashes

Hashes for searxng_mcp_server-0.1.6.tar.gz
Algorithm Hash digest
SHA256 7cf9d391183385afd9802262b870b9325d3d867f8015c5d334485d52680cf4a7
MD5 95fe6708e8946b9b4860562d2bddd2f9
BLAKE2b-256 29bc86343e973700110254e0fb6f1ca7b6e8373b5d1df1fcb3b4c041286010f0

See more details on using hashes here.

File details

Details for the file searxng_mcp_server-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for searxng_mcp_server-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5fabf1456b3e66a3e3f04b08506df796e1ef16f904ae2cef66d7a5b94310fc76
MD5 129985ad995ea567f1fc5ccc944bc2c6
BLAKE2b-256 8bad9c0c8edf1d730b63e346b9f814efa8b175fd794b99ef545379883e1d8f93

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