Skip to main content
Glama
@semidark/mcp-litellm-searxng

@semidark/mcp-litellm-searxng

by semidark

@semidark/mcp-litellm-searxng

MCP server for searching the web through a LiteLLM proxy's SearXNG-backed search endpoint.

Installation

No local installation required — the server is executed on-demand via npx:

{
  "mcp": {
    "azurelit-search": {
      "type": "local",
      "command": ["npx", "-y", "@semidark/mcp-litellm-searxng"],
      "environment": {
        "LITELLM_SEARCH_URL": "https://your-litellm-proxy/v1/search/searxng-search",
        "LITELLM_API_KEY": "sk-your-key",
        "LITELLM_TIMEOUT_MS": "30000"
      }
    }
  }
}

With OpenCode, you can usually reuse your existing secret file:

{
  "mcp": {
    "azurelit-search": {
      "type": "local",
      "command": ["npx", "-y", "@semidark/mcp-litellm-searxng"],
      "environment": {
        "LITELLM_SEARCH_URL": "https://litellm-proxy.example.com/v1/search/searxng-search",
        "LITELLM_API_KEY": "{file:~/.secrets/azure-lit.key}",
        "LITELLM_TIMEOUT_MS": "30000"
      }
    }
  }
}

Related MCP server: mcp-searxng

Development

Run the server locally:

npm start

Run the integration test harness:

LITELLM_SEARCH_URL="https://your-litellm-proxy/v1/search/searxng-search" \
LITELLM_API_KEY="sk-your-key" \
npm test

npm test is an integration test against a real LiteLLM endpoint. It does not mock the network and fails fast if LITELLM_SEARCH_URL or LITELLM_API_KEY is missing.

Environment Variables

Variable

Required

Default

Description

LITELLM_SEARCH_URL

Yes

—

Full URL to the LiteLLM search endpoint

LITELLM_API_KEY

Yes

—

Bearer token for API authentication

LITELLM_TIMEOUT_MS

No

30000

Request timeout in milliseconds

Tools

Search the web using the configured LiteLLM proxy search backend.

Parameters:

  • query (string, required): Search query

  • max_results (number, optional, default 10): Max results to return (1–50)

Returns:

  • text output formatted for chat clients

  • structuredContent.results as the raw LiteLLM result array

License

MIT

Available Tools

1 tool

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of confusion between tools. The single tool has a clear, distinct purpose.

    Naming Consistency5/5

    The sole tool 'web_search' follows a clear verb_noun pattern. Consistency is not an issue with a single tool.

    Tool Count3/5

    A single tool is minimal but acceptable for a focused search server. However, it feels thin compared to typical MCP servers.

    Completeness4/5

    The server provides exactly what its name implies: web search. For a narrow-purpose tool, it covers the core functionality without obvious gaps.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to perform web searches and read URL content via a SearXNG instance.
      2
      13 npm
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Enables local LLMs to search the web and fetch clean content from URLs without API keys, using SearxNG and Mozilla Readability.
      2
      42
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables web search and content scraping from multiple engines via a local SearXNG instance, allowing AI assistants to retrieve and extract web content.
      1
      -