Skip to main content
Glama
Windows Microsoft Sticky Notes MCP Server

Windows Microsoft Sticky Notes MCP Server

by widisaadi

Sticky Notes MCP

Connect an MCP-compatible AI client to Microsoft Sticky Notes on Windows. Read, search, create, and organize notes through a local server that works directly with the app's plum.sqlite database.

Windows 10 / 11 · Python 3.10+ · stdio transport · MIT license

Getting started · Client setup · Tools · Data handling

What you can do

  • Find notes by keyword, color, or saved open/closed state.

  • Read complete notes with cleaned Markdown and original text.

  • Create notes, replace their content, or append new lines.

  • Change note colors and saved visibility or always-on-top flags.

  • Soft-delete and restore notes, or permanently delete them when explicitly requested.

  • Export active notes to Markdown or JSON and inspect note counts by color.

The server exposes nine tools and uses the MCP SDK plus Python's standard library. It runs locally over stdio; it does not start an HTTP service.

Related MCP server: mor

Getting started

Requirements

  • Windows 10 or Windows 11.

  • Python 3.10 or later and Git.

  • Microsoft Sticky Notes with an existing local plum.sqlite database. Open the app and create a note before using the server for the first time.

  • An MCP client that supports launching a local stdio server.

This project targets the Windows UWP Sticky Notes database layout. Other editions or storage formats may not be compatible.

Install from source

Run in PowerShell:

git clone https://github.com/widisaadi/stickynotes-mcp.git
cd stickynotes-mcp
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -e .

Keep the repository in a stable location, then configure your client with the absolute paths below.

Client setup

For clients that use an mcpServers JSON configuration, merge this entry into the existing configuration:

{
  "mcpServers": {
    "sticky-notes": {
      "command": "C:\\path\\to\\stickynotes-mcp\\.venv\\Scripts\\python.exe",
      "args": ["C:\\path\\to\\stickynotes-mcp\\server.py"]
    }
  }
}

Replace both example paths with your actual installation folder. Using the virtual environment's Python executable ensures the client can find the installed dependencies.

If your client provides a setup form or uses a different configuration format, use these values:

Setting

Value

Name

sticky-notes

Transport

stdio

Command

Absolute path to .venv\Scripts\python.exe

Arguments

Absolute path to server.py as a single argument

Environment

Optional STICKY_NOTES_DB_PATH; see Database location

Restart or reconnect the client after saving. Confirm that it lists the nine tools below, then try a read-only request such as “List my five most recently updated sticky notes.”

Example requests

  • “Find my notes that mention the release checklist.”

  • “Create a yellow note with these three tasks.”

  • “Append ‘Review the screenshots’ to this note.”

  • “Export my active notes as Markdown.”

Use a note's ID from list_notes or search_notes when selecting a specific note to change.

Tools

Tool

Purpose

Parameters

list_notes

List previews and metadata, newest updates first

limit=50, offset=0, theme, is_open, include_deleted=false

get_note

Read cleaned text, raw text, and note metadata

note_id

search_notes

Search stored text using SQLite LIKE

query, limit=50, include_deleted=false

create_note

Create a note with content and state flags

text, theme="Yellow", is_open=true, is_always_on_top=false

update_note

Replace or append text; change color or state flags

note_id, text, append_text, theme, is_open, is_always_on_top

delete_note

Soft-delete by default; optionally delete permanently

note_id, permanent=false

restore_note

Restore a soft-deleted note

note_id

get_stats

Count active, open, and deleted notes; group active notes by theme

None

export_notes

Write active notes to a Markdown or JSON file

export_format="markdown", output_dir

Colors: Yellow, Green, Pink, Purple, Blue, Grey, Charcoal.

When both text and append_text are supplied to update_note, text takes precedence. Search supports SQL wildcard characters: % matches any sequence and _ matches one character.

Exports default to the Documents folder under the current user's home directory. Set output_dir to choose another location. Exported content includes cleaned text and metadata, rather than a complete database backup.

