npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@chenyqthu/mcp-server-memos

v1.0.1

Published

Interact with Memos through MCP

Downloads

43

Readme

MCP Server Memos

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

功能特性

  • 🔍 搜索笔记
  • ✨ 创建新笔记(支持设置可见性)
  • 📖 获取笔记内容
  • ✏️ 更新笔记内容
  • 🔐 使用访问令牌进行安全认证

配置说明

环境变量

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

  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"
      }
    }
  }
}

安装和运行

  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)

注意事项

  • 请妥善保管你的访问令牌
  • 在生产环境中使用时,建议使用环境变量而不是命令行参数传递敏感信息