Link MCP is a Model Context Protocol server for Cursor IDE that provides intelligent web documentation fetching and conversation memory management.
Fetch Web Documentation ( Automatically retrieve and extract structured content from any webpage, including UI components, API interfaces, code examples, page titles, and related links. Supports configurable crawling depth (0-3 levels) and content focusing via CSS selectors.
Save Conversation Memories ( Intelligently analyze, summarize, and save conversation history, key discussion points, code examples, and technical decisions as well-formatted Markdown files in the project's .cursor
directory. Allows categorization and tagging for better organization and team sharing.
Retrieve Cursor Memories ( Search and access previously saved conversation summaries and documentation by category or tags, with optional result limiting for easy recall of important information.
Enables fetching and analyzing Ant Design component documentation, extracting component APIs, usage examples, and implementation details from the official documentation site
Provides capability to fetch and extract content from Baidu web pages for documentation and analysis purposes
Supports CSS selector-based content extraction from web pages, allowing targeted scraping of specific elements and sections
Integrates with GitHub for issue reporting and project collaboration, as mentioned in the documentation for support purposes
Generates and manages structured Markdown files for conversation summaries, technical documentation, and project notes with proper formatting
Distributed and installed through npm package registry, supporting global installation and npx execution for easy deployment
Enables fetching and analyzing React documentation, tutorials, and component examples from the official React documentation site
🚀 Link MCP - 智能文档获取与记忆管理
一个功能强大的 Model Context Protocol (MCP) 服务器,为 Cursor IDE 提供智能网页文档抓取和对话记忆管理功能。
✨ 核心功能
🔗 智能文档获取
- 网页内容抓取 - 自动获取任意网页的结构化内容
- 组件识别 - 智能识别 UI 组件、API 接口和代码示例
- 深度爬取 - 支持多层级链接爬取(0-3层可配置)
- 内容解析 - 提取标题、代码块、API 文档和相关链接
🧠 AI智能记忆管理
- 一键保存 - 用户一句话触发,AI自动总结并保存对话
- 智能分析 - 自动提取关键讨论点、代码示例、技术决策
- 工作区存储 - 保存到当前项目的
.cursor
目录,便于团队共享 - 结构化输出 - 生成格式化的 Markdown 文件,便于 Cursor AI 理解和引用
📦 安装配置
方法一:🌟 NPX 直接使用(推荐)
在 Cursor 中配置 MCP,将以下配置添加到 Cursor 的设置中:
- 打开 Cursor,按
Ctrl/Cmd + ,
进入设置 - 搜索 "MCP" 或找到 "Model Context Protocol" 部分
- 添加以下配置:
就这么简单! 配置完成后重启 Cursor 即可使用。
方法二:📦 NPM 安装后配置
如果你想先通过npm安装包,然后配置到cursor的MCP中,可以按以下步骤操作:
1. 配置npm代理源(如果使用内部npm源)
2. 安装包到全局
3. 配置 Cursor MCP
在 Cursor 的 MCP 配置中添加以下内容:
如果使用 Cursor 设置界面:
- 打开 Cursor,按
Ctrl/Cmd + ,
进入设置 - 搜索 "MCP" 或找到 "Model Context Protocol" 部分
- 添加以下配置:
如果使用 mcp.json 配置文件:
在项目根目录或 Cursor 配置目录创建 mcp.json
文件:
注意: 无论安装的是 link-mcp
还是 link-mcp2
,MCP配置中的命令都是 link-mcp
,因为这是在 package.json 中 bin
字段定义的可执行文件名。
4. 重启 Cursor
配置完成后重启 Cursor 即可使用。
🎮 立即开始
1. 重启 Cursor
配置完成后,重启 Cursor 以加载新的 MCP 服务器。
2. 验证工具
重启后,你将拥有 2 个强大的新工具:
fetch_link_documentation
- 获取网页文档save_cursor_memory
- AI智能保存对话记忆
3. 首次测试
📖 工具使用指南
🔗 网页文档获取 (fetch_link_documentation
)
参数说明:
url
(必需) - 目标网页链接selector
(可选) - CSS选择器,默认 "body"depth
(可选) - 爬取深度 0-3,默认 1
使用示例:
返回内容包括:
- 📄 页面标题和结构化内容
- 🧩 识别的组件和 UI 元素
- 🔌 提取的 API 接口和函数
- 💡 代码示例和使用案例
- 🔗 相关文档链接
🧠 智能保存对话记忆 (save_cursor_memory
)
核心特点:
- AI自动总结 - 智能分析整个对话历史
- 无感保存 - 用户只需一句话触发
- 结构化输出 - 自动格式化为清晰的markdown
- 工作区存储 - 保存到当前项目的
.cursor
目录
使用方式: 用户只需要说:
AI会自动完成:(开发中)
- 🧠 智能分析整个对话内容
- 📋 提取关键讨论点、代码示例、技术决策
- 📝 格式化为结构化markdown文档
- 💾 保存到
.cursor/时间戳_主题.md
- ✅ 告知用户保存位置和文件名
生成的文件包含:
- 对话主题概述
- 关键技术讨论点
- 代码示例和解决方案
- 重要决策和待办事项
- 完整的上下文信息
🎨 实际应用场景
📚 学习新技术栈
🧩 组件库研究
💬 技术讨论记录
🔍 故障排除
❌ 重启后看不到 MCP 工具
解决方法:
- 检查 Cursor MCP 配置是否正确
- 确保网络连接正常(需要从 npm 下载)
- 完全关闭并重启 Cursor
- 查看 Cursor 的开发者工具是否有错误信息
❌ 网页抓取返回空内容
可能原因:
- 目标网站有反爬虫机制
- 网络连接问题
- URL 格式错误
解决方法:
- 检查 URL 格式(需包含 http:// 或 https://)
- 尝试不同的网站测试
- 使用简单的静态网站进行测试
❌ 对话记忆无法保存
可能原因:
- 当前工作目录没有写权限
- 磁盘空间不足
.cursor
目录创建失败
解决方法:
- 检查当前工作目录的写权限
- 确保磁盘有足够空间
- 手动创建
.cursor
目录测试 - 查看是否有防病毒软件阻止文件创建
📄 许可证
MIT License
🎉 开始使用
现在就可以开始:
- 配置 Cursor: 添加上面的 MCP 配置
- 重启 Cursor
- 测试功能:
- 使用
fetch_link_documentation
获取网页文档 - 说"保存这次对话"测试智能记忆功能
- 使用
祝你使用愉快!🚀
如需帮助,请在 GitHub 提交 Issue。
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Enables intelligent web document scraping and conversation memory management for Cursor IDE. Supports multi-level link crawling, automatic content extraction, and organized storage of conversations and technical documentation.