Database location

By default, the server looks for:

%LOCALAPPDATA%\Packages\Microsoft.MicrosoftStickyNotes_8wekyb3d8bbwe\LocalState\plum.sqlite

To use a different database, add env to the server entry in your client's configuration:

"env": {
  "STICKY_NOTES_DB_PATH": "C:\\path\\to\\plum.sqlite"
}

For a manual session in PowerShell:

$env:STICKY_NOTES_DB_PATH = "C:\path\to\plum.sqlite"
.\.venv\Scripts\python.exe server.py

The process waits for MCP messages over standard input. It is a server process, so running it manually does not open an interactive notes interface.

Data handling and limitations

This is an independent project and is not affiliated with Microsoft. It edits the local database directly rather than calling a Microsoft service API.

  • Read and write access: Retrieval tools open SQLite in read-only mode. Mutations use a separate read-write connection with a 10-second lock timeout; database contention is still possible.

  • Backup behavior: Before a mutation, the server attempts to copy the database to plum.sqlite.mcp.bak in the same directory. Each attempt overwrites that file, and a failed copy does not stop the write. The copy does not include SQLite WAL/SHM sidecar files, so it should not be treated as a consistent backup of an active database. Close Sticky Notes and keep an independent backup before using write tools on important notes.

  • Deletion: Soft deletion sets a timestamp and can be reversed with restore_note. Permanent deletion removes the database row and cannot be reversed with that tool.

  • Desktop state: Visibility and always-on-top options update stored database flags. The server does not directly control app windows or guarantee an immediate desktop refresh or cloud sync.

  • Formatting: Common Sticky Notes formatting is converted to Markdown using a lightweight cleaner. It does not preserve every rich-text feature.

  • Client access: Note contents are returned to the connected MCP client. Its model provider and privacy settings determine how that content is handled after retrieval.

Troubleshooting

Problem

What to check

Database not found

Open Sticky Notes and create a note. Check the default location or set STICKY_NOTES_DB_PATH to an existing database.

Client cannot start the server

Confirm both absolute paths and install dependencies with the same virtual environment's Python executable.

Database is locked

Close Sticky Notes and retry the operation after the current database write finishes.

Changes are not visible in the app

Reopen Sticky Notes. Updates to stored flags may not immediately affect existing windows.

SQL errors about missing tables or columns

The database may use a different schema. This server expects the UWP Note and User tables used in server.py.

Landing page

The responsive landing page lives in docs/. It uses plain HTML, CSS, and JavaScript, with no build step or external runtime dependencies. Its interactive examples use fictional sample data and do not access your notes.

Newsreader and Plus Jakarta Sans are served from local font files. Their SIL Open Font License notices are included in docs/fonts/.

Preview it locally from the repository root:

python -m http.server 4173 --directory docs --bind 127.0.0.1

Open the local preview in your browser. Stop the preview with Ctrl+C when finished.

Two scroll treatments are included: the editorial page at / and the cinematic paper-trail version at /cinematic/. The page switcher opens either version. Both keep a complete mobile and reduced-motion layout. The locally bundled ScrollCraft engine is attributed in docs/vendor/SCROLLCRAFT-SOURCE.md.

Development

server.py contains the server and all nine tools. test_server.py runs 11 self-check stages, including text cleanup, note operations, deletion, restoration, and export.

The test script expects a non-empty Sticky Notes database at the default location and copies it to %LOCALAPPDATA%\hermes\cache\scratch. It uses that copy for mutations and writes exports there. It hardcodes these paths and overrides STICKY_NOTES_DB_PATH; setting that variable externally does not redirect the tests. The scratch copy and exports contain note data.

To run the existing checks on Windows, close Sticky Notes first, then use PowerShell:

New-Item -ItemType Directory -Force "$env:LOCALAPPDATA\hermes\cache\scratch" | Out-Null
.\.venv\Scripts\python.exe test_server.py

