search-fetch-server MCP Server

search-fetch-server MCP Server

镜像

简介

search-fetch-server 是一个 TypeScript 实现的 MCP 服务器,提供笔记管理、URL 内容获取和搜索功能。

主要功能

  • 笔记管理:通过 note:// URI 创建和访问文本笔记
  • URL 获取:从网页提取内容,可选转换为 Markdown
  • 搜索功能:执行 DuckDuckGo 搜索
  • 笔记摘要:生成所有保存笔记的摘要

安装与配置

  1. 安装依赖:

    npm install
    
  2. 构建服务器:

    npm run build
    
  3. 配置 Claude Desktop:

    添加以下配置到 Claude Desktop 配置文件:

    • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%/Claude/claude_desktop_config.json
    {
      "mcpServers": {
        "search-fetch-server": {
          "command": "node",
          "args": ["/path/to/search-fetch-server/build/index.js"]
        }
      }
    }
    

使用方法

服务器提供以下核心工具:

  • create_note:创建新笔记(参数:标题和内容)
  • fetch_url:获取网页内容(参数:URL,可选 use_puppeteer)
  • duckduckgo_search:执行搜索(参数:查询字符串)
  • summarize_notes:生成笔记摘要

开发与调试

开发模式(自动重建):

npm run watch

使用 MCP Inspector 调试:

npm run inspector

通过浏览器访问提供的 URL 以使用调试工具。