Skip to main content
Glama
SearXNG MCP Server

SearXNG MCP Server

by the-bao

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SEARXNG_BASE_URLYesYour SearXNG instance URL (e.g. http://localhost:8080, https://search.example.com). Required.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
searxng_searchA

Search the web using SearXNG metasearch engine. Aggregates results from multiple search engines (Google, Bing, DuckDuckGo, Wikipedia, etc.) for comprehensive results.

Supports filtering by category (news, images, videos, science, IT, etc.), specific engines, language, time range, and safe search.

Presets provide quick access to common search scenarios:

  • 'general' — all engines, no filter (default web search)

  • 'code' — GitHub + StackOverflow for code and programming questions

  • 'tech' — IT category for computer science and technology topics

  • 'academic' — science category + arXiv/PubMed/Google Scholar for papers and research

  • 'news' — news category, past month

When a preset is used, explicit categories/engines/time_range params still take precedence over preset defaults.

Args:

  • query (string, required): Search query. Supports syntax like site:, filetype:, etc.

  • preset ('general'|'code'|'tech'|'academic'|'news', optional): Quick search mode — see above

  • categories (string, optional): Filter by category ('general', 'news', 'images', 'videos', 'science', 'it', 'files', 'music', 'repos', 'packages')

  • engines (string, optional): Specific engines ('google', 'bing', 'duckduckgo', 'wikipedia', 'github', 'stackoverflow', 'arxiv', 'pubmed', 'youtube')

  • language (string, optional): Language code ('en', 'zh', 'ja', 'de', 'fr', 'es')

  • pageno (number, default 1): Page number (1-50)

  • time_range ('day'|'month'|'year', optional): Time filter for recent results

  • safesearch (number, default 0): 0=off, 1=moderate, 2=strict

  • response_format ('markdown'|'json', default 'markdown'): Output format

Returns structured search results including:

  • results[]: Array of {title, url, content, engine, engines[], score, category}

  • answers[]: Instant answers from SearXNG

  • suggestions[]: Related search suggestions

  • infoboxes[]: Summary info boxes with links and attributes

Examples:

  • "Search for Rust programming tutorials" -> query="Rust programming tutorials", preset="general"

  • "Find recent news about AI" -> query="AI", preset="news"

  • "Search GitHub for MCP servers" -> query="MCP server", preset="code"

  • "Find scientific papers about transformers" -> query="transformer model", preset="academic"

  • "What is WebAssembly?" -> query="What is WebAssembly", preset="tech"

Error Handling:

  • Returns "403 Forbidden" error if JSON format is not enabled in SearXNG settings

  • Returns connection error if SearXNG server is unreachable

searxng_autocompleteA

Get search query autocomplete suggestions from SearXNG. Returns a list of suggested completions for a partial search query.

Args:

  • query (string, required): Partial search query

  • language (string, optional): Language code (e.g., 'en', 'zh')

Returns: Array of suggested search query completions.

Examples:

  • query="rust prog" -> ["rust programming", "rust programming language", "rust programming tutorial"]

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4/5.0

Scored across 2 tools

Disambiguation5/5

The two tools have clearly distinct purposes: full web search versus query-completion suggestions. There is no realistic way an agent would confuse searxng_search with searxng_autocomplete.

Naming Consistency5/5

Both tools use the same predictable searxng_<verb/action> pattern in snake_case. The naming is fully consistent and self-explanatory.

Tool Count3/5

With only two tools the surface is quite thin, though for a search-engine wrapper it is a defensible minimal set. It sits at the borderline where a couple more operations (e.g. instance/config info) might be expected.

Completeness4/5

Search plus autocomplete covers the core lifecycle of a metasearch wrapper, including rich filtering and presets. Minor gaps exist around configuration or engine-discovery operations, but nothing that would block typical agent workflows.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues