The project is in a healthy, maintained state
A minimal MCP (Model Context Protocol) server that exposes Ask::Tools::WebSearch as a callable tool over stdio. Designed for use with clients that support MCP (ZCode, Claude Code, etc.), it queries a local SearXNG instance and returns formatted search results suitable for LLM consumption.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 5.25
~> 13.0

Runtime

 Project Readme

ask-web-search-mcp

Gem Version

A minimal MCP (Model Context Protocol) server that exposes an ask_web_search tool backed by SearXNG. Designed for use with MCP-compatible clients like ZCode, Claude Code, Codex, and others.

Prerequisites

A running SearXNG instance. The default endpoint is http://localhost:8888.

docker run -d --name searxng -p 8888:8080 searxng/searxng

Or use the provided docker-compose.yml in the searxng directory:

cd searxng
docker compose up -d

You can customise the SearXNG URL via the SEARXNG_URL environment variable.

Installation

gem install ask-web-search-mcp

Or in your Gemfile:

gem "ask-web-search-mcp"

Usage

Standalone

ask-web-search-mcp

The server reads JSON-RPC messages on stdin and writes responses to stdout (the standard MCP stdio transport).

With ZCode

Add to your ZCode user configuration (~/.zcode/v2/config.json or ~/.zcode/cli/config.json):

{
  "mcp": {
    "servers": {
      "ask-web-search-mcp": {
        "type": "stdio",
        "command": "ask-web-search-mcp",
        "args": []
      }
    }
  }
}

After restarting ZCode, the ask_web_search tool will be available to the model automatically.

With Claude Code

claude mcp add ask-web-search-mcp -- npx -y @anthropic-ai/mcp-serve ask-web-search-mcp

Development

git clone https://github.com/ask-rb/ask-web-search-mcp
cd ask-web-search-mcp
bin/setup
bundle exec rake test

License

MIT — see LICENSE.