文档抓取MCP服务器
用于递归抓取网页内容的MCP服务器,支持同域链接探索。
快速入门
-
克隆仓库: git clone https://github.com/wolfyy970/docs-fetch-mcp.git cd docs-fetch-mcp
-
安装依赖: npm install
-
构建项目: npm run build
-
配置MCP设置(例如Claude客户端): 在配置文件中添加以下内容: { "mcpServers": { "docs-fetch": { "command": "node", "args": ["/path/to/docs-fetch-mcp/build/index.js"], "env": {"MCP_TRANSPORT": "pipe"} } } }
-
启动开发模式运行: npm run dev
工具使用方法:
调用 fetch_doc_content
接口,传入参数 url
和可选的 depth
,获取网页内容及其递归探索结果。