Skip to main content
Glama
mcp-server-memos

mcp-server-memos

by ChenyqThu

MCP Server Memos

这是一个 MCP 服务器,用于与 Memos 笔记服务进行交互。通过这个服务器,你可以在任何支持 MCP 协议的客户端中使用自然语言与 Memos 进行交互。

功能特性

  • 🔍 搜索笔记

  • ✨ 创建新笔记(支持设置可见性)

  • 📖 获取笔记内容

  • ✏️ 更新笔记内容

  • 🔐 使用访问令牌进行安全认证

Related MCP server: Memos MCP Server

配置说明

环境变量

你可以通过以下两种方式之一配置服务器:

  1. 环境变量:

MEMOS_URL=https://your-memos-server  # Memos 服务器地址
MEMOS_TOKEN=your_access_token        # 访问令牌
  1. 命令行参数:

--memos_url=https://your-memos-server
--memos_token=your_access_token

在 Cursor 中配置

在 Cursor 的配置文件中(通常位于 ~/.cursor/mcp.json)添加以下配置:

{
  "mcpServers": {
    "mcp-server-memos": {
      "command": "npx",
      "args": ["-y","@chenyqthu/mcp-server-memos"],
      "env": {
        "MEMOS_URL": "https://your-memos-server",
        "MEMOS_TOKEN": "your_access_token"
      }
    }
  }
}

使用 MCP.so 托管版本

本服务已支持托管在 MCP.so 上,你可以直接使用托管版本而无需在本地配置和运行服务器。

在使用 MCP.so 托管版本时,只需提供以下参数:

  • MEMOS_URL: 你的 Memos 服务器地址

  • MEMOS_TOKEN: 你的 Memos 访问令牌

安装和运行

  1. 克隆仓库:

git clone https://github.com/your-username/mcp-server-memos.git
cd mcp-server-memos
  1. 安装依赖:

npm install
  1. 创建 .env 文件:

MEMOS_URL=https://your-memos-server
MEMOS_TOKEN=your_access_token
  1. 运行服务:

npm run inspector

可用工具

服务器提供以下工具:

  1. search_memo - 搜索笔记

    • key_word: 搜索关键词

  2. create_memo - 创建新笔记

    • content: 笔记内容

    • visibility: 笔记可见性 (PUBLIC/PROTECTED/PRIVATE, 默认: PRIVATE)

  3. get_memo - 获取指定笔记

    • name: 笔记ID (格式: memos/{id})

  4. update_memo - 更新指定笔记

    • name: 笔记ID (格式: memos/{id})

    • content: 新的笔记内容

使用示例

在 Cursor 中,你可以这样使用:

  1. 创建笔记:

帮我记录一条笔记: 今天学习了 MCP Server 开发
  1. 搜索笔记:

搜索包含 "MCP" 关键词的笔记

开发说明

  • 使用 TypeScript 开发

  • 支持热重载开发 (npm run watch)

托管在 MCP.so

该项目已配置为可以托管在 MCP.so 平台上。通过托管,你可以:

  • 无需本地安装和配置

  • 稳定的服务可用性

  • 集成到 MCP Playground 中

托管步骤

  1. 确保你的代码已托管在 GitHub 上并使用商业友好的开源许可证(MIT、Apache 等)

  2. 确保代码不依赖于读取本地数据(如文件、本地数据库等)

  3. 通过 MCP.so 平台提交你的服务器

  4. 审核通过后,你的服务器将显示在 MCP Playground 中

注意事项

  • 请妥善保管你的访问令牌

  • 在生产环境中使用时,建议使用环境变量而不是命令行参数传递敏感信息

Available Tools

4 tools
create_memoB

Create a new memo

Inputs: content (required), visibility.

get_memoB

Get a specific memo by ID

Inputs: name (required).

search_memoB

Search for memos using keywords

Inputs: key_word (required).

update_memoC

Update a specific memo by ID

Inputs: name (required), content (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool has a unique function (create, get, search, update) with no overlaps, making selection unambiguous.

    Naming Consistency5/5

    All tools follow the same verb_noun pattern (create_memo, get_memo, search_memo, update_memo), ensuring predictable naming.

    Tool Count5/5

    With 4 tools, the set is concise and well-scoped for basic memo management, fitting the typical range for such a server.

    Completeness2/5

    The set covers create, read, search, and update but lacks a delete tool, which is a notable gap for full lifecycle management.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to interact with Memos instances for personal note-taking and knowledge management. Supports creating, searching, updating, and organizing memos with tags, dates, and visibility settings through natural language.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Connects to Memos note-taking service to read, write, search, filter, and manage memos, including creating comments and managing users.
      8
      1
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI assistants to interact with Memos instances, supporting multi-instance connections, note management, tags, attachments, and shortcuts.
      16
      19 npm
      2
      MIT