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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_available_engines"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |
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