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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
Implementation Reference
- src/searxng_mcp_server/server.py:240-247 (handler)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), ) ]
- src/searxng_mcp_server/server.py:152-169 (registration)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()