# joplin-mcp [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/alondmnt/joplin-mcp  
**GitHub Stars:** 176  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/joplin-mcp

## Description
FastMCP server exposing Joplin notes, notebooks, tags, and imports.

## Tools
Capabilities this server exposes over MCP:

- **ping_joplin** — Test connection to Joplin server.

Verifies connectivity to the Joplin application. Use to troubleshoot connection issues.

Returns:
    str: Connection status information.
- **get_note** — Retrieve a note with smart content display and sequential reading support.

Smart behavior: Short notes show full content, long notes show TOC only.
Sequential reading: Extract specific line ranges for progressive consumption.
- **get_note_resources** — List resources attached to a note, including OCR text for images and PDFs.

Joplin runs OCR on attached images and PDFs and stores the result on each
resource. This tool exposes that text so an agent reading a note can also
see what's inside its images. Resources without OCR text (audio, plain
files, or images not yet OCRed) are still listed unless ``ocr_only=True``.
- **get_links** — Extract all links to other notes from a given note and find backlinks from other notes.

Scans the note's content for links in the format [text](:/noteId) or [text](:/noteId#section-slug)
and searches for backlinks (other notes that link to this note). Returns link text, target/source
note info, section slugs (if present), and line context.

Returns:
    str: Formatted list of outgoing links and backlinks with titles, IDs, section slugs, and line context.

