get_available_engines
Retrieve available search engines to configure and customize search queries within the SearXNG MCP server.
Instructions
Get information about available search engines
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- server.py:89-104 (handler)The implementation of the 'get_available_engines' tool handler using FastMCP.
@mcp.tool() def get_available_engines() -> Dict[str, Any]: """Get information about available search engines""" logger.info("Fetching available engines information") try: response = client.get(urljoin(SEARXNG_URL, "/config")) response.raise_for_status() result = response.json() logger.info("Successfully retrieved engine information") return result except httpx.HTTPError as e: logger.error(f"HTTP error occurred while fetching engines: {str(e)}") raise except Exception as e: logger.error(f"Unexpected error while fetching engines: {str(e)}") raise