bookmarks-mcp
Allows AI agents to search, browse, add, and delete bookmarks in Google Chrome by reading and modifying the local Chrome Bookmarks file.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@bookmarks-mcpsearch my bookmarks for python tutorials"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Bookmarks MCP
一个基于 FastMCP 的浏览器书签管理服务器,支持 Chrome 和 Edge 浏览器。通过 MCP 协议,让 AI 助手(如 Claude)可以搜索、浏览、添加和删除书签。
⚠️ 隐私安全警告:本项目会直接读取和修改你本地的浏览器书签文件。使用前请务必阅读下方的隐私与安全章节。
功能
工具 | 功能 |
| 按关键词搜索书签(匹配标题和 URL,不区分大小写) |
| 列出所有书签文件夹及包含的书签数量 |
| 列出指定文件夹下的书签 |
| 获取最近添加的书签 |
| 添加一条新书签 |
| 删除一条书签 |
Related MCP server: Chrome MCP Server
快速开始
安装
cd chrome-bookmanager
pip install -e .运行
# stdio 模式(Claude Desktop 默认使用此模式)
bookmarks-mcp
# 开发调试
python -m bookmarks_mcp.serverClaude Desktop 配置
编辑 claude_desktop_config.json,添加以下配置:
{
"mcpServers": {
"bookmarks-mcp": {
"command": "python",
"args": ["-m", "bookmarks_mcp.server"]
}
}
}项目结构
bookmarks-mcp/
├── pyproject.toml
├── README.md
├── src/
│ └── bookmarks_mcp/
│ ├── __init__.py
│ ├── server.py # FastMCP 入口 + 工具注册
│ ├── bookmarks/
│ │ ├── __init__.py
│ │ ├── manager.py # 通用 CRUD 操作(外观模式)
│ │ └── models.py # Pydantic 数据模型
│ ├── browsers/
│ │ ├── __init__.py
│ │ ├── base.py # 浏览器适配器基类(抽象接口)
│ │ ├── chrome.py # Chrome 适配器
│ │ └── edge.py # Edge 适配器(继承 Chrome)
│ └── utils/
│ ├── __init__.py
│ └── paths.py # 跨平台路径工具
└── tests/
├── __init__.py
└── test_chrome.py设计思路
适配器模式:
base.py定义抽象接口,chrome.py和edge.py分别实现。Edge 继承 Chrome(同为 Chromium 内核,书签格式一致),只覆盖路径和类型。外观模式:
BookmarkManager对外暴露简洁的 CRUD 接口,内部委托给具体浏览器适配器。数据模型分离:所有数据结构用 Pydantic 定义,保证类型安全。
只读优先:先从只读工具(搜索、列出)开始,稳定后再加写入功能。
支持的浏览器
浏览器 | 支持平台 | 书签文件路径 |
Google Chrome | Windows / macOS / Linux |
|
Microsoft Edge | Windows / macOS / Linux |
|
⚠️ 隐私与安全
已知隐私风险
该工具在提供便利的同时,也引入了以下隐私风险,请在使用前充分了解:
读取本地书签数据:工具会直接读取 Chrome/Edge 的书签文件(
Bookmarks),其中包含你所有保存的 URL、标题、文件夹结构和添加时间。这些数据可能包含敏感信息(如内部系统地址、个人账户页面、私密网站等)。修改书签文件:
add_bookmark和remove_bookmark工具会直接写入你的书签文件,可能导致书签数据被意外修改或删除。数据可能被发送至第三方:作为 MCP 服务器,书签数据通过 AI 客户端(如 Claude Desktop)处理后,可能会被发送到第三方 AI 服务商的服务器。你的书签 URL 和标题可能被用于模型训练或分析。
无用户确认机制:当前版本在操作书签前不会弹出确认提示,所有操作在 AI 调用时立即执行。
无访问控制:所有工具方法均可被任意调用,没有权限分级或限制机制。
安全建议
仅用于个人学习环境:建议只在本地开发和学习场景下使用,不要在生产环境或共享机器上运行。
避免在 AI 会话中搜索敏感书签:不要通过此工具搜索或浏览包含敏感信息的书签。
定期检查变更:如果启用了写入功能,建议定期检查书签文件是否被意外修改。
使用专用浏览器配置文件:考虑为 AI 工具使用单独的浏览器配置文件,与日常工作环境隔离。
阅读 AI 客户端的隐私政策:了解与你使用的 AI 客户端(如 Claude)相关的数据处理政策。
数据流说明
本地浏览器书签文件 (Bookmarks JSON)
↓ 读取
Bookmarks MCP Server (本地进程)
↓ 通过 MCP 协议 (stdio)
AI 客户端 (如 Claude Desktop)
↓ 可能发送至云端
AI 服务提供商服务器开发
# 安装开发依赖
pip install -e ".[dev]"
# 运行测试
pytest tests/ -v
# 代码检查
ruff check src/许可
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityAmaintenanceAn MCP Server that enables AI assistants to interact with your local browsers.Last updated3,17754MIT
- Alicense-qualityDmaintenanceAn extension-based MCP server that enables AI assistants to control your browser, leveraging existing sessions and login states for automation and content analysis. It provides over 20 tools for semantic tab search, interactive element manipulation, and network monitoring directly within your daily Chrome environment.Last updatedMIT
- Alicense-quality-maintenanceAn extension-based MCP server that enables AI assistants to control your existing Chrome browser, leveraging your active login states and settings for automation. It provides over 20 tools for tasks like semantic tab search, screen capture, network monitoring, and direct element interaction.Last updated
- Alicense-qualityDmaintenanceA Model Context Protocol (MCP) server implementation that provides seamless integration between Chrome bookmarks and AI assistants. This server enables AI models to access, search, analyze, and manage Chrome bookmarks through a standardized protocol.Last updated1MIT
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lussey820/bookmarks-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server