Link formats:
- [link text](:/targetNoteId) - Link to note
- [link text](:/targetNoteId#section-slug) - Link to specific section in note
- **create_note** — Create a new note in a specified notebook in Joplin.

    Creates a new note with the specified title, content, and properties. Uses notebook name
    for easier identification instead of requiring notebook IDs.

    Notebook can be specified by name or path:
    - "Work" - matches notebook named "Work" (must be unique)
    - "Projects/Work" - matches "Work" notebook inside "Projects"

    Returns:
        str: Success message with the created note's title and unique ID.

    Examples:
        - create_note("Shopping List", "Personal Notes", "- Milk
- Eggs", True, False) - Create uncompleted todo
        - create_note("Meeting Notes", "Work Projects", "# Meeting with Client") - Create regular note
        - create_note("Task", "Work", "", True, False, "2024-12-31T17:00:00") - Create todo with due date
        - create_note("Task", "Project A/tasks", "body") - Create note in "tasks" sub-notebook under "Project A"
    
- **update_note** — Update note properties (title, body, todo status, due date) or move a note to another notebook. Replaces the entire body.

Use this for metadata changes, moving a note between notebooks, or full body
replacement. For targeted text edits (fix a word, append a line) use edit_note
instead — it doesn't require reading first.

Notebook can be specified by name or path:
- "Work" - matches notebook named "Work" (must be unique)
- "Projects/Work" - matches "Work" notebook inside "Projects"

Returns:
    str: Success message confirming the note was updated.

Examples:
    - update_note("note123", title="New Title") - Update only the title
    - update_note("note123", body="New content", is_todo=True) - Update content and convert to todo
    - update_note("note123", notebook_name="Archive") - Move note to the "Archive" notebook
    - update_note("note123", notebook_name="Projects/Work/Tasks") - Move to a sub-notebook by path
    - update_note("note123", todo_due="2024-12-31T17:00:00") - Set due date
    - update_note("note123", todo_due=0) - Clear due date
- **edit_note** — Precision-edit a note's body without reading or replacing the full content.

Preferred over update_note for targeted text changes — no get_note round-trip needed.
Use update_note instead when changing metadata (title, todo status, due date) or
replacing the entire body.

Modes:
- Replace: provide old_string and new_string to replace text in the note body.
- Delete: provide old_string and set new_string to '' to remove text.
- Append: set position='end' (old_string must be None) to append new_string.
- Prepend: set position='beginning' (old_string must be None) to prepend new_string.
- **find_notes** — Find notes by searching titles and content. Use "*" to list all notes.

Query syntax: "exact phrase", title:word, body:word, -exclude, word1 OR word2

Examples:
    - find_notes("*") - List all notes
    - find_notes("meeting") - Find notes containing "meeting"
    - find_notes("*", task=True) - List all tasks
    - find_notes("*", trash=True) - List trashed (soft-deleted) notes
    - find_notes("*", limit=20, offset=20) - Page 2

TIP: Use find_notes_with_tag() or find_notes_in_notebook() for filtered searches.
TIP: Trashed notes can be restored with restore_from_trash().

IMPORTANT: trash=True only works with query="*" and no task/completed filters.
Joplin's search API does not index trashed notes and ignores include_deleted
for filter queries.
- **find_in_note** — Search for a regex pattern inside a specific note and return paginated matches.

Multiline mode is enabled by default so anchors like ``^``/``$`` operate per line,
matching the common expectations for checklist-style searches.
- **find_notes_with_tag** — Find all notes that have a specific tag, with pagination support.

MAIN FUNCTION FOR TAG SEARCHES!

Use this when you want to find all notes tagged with a specific tag name.

Returns:
    str: List of all notes with the specified tag, with pagination information.

Examples:
    - find_notes_with_tag("time-slip") - Find all notes tagged with "time-slip"
    - find_notes_with_tag("work", limit=10, offset=10) - Find notes tagged with "work" (page 2)
    - find_notes_with_tag("work", task=True) - Find only tasks tagged with "work"
    - find_notes_with_tag("important", task=True, completed=False) - Find only uncompleted tasks tagged with "important"
- **find_notes_in_notebook** — Find all notes in a specific notebook, with pagination support.

MAIN FUNCTION FOR NOTEBOOK SEARCHES!

Use this when you want to find all notes in a specific notebook.

Notebook can be specified by name or path:
- "Work" - matches notebook named "Work" (must be unique)
- "Projects/Work" - matches "Work" notebook inside "Projects"

Returns:
    str: List of all notes in the specified notebook, with pagination information.

Examples:
    - find_notes_in_notebook("Work Projects") - Find all notes in "Work Projects"
    - find_notes_in_notebook("Personal Notes", limit=10, offset=10) - Find notes in "Personal Notes" (page 2)
    - find_notes_in_notebook("Personal Notes", task=True) - Find only tasks in "Personal Notes"
    - find_notes_in_notebook("Projects", task=True, completed=False) - Find only uncompleted tasks in "Projects"
    - find_notes_in_notebook("Project A/tasks") - Find notes in "tasks" sub-notebook under "Project A"
- **list_notebooks** — List all notebooks/folders in your Joplin instance, with note counts.

Returns each notebook's id, title, path and note_count. Pass verbose=True
to also get the emoji icon, parent_id and timestamps -- rarely needed, and
on a large collection they roughly double the size of this response.

Returns:
    str: Formatted list of all notebooks including title, unique ID, path, and note count.
- **create_notebook** — Create a new notebook (folder) in Joplin to organize your notes.

Creates a new notebook that can be used to organize and contain notes. You can create
top-level notebooks or sub-notebooks within existing notebooks, optionally with an
emoji icon shown in Joplin's sidebar.

Notebook can be specified by name or path:
- "Work" - matches notebook named "Work" (must be unique)
- "Projects/Work" - matches "Work" notebook inside "Projects"

Returns:
    str: Success message containing the created notebook's title and unique ID.

Examples:
    - create_notebook("Work Projects") - Create a top-level notebook
    - create_notebook("2024 Projects", "Work") - Create a sub-notebook under "Work"
    - create_notebook("Tasks", "Projects/Work") - Create a sub-notebook by path
    - create_notebook("Tasks", emoji="🎯") - Create a notebook with an emoji icon
- **list_tags** — List all tags in your Joplin instance with note counts.

Retrieves and displays all tags that exist in your Joplin application. Tags are labels
that can be applied to notes for categorization and organization.

Returns:
    str: Formatted list of all tags including title, unique ID and number of notes tagged with it.
- **create_tag** — Create a new tag.

Creates a new tag that can be applied to notes for categorization and organization.

Returns:
    str: Success message with the created tag's title and unique ID.

Examples:
    - create_tag("work") - Create a new tag named "work"
    - create_tag("important") - Create a new tag named "important"
- **get_tags_by_note** — Get all tags for a specific note.

Retrieves all tags that are currently applied to a specific note.

Returns:
    str: Formatted list of tags applied to the note with title, ID, and creation date.
- **tag_note** — Add one or more tags to one or more notes.

Both args accept a single string or a list. When either is a list, the cartesian
product is applied (every tag on every note) in one call — preferred over looping.

Output: aggregated TAG_NOTE report with TOTAL_OPS / SUCCEEDED / FAILED, one row
per (note, tag) pair (so the scalar case is a one-row report).

Tags must exist beforehand — use create_tag to add new ones. Missing tags are
reported up front and nothing is applied. Per-op failures (e.g. invalid note ID
or allowlist denial) are captured in the report; other ops still run.

Examples:
    - tag_note("abc...", "Work") - Tag one note with one tag
    - tag_note(["abc...", "def..."], "Work") - Tag two notes with one tag
    - tag_note("abc...", ["Work", "Urgent"]) - Add two tags to one note
    - tag_note(["abc...", "def..."], ["Work", "Urgent"]) - 2x2 = 4 ops
- **untag_note** — Remove one or more tags from one or more notes.

Both args accept a single string or a list. When either is a list, the cartesian
product is applied (remove every tag from every note) in one call.

Output: aggregated UNTAG_NOTE report with TOTAL_OPS / SUCCEEDED / FAILED, one row
per (note, tag) pair (so the scalar case is a one-row report).

Tags must exist (by name). Missing tags are reported up front and nothing is
removed. Per-op failures (including allowlist denials) are captured in the
report; other ops still run.

Examples:
    - untag_note("abc...", "Work") - Remove one tag from one note
    - untag_note(["abc...", "def..."], "Work") - Remove one tag from two notes
    - untag_note("abc...", ["Work", "Urgent"]) - Remove two tags from one note
    - untag_note(["abc...", "def..."], ["Work", "Urgent"]) - 2x2 = 4 ops
- **restore_from_trash** — Restore a note or notebook from Joplin's trash.

Restores a previously deleted item by setting its deleted_time back to 0.
The item reappears in its original notebook.

Scope of restore (important):
- Only the single item identified by item_id is restored. When restoring
  a notebook, its sub-notebooks and the notes inside stay trashed and
  must each be restored individually. Joplin sets deleted_time on every
  descendant when a notebook is trashed, and this tool clears it on one
  item per call.
- If the original parent notebook is also trashed, restore the parent
  first or the restored item may not be visible.

To find descendants to restore after restoring a notebook, use
find_notes(query="*", trash=True) and filter to the relevant subtree.

Returns:
    str: Success message confirming the item was restored.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "joplin-mcp": {
    "command": "uvx",
    "args": ["joplin-mcp"],
    "env": {
      "JOPLIN_TOKEN": "",
      "JOPLIN_NOTEBOOK_ALLOWLIST": ""
    }
  }
}
```

**Requires environment variables:** `JOPLIN_TOKEN`, `JOPLIN_NOTEBOOK_ALLOWLIST` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What joplin-mcp MCP server does

The joplin-mcp MCP server gives an AI assistant an MCP interface to Joplin notes, notebooks, tags, and imports. It provides 26 tools covering note retrieval and search, note creation and editing, notebook organization, tag management, trash recovery, file import, and a connectivity check.

Note searches can target general content, tags, notebooks, or task items. The server can also retrieve attached resource text, including OCR text from images and PDFs, and expose links associated with notes. Import support includes Markdown, HTML, CSV, TXT, JEX files, and directories.

## How it works

Joplin must have its Web Clipper service enabled in Joplin Desktop. The server uses the authorization token from that service to communicate with Joplin through the joppy Python API, while FastMCP provides the MCP server layer.

Read access is enabled by default. The setup process can separately enable creation, updates, and deletion, so deployments can limit an assistant to browsing and searching. Deletion is described as permanent, while the restore tool handles soft-deleted notes or notebooks in the trash.

A notebook allowlist can restrict visibility and operations to selected notebook paths. Patterns support exact names, direct-child matches, recursive matches, and negation rules. Restrictions apply to note reads and writes, notebook listing and changes, searches, and note-tag operations. Blocked access returns a generic error without exposing notebook names or IDs.

## Setup and configuration

Enable Joplin Desktop’s Web Clipper service under Tools → Options → Web Clipper, then copy its authorization token. The package can be installed with pip, or launched with uvx. The repository also provides an installer that configures the token, permissions, and supported desktop clients.

Set `JOPLIN_TOKEN` to the Joplin authorization token. Set `JOPLIN_NOTEBOOK_ALLOWLIST` to a comma-separated list of permitted notebook patterns when access should be limited. Alternatively, a JSON configuration can contain `token` and `notebook_allowlist` values.

Any MCP-compatible client is expected to work, but client configuration details vary.

## Tools and capabilities

The tool groups include:

- Find notes, including trashed notes, notes with a tag, notes in a notebook, and all notes.
- Read notes, attached resource text, and note links.
- Create, update, edit, and delete notes.
- List, create, update, and delete notebooks.
- List, create, update, and delete tags; attach or remove tags from notes.
- Restore notes or notebooks from trash.
- Import supported files or directories.
- Ping Joplin to check the connection.

## Limitations and notes

The server depends on a running Joplin Web Clipper service and a valid authorization token. Allowlist entries are checked against existing notebooks at startup; unresolved patterns produce warnings rather than preventing startup. With an allowlist enabled, creating a top-level notebook through the server is rejected, and moving a notebook to the top level is also blocked. Changes to the allowlist require a server restart.

The documented automated installer targets Claude Desktop and can also detect Jan AI when it is already installed. OllMCP usage requires Ollama-related client setup outside this server, such as selecting a local model and starting OllMCP.

_Full upstream README: https://allmcps.com/mcp/joplin-mcp/readme_

