@caikiji/mcp-search
Privacy-respecting, self-hosted metasearch MCP server that aggregates results from multiple search engines and fetches page content as Markdown.
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 —
infoto 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>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。