loading…
Search for a command to run...
loading…
Enables AI assistants to create, read, update, delete, and list memos via the MCP protocol.
Enables AI assistants to create, read, update, delete, and list memos via the MCP protocol.
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.
Before starting the service, you need to set the following 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 |
| Variable Name | Description | Default | Example |
|---|---|---|---|
MEMOS_MCP_AUTH_TOKEN |
MCP server authentication token | None | abcdefghijklmnopqrstuvwxyz |
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 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
http://localhost:8000/mcpcreate_memoCreate a new memo
content (string): Memo content with Markdown supportvisibility (string, optional): Visibility setting, defaults to VISIBILITY_UNSPECIFIEDPRIVATE: PrivatePROTECTED: ProtectedPUBLIC: PublicVISIBILITY_UNSPECIFIED: Unspecifiedupdate_memoUpdate an existing memo
memo_resource_name (string): Memo resource name (e.g., memos/123 or 123)content (string, optional): New memo contentstate (string, optional): Memo stateSTATE_UNSPECIFIED: UnspecifiedACTIVE: ActiveARCHIVED: Archivedvisibility (string, optional): Visibility settingpinned (boolean, optional): Whether the memo is pinneddelete_memoDelete a memo
memo_resource_name (string): Resource name of the memo to deletememos://{memo_resource_name}/infoGet detailed information about a specific memo
memos://recent_memosGet a list of recent memos
memos-mcp/
├── main.py # Main service file
├── pyproject.toml # Project configuration
├── Dockerfile # Docker configuration
├── docker-compose.yaml # Docker Compose configuration
└── README.md # Project documentation
uv sync
uv run main.py
This project is licensed under the MIT License. See the LICENSE file for details.
Issues and Pull Requests are welcome!
Выполни в терминале:
claude mcp add memos-mcp-server -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.