mcp-bing-search
Enables web search from mainland China without an API key, using Bing with automatic fallback to Qihoo 360 and Sogou, and resolves redirect links to real URLs.
README
mcp-bing-search
A local MCP server for web search that works from mainland China without any API key.
- Primary engine: Bing (
cn.bing.com) - Automatic fallback for fresh Chinese trending topics: Qihoo 360 → Sogou
- Resolves search-engine redirect links to real URLs
It was built to replace public searxng instances (e.g. baresearch.org), which are
unreachable from mainland China and return nothing for Chinese long-tail queries.
Not affiliated with Microsoft's official
mcp-server-bing-search(which requires an API key) — this is a no-key, China-friendly alternative.
Why this exists
| Problem | This project's answer |
|---|---|
| Public searxng instances unreachable from mainland China | Direct request to cn.bing.com, which is reachable without a proxy |
| No API key / no billing | Scrapes the search result page (HTML parsing), no key needed |
| Bing indexes Chinese campus/trending topics poorly | fallback automatically retries with 360 / Sogou |
| Baidu blocks automated requests with captchas | Baidu is intentionally not used |
Features
web_search(query, max_results, fallback)— Bing first; when results are irrelevant (common for very fresh Chinese topics), automatically retries 360 → Sogou.cn_search(query, max_results)— search Chinese engines directly (360 → Sogou).- Redirect-link resolution — 360/Sogou's encrypted jump links (
so.com/link?m=...) are resolved to the final real URL (HTTP redirects and JS redirects supported). - Self-contained single file; only depends on
mcp,httpx,lxml.
Install
Option A: pip (recommended)
pip install mcp-bing-search
Option B: from source
git clone https://github.com/Quqing-future/mcp-bing-search.git
cd mcp-bing-search
pip install .
# or run directly without installing:
python mcp_bing_search.py
Configure with Reasonix
Add to your global config.toml (all projects) or project reasonix.toml:
[[plugins]]
name = "bing-search"
command = "python" # or the absolute path to python.exe
args = ["-m", "mcp_bing_search"] # if installed via pip
# args = ["/path/to/mcp_bing_search.py"] # if running from source
Or use the standard .mcp.json:
{
"mcpServers": {
"bing-search": {
"command": "python",
"args": ["-m", "mcp_bing_search"]
}
}
}
Changes take effect on the next session. Tools appear as
mcp__bing-search__web_search and mcp__bing-search__cn_search.
Configure with other MCP clients
Any MCP client works — Claude Desktop, Cursor, VS Code, etc. Point it at:
python -m mcp_bing_search
# or
python /path/to/mcp_bing_search.py
Tools
web_search(query: str, max_results: int = 8, fallback: bool = True) -> str
Search the web. Bing first; if fallback is enabled and Bing returns no relevant
results (no title/url contains a query token), retries with Qihoo 360, then Sogou.
cn_search(query: str, max_results: int = 8) -> str
Search Chinese engines directly (360 → Sogou). Use for fresh Chinese trending topics, campus/weibo news, or anything Bing indexes poorly.
How it works
MCP client (Reasonix / Claude Desktop / ...)
↕ stdio + JSON-RPC
mcp_bing_search.py (MCP server)
↕ HTTPS (plain HTTP GET, browser User-Agent)
cn.bing.com → www.so.com → www.sogou.com
- Request —
httpxGETshttps://cn.bing.com/search?q=...with a desktop browser User-Agent. - Parse —
lxmlXPath extractstitle / url / snippetfromli.b_algonodes. - Relevance check — if no result title/url contains any query token (e.g. "本地大模型", "部署教程"), the result set is considered irrelevant.
- Fallback — on empty/irrelevant Bing results, tries 360 → Sogou and uses the first engine with relevant results.
- Link cleanup — redirect links (
so.com/link?m=...,/link?url=...) are resolved once more to their real destination (Location header orwindow.location.replace(...)).
Known limitations
- Scraping depends on the engines' HTML structure; a redesign may break parsing.
- No key = no SLA; very frequent calls may be rate-limited.
- Bing's coverage of fresh Chinese social-media topics is weak — use
fallbackorcn_searchfor those. - Baidu is excluded on purpose: it aggressively captchas automated requests.
- ToS disclaimer: this project works by parsing public search-result pages. It is provided for personal / educational use and does not claim to comply with the terms of service of Bing, Qihoo 360, or Sogou. Scraping may violate those terms; automated access may be throttled or blocked. Use at your own risk, and consider the official Search APIs for production use.
License
MIT © Quqing-future
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。