{"_id":"@chenyqthu/mcp-server-memos","_rev":"2-5fd85fd45e104754a49af7c61ff3d6ba","name":"@chenyqthu/mcp-server-memos","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@chenyqthu/mcp-server-memos","version":"1.0.0","_id":"@chenyqthu/mcp-server-memos@1.0.0","maintainers":[{"name":"lucienchen","email":"chenyq.thu@gmail.com"}],"homepage":"https://github.com/chenyqthu/mcp-server-memos","bin":{"mcp-server-memos":"build/index.js"},"dist":{"shasum":"dbba4c5301cbe1ee1685a05bb270f03607942026","tarball":"https://registry.npmjs.org/@chenyqthu/mcp-server-memos/-/mcp-server-memos-1.0.0.tgz","fileCount":4,"integrity":"sha512-peODNBRuCstGiak1bK58OFBfws8Co9Cyz8sxwSnBbla8auPyWaHgDCtfUNwY5PXSqNBVTIMSHUNh3tlFV/AL5g==","signatures":[{"sig":"MEYCIQD1S5b4edPqj5GWyChqGCI+YVmk83+oLJ0zB4UKPkFGTQIhAIflc+UDIo1WIcE7qODJgraQzP++Q1wDzp5rf76wpAO5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":12617},"type":"module","gitHead":"23b2f429425a87cf964d54057fc23a7af91c33ae","private":false,"scripts":{"build":"tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"","watch":"tsc --watch","prepare":"npm run build","inspector":"npx @modelcontextprotocol/inspector build/index.js"},"_npmUser":{"name":"lucienchen","email":"chenyq.thu@gmail.com"},"_npmVersion":"10.5.2","description":"Interact with Memos through MCP","directories":{},"_nodeVersion":"20.13.1","dependencies":{"node-fetch":"^3.3.0","@modelcontextprotocol/sdk":"0.6.0"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.3.3","@types/node":"^20.11.24"},"_npmOperationalInternal":{"tmp":"tmp/mcp-server-memos_1.0.0_1743586582415_0.4234036089123667","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@chenyqthu/mcp-server-memos","version":"1.0.1","description":"Interact with Memos through MCP","private":false,"type":"module","homepage":"https://github.com/chenyqthu/mcp-server-memos","bin":{"mcp-server-memos":"build/index.js"},"scripts":{"build":"tsc && node -e \"require('fs').chmodSync('build/index.js', '755')\"","prepare":"npm run build","watch":"tsc --watch","inspector":"npx @modelcontextprotocol/inspector build/index.js"},"dependencies":{"@modelcontextprotocol/sdk":"0.6.0","node-fetch":"^3.3.0"},"devDependencies":{"@types/node":"^20.11.24","typescript":"^5.3.3"},"_id":"@chenyqthu/mcp-server-memos@1.0.1","gitHead":"ba60370ef81a1c041fa19006592c4cf45b5465e8","_nodeVersion":"20.13.1","_npmVersion":"10.5.2","dist":{"integrity":"sha512-A2SfYaCewI4P4YVL8YS5+uHPuJva041n6vGQu1MfH2h9m7LI0EsnHNc2cuPPXFtaqtQWnNEJOf91gHJTo0TWCg==","shasum":"18b71fcc407227cc9fda7a5c59e6a6bf0bbeae98","tarball":"https://registry.npmjs.org/@chenyqthu/mcp-server-memos/-/mcp-server-memos-1.0.1.tgz","fileCount":4,"unpackedSize":12608,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBy4XKpPcqXnvvyBBq/v9lBXu5QVyh3sC1bnTYNSimkAAiBFDp9CuDJ9t3k2JGkLRQnB/89eROiJEchWyF+0oBQkAQ=="}]},"_npmUser":{"name":"lucienchen","email":"chenyq.thu@gmail.com"},"directories":{},"maintainers":[{"name":"lucienchen","email":"chenyq.thu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/mcp-server-memos_1.0.1_1743587145407_0.004461215059972323"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-02T09:36:22.342Z","modified":"2025-04-02T09:45:45.772Z","1.0.0":"2025-04-02T09:36:22.564Z","1.0.1":"2025-04-02T09:45:45.610Z"},"homepage":"https://github.com/chenyqthu/mcp-server-memos","description":"Interact with Memos through MCP","maintainers":[{"name":"lucienchen","email":"chenyq.thu@gmail.com"}],"readme":"# MCP Server Memos\n\n这是一个 MCP 服务器,用于与 [Memos](https://github.com/usememos/memos) 笔记服务进行交互。通过这个服务器,你可以在任何支持 MCP 协议的客户端中使用自然语言与 Memos 进行交互。\n\n## 功能特性\n\n- 🔍 搜索笔记\n- ✨ 创建新笔记(支持设置可见性)\n- 📖 获取笔记内容\n- ✏️ 更新笔记内容\n- 🔐 使用访问令牌进行安全认证\n\n## 配置说明\n\n### 环境变量\n\n你可以通过以下两种方式之一配置服务器:\n\n1. 环境变量:\n```bash\nMEMOS_URL=https://your-memos-server  # Memos 服务器地址\nMEMOS_TOKEN=your_access_token        # 访问令牌\n```\n\n2. 命令行参数:\n```bash\n--memos_url=https://your-memos-server\n--memos_token=your_access_token\n```\n\n### 在 Cursor 中配置\n\n在 Cursor 的配置文件中(通常位于 `~/.cursor/mcp.json`)添加以下配置:\n\n```json\n{\n  \"mcpServers\": {\n    \"mcp-server-memos\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\",\"@chenyqthu/mcp-server-memos\"],\n      \"env\": {\n        \"MEMOS_URL\": \"https://your-memos-server\",\n        \"MEMOS_TOKEN\": \"your_access_token\"\n      }\n    }\n  }\n}\n```\n\n## 安装和运行\n\n1. 克隆仓库:\n```bash\ngit clone https://github.com/your-username/mcp-server-memos.git\ncd mcp-server-memos\n```\n\n2. 安装依赖:\n```bash\nnpm install\n```\n\n3. 创建 `.env` 文件:\n```bash\nMEMOS_URL=https://your-memos-server\nMEMOS_TOKEN=your_access_token\n```\n\n4. 运行服务:\n```bash\nnpm run inspector\n```\n\n## 可用工具\n\n服务器提供以下工具:\n\n1. `search_memo` - 搜索笔记\n   - key_word: 搜索关键词\n\n2. `create_memo` - 创建新笔记\n   - content: 笔记内容\n   - visibility: 笔记可见性 (PUBLIC/PROTECTED/PRIVATE, 默认: PRIVATE)\n\n3. `get_memo` - 获取指定笔记\n   - name: 笔记ID (格式: memos/{id})\n\n4. `update_memo` - 更新指定笔记\n   - name: 笔记ID (格式: memos/{id})\n   - content: 新的笔记内容\n\n## 使用示例\n\n在 Cursor 中,你可以这样使用:\n\n1. 创建笔记:\n```\n帮我记录一条笔记: 今天学习了 MCP Server 开发\n```\n\n2. 搜索笔记:\n```\n搜索包含 \"MCP\" 关键词的笔记\n```\n\n## 开发说明\n\n- 使用 TypeScript 开发\n- 支持热重载开发 (npm run watch)\n\n## 注意事项\n\n- 请妥善保管你的访问令牌\n- 在生产环境中使用时,建议使用环境变量而不是命令行参数传递敏感信息\n","readmeFilename":"README.md"}