@caikiji/mcp-search

@caikiji/mcp-search

Privacy-respecting, self-hosted metasearch MCP server that aggregates results from multiple search engines and fetches page content as Markdown.

Category
Visit Server

README

<p align="center"> <br/> <h1 align="center">πŸ”Ž @caikiji/mcp-search</h1> <p align="center">MCP server for web search β€” privacy-respecting, self-hosted metasearch</p> <p align="center"> <a href="https://www.npmjs.com/package/@caikiji/mcp-search"><img src="https://img.shields.io/npm/v/@caikiji/mcp-search?style=flat-square&logo=npm" alt="npm version"/></a> <a href="https://www.npmjs.com/package/@caikiji/mcp-search"><img src="https://img.shields.io/npm/dm/@caikiji/mcp-search?style=flat-square" alt="npm downloads"/></a> <a href="https://github.com/caikiji/mcp-search"><img src="https://img.shields.io/github/stars/caikiji/mcp-search?style=flat-square&logo=github" alt="github stars"/></a> <a href="./README.zh-CN.md"><img src="https://img.shields.io/badge/ζ–‡ζ‘£-δΈ­ζ–‡-blue?style=flat-square" alt="δΈ­ζ–‡ζ–‡ζ‘£"/></a> <img src="https://img.shields.io/badge/node-%3E%3D18-brightgreen?style=flat-square&logo=node.js" alt="node version"/> <img src="https://img.shields.io/badge/license-MIT-green?style=flat-square" alt="license"/> </p> <p align="center"> <b><a href="#installation">Installation</a></b> Β· <b><a href="#configuration">Configuration</a></b> Β· <b><a href="#tools">Tools</a></b> Β· <b><a href="./README.zh-CN.md">δΈ­ζ–‡ζ–‡ζ‘£</a></b> </p> <br/> </p>

✨ Features

  • 🌐 Web search β€” aggregates results from multiple engines (Brave, DuckDuckGo, Bing News, etc.)
  • πŸ“„ Page fetch β€” read full page content from search results as Markdown
  • πŸ” Engine discovery β€” info to see engine counts; info scope: "engines" to list all
  • 🎯 Token efficient β€” compact mode, smart snippet truncation, deduplicated results
  • πŸ”’ Self-hosted β€” works with your own SearXNG instance, full privacy control

Installation

npm install -g @caikiji/mcp-search

Configuration

Environment variables

Variable Default Description
SEARCH_URL β€” Your SearXNG instance URL (required)
SEARCH_AUTH β€” Basic auth credentials (user:pass). Leave empty if your instance is public.
SEARCH_TIMEOUT 15000 SearXNG API timeout (ms)
SEARCH_FETCH_TIMEOUT 15000 Page fetch timeout (ms)
SEARCH_DEFAULT_COUNT 10 Default results per search (1–50)
SEARCH_MAX_LENGTH 8000 Max chars for result content (500–50000)
SEARCH_SNIPPET_LENGTH 300 Max chars for result snippet (truncated at word boundary)
SEARCH_FETCH_UA Chrome UA User-Agent for page fetching
SEARCH_RECOMMENDED_ENGINES β€” Semicolon-separated recommended engines, optionally with engine|description. Shown in info output. See config example below.

MCP Client config

{
  "mcpServers": {
    "search": {
      "command": "npx",
      "args": ["-y", "@caikiji/mcp-search"],
      "env": {
        "SEARCH_URL": "https://search.example.com",
        "SEARCH_AUTH": "user:password",
        "SEARCH_RECOMMENDED_ENGINES": "duckduckgo|general purpose, privacy;bing|images, news;sogou|Chinese web;sogou wechat|WeChat articles;stackoverflow|programming Q&A;github|code repositories"
      }
    }
  }
}

Tools

Search

Tool Arguments Description
query query, [language], [categories], [time_range], [engines], [pageno], [count], [format] Web search with dedup, snippet, and source info. format: "compact" for minimal token usage.
result url, [max_length] Fetch a URL from results and return as Markdown. Works on most blogs/docs sites.
info [scope] Instance info. Default: counts, categories, settings. scope: "engines" for full list with categories.

query parameters

Param Description
query Search query (required)
site Restrict to domain, e.g. github.com. Prepends site: to the query.
language Language code (zh-CN, en-US, auto). Default: auto
categories Comma-separated: general, news, images, video, music, it, science, files, social media
time_range day, week, month, year
engines Comma-separated engine names. Use info to see available ones
pageno Page number. Default: 1
count Results to return (1–50). Default: 10
format full (title+URL+snippet) or compact (title+URL only, minimal tokens). Default: full
depth When true, forces count=1 and fetches the top result's full content via reader mode. Saves the query→pick→fetch round trip. Default: false

Output format

Full mode:

5 results | Sources: duckduckgo,brave
[1] Title
URL: https://...
Src: duckduckgo

Snippet text here (truncated to 300 chars)...

[2] Next Title
URL: https://...
Src: google +2

Compact mode:

5 results | Sources: duckduckgo
[1] Title β€” https://...
[2] Next Title β€” https://...

<p align="center"> <a href="./README.zh-CN.md">πŸ“– δΈ­ζ–‡ζ–‡ζ‘£</a> </p>

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured