Skip to main content
Glama
martinchen448

SearXNG MCP Server

get_config

Retrieve the SearXNG instance configuration to discover available search engines, enabled categories, supported languages, and instance settings for understanding search capabilities.

Instructions

Get the configuration of the SearXNG instance.

This tool retrieves the SearXNG instance configuration including available search engines, enabled categories, supported locales, plugins, and instance settings. Useful for understanding what capabilities are available.

Use this when you need to:

  • Discover available search engines

  • See what categories are enabled

  • Check supported languages/locales

  • Understand instance capabilities and settings

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "type": "object" }

Implementation Reference

  • MCP tool call handler for 'get_config': executes client.get_config() and formats response as JSON text content.
    elif name == "get_config": config = await client.get_config() return [ TextContent( type="text", text=json.dumps(config, indent=2), ) ]
  • Registration of the 'get_config' tool in MCP list_tools(), including schema (no input params).
    Tool( name="get_config", description="""Get the configuration of the SearXNG instance. This tool retrieves the SearXNG instance configuration including available search engines, enabled categories, supported locales, plugins, and instance settings. Useful for understanding what capabilities are available. Use this when you need to: - Discover available search engines - See what categories are enabled - Check supported languages/locales - Understand instance capabilities and settings""", inputSchema={ "type": "object", "properties": {}, }, ),
  • SearXNGClient.get_config() method: fetches configuration via HTTP GET to /config endpoint.
    async def get_config(self) -> Dict[str, Any]: """Get the configuration of the SearXNG instance. Returns: Dictionary containing instance configuration Raises: httpx.HTTPError: If the request fails """ url = urljoin(self.base_url, "/config") response = await self.client.get(url) response.raise_for_status() return response.json()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/martinchen448/searxng-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server