关于 AgentMash
AgentMash MCP 服务将从浏览器扩展同步的书签集中到一个资料库,供 AI Agent 只读检索。适合希望让 Agent 查询已保存内容、来源和收藏集的用户。
主要功能
- 01汇集多个平台的书签
- 02搜索保存内容
- 03查看单条保存的完整信息
- 04列出来源与收藏集
- 05只读访问
适用场景
- 01搜索此前保存的社交内容
- 02查看书签的文本、链接与媒体
- 03按平台查看保存内容及同步时间
- 04检索某个收藏集中的书签
MCP 相关
托管 MCP 服务通过 Streamable HTTP 暴露六种只读工具,使用 API key 进行身份验证。客户端连接后可搜索和读取 AgentMash 资料库。
配置
远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。
https://agentmash.ai/mcpclaude mcp add --transport http ai-agentmash-agentmash https://agentmash.ai/mcp{"mcpServers":{"ai-agentmash-agentmash":{"type":"http","url":"https://agentmash.ai/mcp"}}}在 Cursor 中打开{"servers":{"ai-agentmash-agentmash":{"type":"http","url":"https://agentmash.ai/mcp"}}}在 VS Code 中打开{"mcpServers":{"ai-agentmash-agentmash":{"type":"http","url":"https://agentmash.ai/mcp"}}}{"mcpServers":{"ai-agentmash-agentmash":{"serverUrl":"https://agentmash.ai/mcp"}}}命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。
https://agentmash.ai/mcp需要授权工具
详细介绍
原文在翻译后有更新,译文可能不是最新。
AgentMash MCP 服务
将所有书签汇集到一个资料库中。与 AI Agent 共享。
此仓库介绍托管的 AgentMash MCP 服务:如何将 AI Agent 连接到 AgentMash 资料库。
AgentMash 的功能
- 点击“同步”时,AgentMash Chrome 扩展会从 X、LinkedIn、Instagram 等平台导入你保存的内容。它不会在后台运行。
- 所有内容都会汇集到一个资料库中。
- 你的 AI Agent 通过 MCP 读取该资料库,并使用只读工具。
服务
- URL:
https://agentmash.ai/mcp - 传输方式:Streamable HTTP
身份验证
AgentMash 使用 API 密钥,而非 OAuth。
- 在 AgentMash 中打开 Agents & API 页面,然后点击 Create API key。
- 立即复制密钥。密钥以
am_live_开头,且只会显示一次。 - 将其作为请求头发送:
Authorization: Bearer am_live_YOUR_KEY
对于无法设置请求头的客户端,可改为将 ?token=am_live_YOUR_KEY 附加到 URL。
设置
将每个代码片段中的 am_live_YOUR_KEY 替换为你自己的密钥。
Claude Code
claude mcp add --transport http agentmash https://agentmash.ai/mcp --header "Authorization: Bearer am_live_YOUR_KEY"
Claude Desktop
Claude Desktop 通过 mcp-remote 桥接程序连接,因此你需要安装 Node(包含 npx)。将以下内容添加到 claude_desktop_config.json:
{
"mcpServers": {
"agentmash": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://agentmash.ai/mcp",
"--header",
"Authorization: Bearer am_live_YOUR_KEY"
]
}
}
}
Cursor
将以下内容添加到 ~/.cursor/mcp.json:
{
"mcpServers": {
"agentmash": {
"url": "https://agentmash.ai/mcp",
"headers": {
"Authorization": "Bearer am_live_YOUR_KEY"
}
}
}
}
Cline
在 Cline 中,打开 MCP Servers,然后依次选择 Configure 和 Configure MCP Servers,并将以下内容添加到 cline_mcp_settings.json。设置 "type": "streamableHttp":如果不设置,Cline 会回退到旧版 SSE 传输方式,导致无法连接。
{
"mcpServers": {
"agentmash": {
"type": "streamableHttp",
"url": "https://agentmash.ai/mcp",
"headers": {
"Authorization": "Bearer am_live_YOUR_KEY"
},
"disabled": false,
"autoApprove": []
}
}
}
也可以使用 Cline CLI:
cline mcp add agentmash https://agentmash.ai/mcp --transport http --header "Authorization: Bearer am_live_YOUR_KEY" --yes
Codex
将以下内容添加到 ~/.codex/config.toml:
[mcp_servers.agentmash]
url = "https://agentmash.ai/mcp"
bearer_token_env_var = "AGENTMASH_API_KEY"
然后,在启动 Codex 前于 shell 中设置密钥:export AGENTMASH_API_KEY=am_live_YOUR_KEY。Codex 会从该环境变量读取 bearer token。
工具
全部六种工具均为只读。
| 工具 | 功能 |
|---|---|
search_saves | 搜索你保存的内容。省略查询条件即可按最新顺序列出保存内容。 |
get_save | 完整获取一条保存内容:文本、统计数据、链接、媒体和合集。 |
recent_saves | 列出最近几天保存的内容。 |
list_sources | 列出资料库中的平台,以及每个平台的保存内容数量和上次同步时间。 |
list_collections | 列出你的合集及其名称、平台和保存内容数量。 |
get_collection_saves | 获取一个合集中的保存内容。 |
撤销密钥
在 AgentMash 中打开 Agents & API 页面,然后点击密钥旁的 Revoke。使用该密钥的 Agent 会在约一分钟内停止工作。
链接
- AgentMash:https://agentmash.ai
- MCP 设置指南:https://agentmash.ai/mcp-setup
关于此仓库
AgentMash 应用的源代码不在此仓库中。此仓库仅介绍托管的 MCP 服务。
AI 编码 Agent 请参阅 llms-install.md。
支持
发送邮件至 [email protected]。
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。