memos-mcp-server

memos-mcp-server

Enables AI assistants to create, read, update, delete, and list memos via the MCP protocol.

Category
Visit Server

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

  1. Clone the repository

    git clone <repository-url>
    cd memos-mcp
    
  2. Install dependencies

    uv sync
    
  3. 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"
    
  4. 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

  1. 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
    
  2. 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 support
    • visibility (string, optional): Visibility setting, defaults to VISIBILITY_UNSPECIFIED
      • PRIVATE: Private
      • PROTECTED: Protected
      • PUBLIC: Public
      • VISIBILITY_UNSPECIFIED: Unspecified

update_memo

Update an existing memo

  • Parameters:
    • memo_resource_name (string): Memo resource name (e.g., memos/123 or 123)
    • content (string, optional): New memo content
    • state (string, optional): Memo state
      • STATE_UNSPECIFIED: Unspecified
      • ACTIVE: Active
      • ARCHIVED: Archived
    • visibility (string, optional): Visibility setting
    • pinned (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

  1. Ensure uv is installed
  2. Clone the repository and install dependencies:
    uv sync
    
  3. 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

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured