返回 MCP 目录
public公开dns本地运行

Memos-Py模型上下文协议工具

一个Python包,它通过模型上下文协议接口使大型语言模型能够与Memos服务器交互,从而实现备忘录的搜索、创建、检索和管理。

article

README

MseeP.ai Security Assessment Badge

MCP Server Memos 📝

PyPI version Python Version License smithery badge

A Python package that provides LLM models with the ability to interact with Memos server through the MCP (Model Context Protocol) interface.

🚀 Features

  • 🔍 Search memos with keywords
  • ✨ Create new memos with customizable visibility
  • 📖 Retrieve memo content by ID
  • 🏷️ List and manage memo tags
  • 🔐 Secure authentication using access tokens

🛠️ Usage

You can include this package in your config file as bellow, just as you use other Python MCP plugins.

{
  ...,
  "mcpServers": {
    "fetch": { // other mcp servers
      "command": "uvx",
      "args": ["mcp-server-fetch"]
    },
    "memos": { // add this to your config
      "command": "uvx",
      "args": [
        "--prerelease=allow",
        "mcp-server-memos",
        "--host",
        "localhost",
        "--port",
        "5230",
        "--token",
        "your-access-token-here"
      ]
    }
  }
}
Other ways to use this package

📦 Installation

Installing via Smithery

To install mcp-server-memos-py for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @RyoJerryYu/mcp-server-memos-py --client claude

Installing Manually

pip install mcp-server-memos

Command Line

mcp-server-memos --host localhost --port 8080 --token YOUR_ACCESS_TOKEN

As a Library

from mcp_server_memos import Config, serve_stdio

config = Config(
    host="localhost",
    port=8080,
    token="YOUR_ACCESS_TOKEN"
)

await serve_stdio(config=config)

🔧 Configuration

| Parameter | Description | Default | |-----------|-------------|---------| | host | Memos server hostname | localhost | | port | Memos server port | 8080 | | token | Access token for authentication | "" |

🤝 Available Tools

This MCP server provides the following tools for interacting with Memos:

| Tool Name | Description | Parameters | |-----------|-------------|------------| | list_memo_tags | List all existing memo tags | - parent: The parent who owns the tags (format: memos/{id}, default: "memos/-")
- visibility: Tag visibility (PUBLIC/PROTECTED/PRIVATE, default: PRIVATE) | | search_memo | Search for memos using keywords | - key_word: The keywords to search for in memo content | | create_memo | Create a new memo | - content: The content of the memo
- visibility: Memo visibility (PUBLIC/PROTECTED/PRIVATE, default: PRIVATE) | | get_memo | Get a specific memo by ID | - name: The name/ID of the memo (format: memos/{id}) |

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

help

运行方式说明

cloud

托管运行

托管运行通常表示这个 MCP Server 由服务方环境承载,用户一般按页面提供的连接方式或授权流程接入,不需要在本地长期启动一个 MCP 进程

  1. 打开服务方连接页
  2. 完成授权或复制端点
  3. 在 MCP 客户端中连接
terminal

本地运行 / 其它方式

本地运行通常需要用户在自己的电脑或服务器上安装依赖,把 server_config 复制到 MCP 客户端,并按 env_schema 补齐环境变量、密钥或其它配置

  1. 复制 server_config
  2. 安装所需依赖
  3. 补齐环境变量后重启客户端