memos-mcp-server
Enables AI assistants to create, read, update, delete, and list memos via the MCP protocol.
README
Memos MCP Server
A FastMCP-based MCP (Model Context Protocol) server implementation for Memos, allowing AI assistants to interact with the Memos note-taking system through the MCP protocol.
Features
- 📝 Create Memos - Create new memos with Markdown support
- 📖 Read Memos - Get detailed information about specific memos
- ✏️ Update Memos - Modify existing memo content and properties
- 🗑️ Delete Memos - Remove specified memos
- 📋 Get Recent Memos - Retrieve a list of recent memos
- 🔐 Authentication - Optional static token verification support
- 🐳 Docker Support - Docker and Docker Compose configurations provided
Environment Variables
Before starting the service, you need to set the following environment variables:
Required Environment Variables
| Variable Name | Description | Example |
|---|---|---|
MEMOS_SERVER_URL |
URL of the Memos server | https://memos.example.com |
MEMOS_API_KEY |
Memos API key | your-api-key-here |
Optional Environment Variables
| Variable Name | Description | Default | Example |
|---|---|---|---|
MEMOS_MCP_AUTH_TOKEN |
MCP server authentication token | None | abcdefghijklmnopqrstuvwxyz |
Quick Start
Local Development
-
Clone the repository
git clone <repository-url> cd memos-mcp -
Install dependencies
uv sync -
Set environment variables
export MEMOS_SERVER_URL="https://your-memos-server.com" export MEMOS_API_KEY="your-api-key" # Optional: Set authentication token export MEMOS_MCP_AUTH_TOKEN="your-auth-token" -
Start the service
uv run main.py
The service will start at http://localhost:8000 with the MCP endpoint at http://localhost:8000/mcp.
Using Docker
-
Using Docker Compose (Recommended)
# Set environment variables export MEMOS_SERVER_URL="https://your-memos-server.com" export MEMOS_API_KEY="your-api-key" # Start the service docker-compose up -d -
Using Docker directly
docker build -t memos-mcp . docker run -p 8000:8000 \ -e MEMOS_SERVER_URL="https://your-memos-server.com" \ -e MEMOS_API_KEY="your-api-key" \ memos-mcp
Connection
- Protocol: HTTP
- Endpoint:
http://localhost:8000/mcp - Port: 8000
Available Tools and Resources
Tools
create_memo
Create a new memo
- Parameters:
content(string): Memo content with Markdown supportvisibility(string, optional): Visibility setting, defaults toVISIBILITY_UNSPECIFIEDPRIVATE: PrivatePROTECTED: ProtectedPUBLIC: PublicVISIBILITY_UNSPECIFIED: Unspecified
update_memo
Update an existing memo
- Parameters:
memo_resource_name(string): Memo resource name (e.g.,memos/123or123)content(string, optional): New memo contentstate(string, optional): Memo stateSTATE_UNSPECIFIED: UnspecifiedACTIVE: ActiveARCHIVED: Archived
visibility(string, optional): Visibility settingpinned(boolean, optional): Whether the memo is pinned
delete_memo
Delete a memo
- Parameters:
memo_resource_name(string): Resource name of the memo to delete
Resources
memos://{memo_resource_name}/info
Get detailed information about a specific memo
- Returns: Information including state, content, visibility, creation time, update time, tags, pinned status, and attachments
memos://recent_memos
Get a list of recent memos
- Returns: A list of recent memos, each containing name, state, content, and visibility
Development
Project Structure
memos-mcp/
├── main.py # Main service file
├── pyproject.toml # Project configuration
├── Dockerfile # Docker configuration
├── docker-compose.yaml # Docker Compose configuration
└── README.md # Project documentation
Dependencies
- Python >= 3.13
- fastmcp >= 2.12.2
- requests >= 2.32.5
Development Environment Setup
- Ensure uv is installed
- Clone the repository and install dependencies:
uv sync - Set environment variables and run:
uv run main.py
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contributing
Issues and Pull Requests are welcome!
Related Links
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。