Skip to main content
Glama
martinchen448

SearXNG MCP Server

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

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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()
  • 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": {}, },
  • 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), ) ]
Install Server

Other Tools

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