CC Web MCP logo

CC Web MCP

Community
JcDizzy

面向 Claude Code 第三方模型后端的轻量本地 WebSearch/WebFetch fallback MCP。A lightweight, local-first WebSearch/WebFetch fallback MCP for Claude Code when using third-party Anthropic-compatible models such as DeepSeek, Qwen or Kimi.

PublisherJcDizzy
RepositoryCC-Web-MCP
LanguagePython
Forks
5
Stars
64
Available tools
0
Transport typestdio
LicenseMIT
Links
  • Connect tools to AI workflows

    CC Web MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    64 stars and 5 forks from the linked repository.

CC Web MCP

CC Web MCP 是一个面向 Claude Code 第三方模型接入场景的轻量网页搜索和抓取 MCP。

它的主要用途是:当 Claude Code 接入 DeepSeek、Qwen、Kimi 等没有官方 WebSearch / WebFetch 能力的模型时,补上可访问国内外公开网页的只读工具链。官方 Claude 模型仍建议使用 Claude Code 原生搜索能力。

功能概览

  • web_search:按配置的搜索后端顺序搜索公开网页,默认 duckduckgo -> bing -> bing_cn,可选 searxng / mojeek / custom:<name>。
  • fetch_url:抓取 http/https 页面并转为 Markdown,支持 start_index 分页读取。
  • research_brief:先搜索,再抓取少量来源的短内容,减少上下文占用。
  • health_check:检查依赖、配置和网络连通性。
  • 模型路由:通过 allowed_model_patterns、启动指令和 hook 守卫,让 DeepSeek、Qwen、Kimi 等第三方模型优先走 cc-web,官方 Claude 默认继续走原生 WebSearch/WebFetch。
  • 安全边界:默认禁止抓取本机、内网、链路本地地址和云 metadata 地址,并检查 DNS 解析和重定向后的最终 URL。

快速开始

普通用户推荐直接用 uvx 从 PyPI 运行,不需要克隆仓库,也不需要提前创建虚拟环境:

powershell
uvx cc-web-mcp init --runner uvx
uvx cc-web-mcp doctor

--runner uvx 是推荐写法:它会让 Claude Code 的 MCP server 配置长期指向稳定的 uvx cc-web-mcp@<当前版本>,而不是某个临时缓存目录或本地开发环境里的 Python。hook 守卫会单独使用 exec form 的 uvx --from cc-web-mcp@<当前版本> cc-web-mcp hook-guard,便于可靠传递 --state / --config 等参数。

如果之前已经用普通 pip、editable install 或旧的 uv 缓存路径初始化过,切换到 uvx 后请重新运行:

powershell
uvx cc-web-mcp init --runner uvx --force

首次初始化入口是 init 子命令。普通用户建议始终通过 uvx cc-web-mcp init --runner uvx 调用;只有 pipx、普通 pip 或 editable install 且命令已在 PATH 中时,才直接运行 cc-web-mcp init。初始化会:

  • 创建用户配置文件。
  • 注册 Claude Code 用户级 stdio MCP。普通 Python 安装会注册为当前 Python 的 -m cc_web_mcp;--runner uvx 会注册为 uvx cc-web-mcp@<当前版本>。
  • 向用户级 ~\.claude\CLAUDE.md 写入第三方模型路由提示。
  • 向用户级 ~\.claude\settings.json 合并 hook 守卫,并在写入前备份。

开发者需要改源码时,再使用 editable install:

powershell
git clone https://github.com/JcDizzy/CC-Web-MCP.git <安装目录>
cd <安装目录>
py -3.11 -m pip install -e .
py -3.11 -m cc_web_mcp init
py -3.11 -m cc_web_mcp doctor

pipx 或普通 pip 也可以用,但不作为首选路径;如果 pip install 提示 cc-web-mcp.exe 所在目录不在 PATH,可以继续使用 py -3.11 -m cc_web_mcp ... 形式运行。