For bug reports, include your Python version, Sticky Notes version, client name, and the error message. Remove private note contents and personal paths before sharing logs.

License

Released under the MIT license.

Available Tools

9 tools
create_noteA

Create a new Microsoft Sticky Note.

Args: text: Note content (supports multiline plain text or markdown lists). theme: Color theme (Yellow, Green, Pink, Purple, Blue, Grey, Charcoal). Default: Yellow. is_open: Display note window immediately on Windows desktop (default: True). is_always_on_top: Pin note always on top of other windows (default: False).

Inputs: text (required), theme, is_open, is_always_on_top. Returns: result

delete_noteA

Delete a Sticky Note. Defaults to soft-delete (recoverable). Set permanent=True for hard delete.

Args: note_id: The UUID of the note to delete. permanent: If True, permanently removes from SQLite; if False, moves to trash.

Inputs: note_id (required), permanent. Returns: result

export_notesB

Export all active Sticky Notes to a Markdown file or JSON dump.

Args: export_format: Export format - 'markdown' or 'json' (default: 'markdown'). output_dir: Target directory path. Defaults to user's Documents folder.

Inputs: output_dir, export_format. Returns: result

get_noteC

Get full content and details of a single Sticky Note by its UUID.

Args: note_id: The UUID of the sticky note.

Inputs: note_id (required). Returns: result

get_statsB

Get high-level summary statistics of Microsoft Sticky Notes database.

Inputs: no named parameters. Returns: result

list_notesB

List Microsoft Sticky Notes with summary metadata, theme, and text preview.

Args: limit: Maximum number of notes to return (default: 50). offset: Pagination offset (default: 0). theme: Filter by theme color (Yellow, Green, Pink, Purple, Blue, Grey, Charcoal). is_open: Filter by open/closed status on desktop. include_deleted: Include soft-deleted notes (default: False).

Inputs: limit, theme, offset, is_open, +1 more. Returns: result

restore_noteA

Restore a soft-deleted Sticky Note back to active desktop notes.

Args: note_id: The UUID of the note to restore.

Inputs: note_id (required). Returns: result

search_notesB

Search Sticky Notes by keyword or text pattern (case-insensitive).

Args: query: Search term or keyword. limit: Maximum results to return (default: 50). include_deleted: Include soft-deleted notes in search results (default: False).

Inputs: query (required), limit, include_deleted. Returns: result

update_noteA

Update an existing note's text, append new lines, change theme, or toggle visibility.

Args: note_id: The UUID of the note to update. text: Overwrite entire note text. append_text: Append new lines to existing text (ignored if 'text' is provided). theme: New color theme (Yellow, Green, Pink, Purple, Blue, Grey, Charcoal). is_open: Open (True) or minimize/close (False) the note on desktop. is_always_on_top: Pin (True) or unpin (False) always on top.

Inputs: note_id (required), text, theme, is_open, +2 more. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 9 tools

    Disambiguation5/5

    Each tool serves a distinct purpose: list_notes for browsing, get_note for retrieving a single note, search_notes for querying, create_note for creation, update_note for modifications, delete_note for removal, restore_note for recovery, get_stats for aggregation, and export_notes for data extraction. There is no overlap in functionality, and the descriptions clearly delineate their roles.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (e.g., list_notes, get_note, search_notes, create_note, update_note, delete_note, restore_note, get_stats, export_notes), using snake_case throughout. This makes the toolset highly predictable.

    Tool Count5/5

    With 9 tools, the set is well-scoped for a Sticky Notes management server, covering CRUD operations, search, restore, stats, and export without redundancy. Each tool is necessary and no obvious tool is missing.

    Completeness4/5

    The surface covers the full lifecycle: create, read, update, delete (with soft/hard options), restore, list, search, stats, and export. Minor gaps exist, such as bulk operations or note tagging, but these are not essential for core workflows.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers