get_config
Retrieve 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 | |||
Implementation Reference
- src/searxng_mcp_server/client.py:184-198 (handler)The core handler function that executes the get_config tool logic by fetching the SearXNG configuration from the /config endpoint and returning it as JSON.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()
- src/searxng_mcp_server/server.py:152-169 (registration)Registration of the get_config tool in the MCP server's list_tools() function, including the tool name, description, and input schema (no required parameters).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": {}, }, ),
- Input schema definition for the get_config tool, specifying an empty object (no input parameters required).inputSchema={ "type": "object", "properties": {}, },
- src/searxng_mcp_server/server.py:240-247 (handler)Dispatch handler in the MCP server's call_tool() function that invokes the client.get_config() method and formats the response as TextContent for the MCP protocol.elif name == "get_config": config = await client.get_config() return [ TextContent( type="text", text=json.dumps(config, indent=2), ) ]