如果需要让 Claude Code 中长期注册的 uvx 命令支持 PDF 提取,初始化时加 --with-pdf:

powershell
uvx cc-web-mcp init --runner uvx --with-pdf --force

先看计划、不写文件:

powershell
uvx cc-web-mcp init --runner uvx --dry-run

非 uvx 安装且 cc-web-mcp 已在 PATH 中时,也可以用本地命令预览:

powershell
cc-web-mcp init --dry-run

如果只想初始化配置文件,普通用户继续使用 uvx:

powershell
uvx cc-web-mcp config init
uvx cc-web-mcp config path

非 uvx 安装且 cc-web-mcp 已在 PATH 中时,也可以写成:

powershell
cc-web-mcp config init
cc-web-mcp config path

基础配置

默认配置路径:

  • Windows:%APPDATA%\cc-web-mcp\config.json
  • macOS/Linux:~/.config/cc-web-mcp/config.json

常用调整:

  • 同时适配更多第三方模型:"allowed_model_patterns": ["deepseek", "qwen", "kimi"]
  • DuckDuckGo 不稳定时只使用国际版 Bing:"search_providers": ["bing"]
  • 增加 Mojeek 作为轻量 fallback:"search_providers": ["duckduckgo", "bing", "mojeek", "bing_cn"]
  • 开启元搜索式并发聚合:"search_parallel_enabled": true, "search_parallel_max_backends": 2
  • 接入第三方或自建搜索 API:在 search_providers 中加入 custom:<name>,并在 custom_search_apis 里配置 URL、headers、params 和结果字段路径。
  • 调试自定义搜索 API:cc-web-mcp config test-search custom:zhihu "deepseek" --max-results 3
  • 抓取受限站点时定向使用搜索 API:开启 enable_fetch_search_fallback,并把 fetch_search_fallback_providers 指到 custom:<name>。
  • 某个第三方 API 的原生 Web 工具已经可用时:"block_native_web_for_allowed_models": false
  • 明确允许官方 Claude 调用 cc-web fetch_url:"allow_fetch_url_for_claude": true

完整配置说明见 docs/configuration.md。

第一次验证建议

安装完成后,建议先用第三方模型在 Claude Code 里做一次小范围联网任务:

text
使用 cc-web 查询 “Claude Code MCP PreToolUse hook permissionDecision”,先用 research_brief 获取资料概览,再总结当前推荐写法。

如果模型仍尝试调用原生 WebSearch,先检查 ~\.claude\CLAUDE.md。如果模型尝试调用原生 WebFetch 并被拦截,说明 hook 已生效;模型应根据提示改用 cc-web fetch_url。

开发与测试

powershell
py -3.11 -m pip install -e .
py -3.11 -m pytest .\tests -q

构建发布包:

powershell
py -3.11 -m build

文档

重要边界

  • bing_cn 是实用降级,不是全球搜索的等价替代。
  • mojeek 使用公开 HTML 搜索入口,适合轻量 fallback,不等价于付费搜索 API。
  • WebSearch 在部分第三方 Anthropic-compatible API 中会在服务端直接报错,Claude Code 本地 hook 拦截不到;需要依赖 CLAUDE.md 启动指令提前绕开。
  • 当前不包含 Playwright 或浏览器自动化,不处理重 JavaScript、登录墙、验证码页面。
  • 启用 Jina Reader fallback 时,目标 URL 会经过第三方服务;不要用于私密链接或内网页面。

Use CC Web MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once CC Web MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add CC Web MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the CC Web MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "cc-web-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the CC Web MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the CC Web MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use CC Web MCP to help me with this task?
CC Web MCP
Sure. I read it.
Here is what I found using CC Web MCP.

Frequently asked questions

What is the CC Web MCP MCP server used for?

CC Web MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use CC Web MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use CC Web MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use CC Web MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With CC Web MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect CC Web MCP MCP to TypingMind?

CC Web MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does CC Web MCP MCP provide in TypingMind?

CC Web MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use CC Web MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If CC Web MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