search-fetch-server MCP Server

search-fetch-server MCP Server

未知

简介

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

安装与设置

  1. 安装依赖:
npm install
  1. 构建服务器:
npm run build
  1. 开发模式(自动重建):
npm run watch
  1. 配置 Claude Desktop:

在配置文件中添加以下内容:

{
  "mcpServers": {
    "search-fetch-server": {
      "command": "node",
      "args": ["/path/to/search-fetch-server/build/index.js"]
    }
  }
}

配置文件位置:

  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json

核心功能

资源

  • 通过 note:// URI 访问笔记
  • 笔记包含标题、内容和元数据

工具

  • create_note: 创建新笔记(需要标题和内容)
  • fetch_url: 获取URL内容
    • 可选择使用Puppeteer转换为Markdown
  • duckduckgo_search: 执行网络搜索

提示

  • summarize_notes: 生成已存储笔记的摘要

调试

使用 MCP Inspector 进行调试:

npm run inspector

然后在浏览器中访问提供的URL来使用调试工具。