MCP Server Memos 📝

MCP Server Memos 📝

一个Python包,通过MCP接口使LLM模型能够与MCP Server交互,用于搜索、创建、检索和管理备忘录。

PyPI 版本 Python 版本

简介

MCP 服务器备忘录是一个 Python 包,通过 MCP (模型上下文协议) 接口使 LLM 模型能够与 Memos 服务器交互。

安装

# 通过 pip 安装
pip install mcp-server-memos

# 或通过 Smithery 安装(适用于 Claude Desktop)
npx -y @smithery/cli install @RyoJerryYu/mcp-server-memos-py --client claude

基本配置

在配置文件中添加以下内容:

{
  "mcpServers": {
    "memos": {
      "command": "uvx",
      "args": [
        "--prerelease=allow",
        "mcp-server-memos",
        "--host", "localhost",
        "--port", "5230",
        "--token", "你的访问令牌"
      ]
    }
  }
}

主要功能

MCP 服务器备忘录提供以下工具:

  • 搜索备忘录search_memo(通过关键词搜索)
  • 创建备忘录create_memo(支持自定义可见性)
  • 获取备忘录get_memo(通过 ID)
  • 列出标签list_memo_tags(查看所有备忘标签)

使用示例

命令行使用

mcp-server-memos --host localhost --port 8080 --token 你的访问令牌

作为库使用

from mcp_server_memos import Config, serve_stdio

config = Config(
    host="localhost",
    port=8080,
    token="你的访问令牌"
)

await serve_stdio(config=config)

配置参数

参数描述默认值
hostMemos 服务器主机名localhost
portMemos 服务器端口8080
token访问令牌""

更多信息

详细文档和贡献指南请访问:GitHub 仓库