Joplin MCP Server

io.github.alondmnt由 GitHub 帳號 alondmnt 發布v0.10.0更新於 Oct 24, 2026

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

概覽

AI 產生的概覽

一個本機 MCP 伺服器,透過 Joplin Web Clipper API 讓 AI 助理存取 Joplin 的筆記、筆記本與標籤。

可以做什麼
搜尋與讀取筆記,包括全文搜尋、依標籤與筆記本篩選、筆記內正規表達式搜尋、連結,以及附件的 OCR 文字。建立、更新、精準編輯與刪除筆記,並在筆記本之間移動筆記。列出、建立、重新命名、移動與刪除筆記本。列出、建立、更新與刪除標籤,並批次為筆記加上或移除標籤。從垃圾桶還原軟刪除的筆記或筆記本。匯入 Markdown、HTML、CSV、TXT 與 JEX 檔案或目錄,並檢查與 Joplin 的連線。
適用情境
適合將知識庫、會議記錄或待辦清單放在 Joplin,並希望助理搜尋、摘要、草擬或整理這些內容的情況。也適合批次加上標籤、匯入既有檔案,以及從垃圾桶還原項目。
執行需求
以 Python 套件在本機執行(pip 或 uvx),需要執行中的 Joplin Desktop 3.x 並啟用 Web Clipper 服務。需透過 JOPLIN_TOKEN 提供 Web Clipper 授權權杖;JOPLIN_URL 為選用,可覆寫預設的 localhost:41184 位址。
安裝前請注意
此權杖可透過 Web Clipper 存取你的筆記,請勿放入共用設定。寫入、更新與刪除類工具會修改或永久刪除筆記、筆記本與標籤;刪除與批次讀取工具預設關閉,可依工具個別開啟。筆記內容會傳送給用戶端所使用的模型。筆記本允許清單與內容曝光設定可限制助理可見範圍,但僅在設定後生效。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Joplin MCP Server,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Joplin MCP Server

A FastMCP-based Model Context Protocol (MCP) server for Joplin note-taking application via its Python API joppy, enabling AI assistants to interact with your Joplin notes, notebooks, and tags through a standardized interface.

Table of Contents

What You Can Do

This MCP server provides 26 optimized tools for comprehensive Joplin integration:

Note Management

  • Find & Search: find_notes (supports trash=True for trashed notes), find_notes_with_tag, find_notes_in_notebook, get_all_notes
  • CRUD Operations: get_note, get_note_resources (read OCR text from attached images/PDFs), get_links, create_note, update_note, edit_note, delete_note

Notebook Management

  • Organize: list_notebooks, create_notebook, update_notebook, delete_notebook

Tag Management

  • Categorize: list_tags, create_tag, update_tag, delete_tag, get_tags_by_note
  • Link: tag_note, untag_note

Trash Management

  • Recover: restore_from_trash - Restore soft-deleted notes or notebooks

Import

  • File Import: import_from_file - Import Markdown, HTML, CSV, TXT, JEX files and directories

System

  • Health: ping_joplin

Quick Start

  1. Open Joplin Desktop → Tools → Options → Web Clipper
  2. Enable the Web Clipper service
  3. Copy the Authorization token
  4. Set up your preferred client below

Supported Clients

Any MCP-compatible client should work. Below are the ones with documented setup instructions.

Claude Desktop

Run the automated installer:

bash
# Install and configure everything automatically (pip)pip install joplin-mcpjoplin-mcp-install
# Or use zero-install with uvx (recommended if you have uv)uvx --from joplin-mcp joplin-mcp-install
# Optional: pin a specific version/range for stabilityuvx --from joplin-mcp==0.4.1 joplin-mcp-installuvx --from 'joplin-mcp>=0.4,<0.5' joplin-mcp-install

This script will:

  • Configure your Joplin API token
  • Set tool permissions (Create/Update/Delete)
  • Set up Claude Desktop automatically
  • Test the connection

After setup, restart Claude Desktop and you're ready to go!

Claude Code

Install the orchestration plugin for smarter tool usage (edit vs update, long-note reading, bulk tagging):

bash
/plugin marketplace add alondmnt/joplin-mcp/plugin install joplin-mcp

You'll be prompted for your Joplin API token on first use. The skill is invoked automatically when working with Joplin tools, or manually with /joplin.

Jan AI

  1. Install Jan AI from https://jan.ai

  2. Add MCP Server in Jan's interface:

    • Open Jan AI
    • Go to Settings → Extensions → Model Context Protocol
    • Click Add MCP Server
    • Configure:
      • Name: joplin
      • Command: uvx --from joplin-mcp joplin-mcp-server (requires uv installed)
      • Environment Variables:
        • JOPLIN_TOKEN: your_joplin_api_token_here
    • Enable the server
  3. Start chatting with access to your Joplin notes!

Automated Setup (Alternative)

bash
# Install and configure Jan AI automatically (if Jan is already installed)pip install joplin-mcpjoplin-mcp-install

This will detect and configure Jan AI automatically, just like Claude Desktop.

OllMCP (Local Ollama Models)

Auto-discovery (if you set up Claude Desktop first)

bash
# Install ollmcppip install ollmcp
# Run with auto-discovery (requires existing Claude Desktop config)ollmcp --auto-discovery --model qwen3:4b

Manual setup (works independently)

bash
# Install ollmcppip install ollmcp
# Set environment variableexport JOPLIN_TOKEN="your_joplin_api_token_here"
# Run with uvx (requires uv installed)ollmcp --server "joplin:uvx --from joplin-mcp joplin-mcp-server" --model qwen3:4b
# Or with an installed package (pip install joplin-mcp)ollmcp --server "joplin:joplin-mcp-server" --model qwen3:4b

Example Usage

Once configured, you can ask your AI assistant:

  • "List all my notebooks" - See your Joplin organization
  • "Find notes about Python programming" - Search your knowledge base
  • "Create a meeting note for today's standup" - Quick note creation
  • "Tag my recent AI notes as 'important'" - Organize with tags
  • "Show me my todos" - Find task items with find_notes(task=True)

Tool Permissions

The setup script offers 4 permission levels:

  • Read (always enabled): Browse and search your notes safely
  • Write (optional): Create new notes, notebooks, and tags
  • Update (optional): Modify existing content
  • Delete (optional): Remove content permanently

Choose the level that matches your comfort and use case.

Notebook Allowlist

Restrict AI access to specific notebooks using pattern-based access control. When configured, only matching notebooks (and their contents) are visible — all other notebooks are hidden.

Quick Setup

JSON config (joplin-mcp.json):

json
{  "token": "your_token",  "notebook_allowlist": ["Work", "Projects/Public"]}

Environment variable:

bash
export JOPLIN_NOTEBOOK_ALLOWLIST="Work,Projects/Public"

Pattern Syntax

Patterns use gitignore/gitwildmatch semantics:

PatternMatchesExample
WorkExact notebook name (and all children)Work, Work/Tasks, Work/Notes
Projects/*Direct children of ProjectsProjects/Alpha, Projects/Beta
Projects/**All descendants recursivelyProjects/Alpha/Tasks/Q1
!Projects/SecretExclude (negate) a specific pathEverything in Projects except Secret

Negation patterns always win over positive patterns (any negation match on a path or ancestor denies access).

How It Works

  • Hierarchical access: Allowing a parent notebook grants access to all its children. Allowing Projects means notes in Projects/Work/Tasks are also accessible.
  • Read protection: get_note, get_note_resources, find_notes, get_links — notes in blocked notebooks are filtered out or rejected.
  • Write protection: create_note, update_note, edit_note, delete_note — operations on notes in blocked notebooks are rejected.
  • Notebook operations: list_notebooks only shows accessible notebooks. create_notebook is rejected both under a blocked parent and at the top level (no parent_name) when an allowlist is set, and update_notebook rejects moves to top-level (parent_name="/") under the same policy — both would let the agent silently move a notebook out of allowlist-enforced scope. To grow the allowlist, create or relocate the notebook in the Joplin UI, then add it to notebook_allowlist and restart the server.
  • Search filtering: find_notes results are filtered to only include notes in accessible notebooks.
  • Tag operations: tag_note, untag_note, get_tags_by_note enforce access on the note's notebook.
  • Error privacy: Blocked access raises a generic "Notebook not accessible" error without revealing notebook names or IDs.

Configuration Examples

Single project focus (notebook name containing a space):

json
{ "notebook_allowlist": ["Work Projects"] }

Multiple notebooks with exclusion:

json
{ "notebook_allowlist": ["Projects", "!Projects/Secret", "AI", "Reference"] }

Glob patterns:

json
{ "notebook_allowlist": ["Projects/*", "!Projects/Private"] }

No allowlist (default) — all notebooks accessible:

json
{ "notebook_allowlist": null }

Startup Behavior

At server startup, the allowlist is validated and logged:

  • Each entry is resolved against existing notebooks
  • Unresolvable patterns trigger warnings (but never block startup)
  • If the allowlist resolves to zero accessible notebooks, a warning is logged

Advanced Configuration

Development Installation

For developers or users who want the latest features:

bash
git clone https://github.com/alondmnt/joplin-mcp.gitcd joplin-mcppython bootstrap.py

bootstrap.py is cross-platform: it offers to create a ./venv, runs pip install -e ., then launches the interactive installer. Pass --no-venv to install into whichever Python is already active.

Manual Configuration

If you prefer manual setup or the script doesn't work:

Note on uvx: uvx runs Python applications without permanently installing them (requires uv: pip install uv). It can read and write user configuration files (e.g., Claude/Jan configs), so uvx --from joplin-mcp joplin-mcp-install works for setup just like a pip install.

Version pinning (optional): For long‑lived client configs or CI, you can pin or range-constrain the version for reproducibility, e.g. uvx --from joplin-mcp==0.4.1 joplin-mcp-install or uvx --from 'joplin-mcp>=0.4,<0.5' joplin-mcp-install.

1. Create Configuration File

Create joplin-mcp.json in your project directory:

json
{  "token": "your_api_token_here",  "host": "localhost",   "port": 41184,  "timeout": 30,  "verify_ssl": false}
2. Claude Desktop Configuration

Add to your claude_desktop_config.json:

Option A: Using uvx (Zero-install)

json
{  "mcpServers": {    "joplin": {      "command": "uvx",      "args": ["--from", "joplin-mcp", "joplin-mcp-server"],      "env": {        "JOPLIN_TOKEN": "your_token_here"      }    }  }}

Requires uv installed: pip install uv

Option B: Using installed package

json
{  "mcpServers": {    "joplin": {      "command": "joplin-mcp-server",      "env": {        "JOPLIN_TOKEN": "your_token_here"      }    }  }}
3. More Client Configuration Examples

For additional client configurations including different transport options (HTTP, SSE, Streamable HTTP), see client-config.json.example.

This file includes configurations for:

  • STDIO transport (default, most compatible)
  • HTTP transport (basic HTTP server mode)
  • SSE transport (recommended for gemini-cli and OpenAI clients)
  • Streamable HTTP transport (advanced web clients)
  • HTTP-compat transport (bridges modern /mcp JSON-RPC with legacy /sse//messages clients)

Tool Permission Configuration

Fine-tune which operations the AI can perform by editing your config:

json
{  "tools": {    "create_note": true,    "update_note": true,    "delete_note": false,    "create_notebook": true,    "update_notebook": false,    "delete_notebook": false,    "create_tag": true,    "update_tag": false,    "delete_tag": false,    "get_all_notes": false,    "import_from_file": true  }}

Environment Variables

Usable instead of a JSON config file, or alongside one:

bash
# Connection settingsexport JOPLIN_TOKEN="your_api_token_here"export JOPLIN_HOST="localhost"export JOPLIN_PORT="41184"export JOPLIN_TIMEOUT="30"

Environment variables override the config file key by key, so the env block in your MCP client's configuration wins over whatever file the server discovers. A variable only takes part when it is actually set, so setting one leaves the rest of your file alone. Full order: direct parameters > environment > config file > defaults.

Per-Tool Env Vars

Every tool can be toggled individually via JOPLIN_TOOL_<NAME>=true|false. These take precedence over config file settings.

Env varDefault
JOPLIN_TOOL_FIND_NOTEStrue
JOPLIN_TOOL_FIND_NOTES_WITH_TAGtrue
JOPLIN_TOOL_FIND_NOTES_IN_NOTEBOOKtrue
JOPLIN_TOOL_FIND_IN_NOTEtrue
JOPLIN_TOOL_GET_ALL_NOTESfalse
JOPLIN_TOOL_GET_NOTEtrue
JOPLIN_TOOL_GET_LINKStrue
JOPLIN_TOOL_CREATE_NOTEtrue
JOPLIN_TOOL_UPDATE_NOTEtrue
JOPLIN_TOOL_EDIT_NOTEtrue
JOPLIN_TOOL_DELETE_NOTEfalse
JOPLIN_TOOL_LIST_NOTEBOOKStrue
JOPLIN_TOOL_CREATE_NOTEBOOKtrue
JOPLIN_TOOL_UPDATE_NOTEBOOKfalse
JOPLIN_TOOL_DELETE_NOTEBOOKfalse
JOPLIN_TOOL_LIST_TAGStrue
JOPLIN_TOOL_CREATE_TAGtrue
JOPLIN_TOOL_UPDATE_TAGfalse
JOPLIN_TOOL_DELETE_TAGfalse
JOPLIN_TOOL_GET_TAGS_BY_NOTEtrue
JOPLIN_TOOL_TAG_NOTEtrue
JOPLIN_TOOL_UNTAG_NOTEtrue
JOPLIN_TOOL_PING_JOPLINtrue
JOPLIN_TOOL_RESTORE_FROM_TRASHtrue
JOPLIN_TOOL_IMPORT_FROM_FILEfalse
Notebook Allowlist Env Var
Env varDefaultDescription
JOPLIN_NOTEBOOK_ALLOWLIST(not set)Comma-separated list of notebook patterns (e.g., Work,Projects/*,!Projects/Secret). Not set means no restriction; set but empty denies every notebook

HTTP Transport Support

The server supports both STDIO and HTTP transports:

bash
# STDIO (default)joplin-mcp-server --config ~/.joplin-mcp.json
# HTTP transport (development, from repo)PYTHONPATH=src python -m joplin_mcp.server --transport http --port 8000 --config ./joplin-mcp.json
# Opt-in HTTP compatibility bundle (modern + legacy SSE endpoints)PYTHONPATH=src python -m joplin_mcp.server --transport http-compat --port 8000 --config ./joplin-mcp.json# or keep --transport http and export MCP_HTTP_COMPAT=1/true to toggle the same behavior.
HTTP client config

Note: Claude Desktop currently uses STDIO transport and does not consume HTTP/SSE configs directly. The following example applies to clients that support network transports.

json
{  "mcpServers": {    "joplin": {      "transport": "http",      "url": "http://localhost:8000/mcp"    }  }}

Configuration Reference

Basic Settings
OptionDefaultDescription
tokenrequiredJoplin API authentication token
hostlocalhostJoplin server hostname
port41184Joplin Web Clipper port
timeout30Request timeout in seconds
verify_sslfalseSSL certificate verification
Tool Permissions
OptionDefaultDescription
tools.create_notetrueAllow creating new notes
tools.update_notetrueAllow modifying existing notes
tools.edit_notetrueAllow precision edits (find/replace, append, prepend)
tools.delete_notefalseAllow deleting notes (disabled by default — destructive)
tools.create_notebooktrueAllow creating new notebooks
tools.update_notebookfalseAllow modifying notebook titles and emoji icons
tools.delete_notebookfalseAllow deleting notebooks (disabled by default — destructive)
tools.create_tagtrueAllow creating new tags
tools.update_tagfalseAllow modifying tag titles
tools.delete_tagfalseAllow deleting tags (disabled by default — destructive)
tools.tag_notetrueAllow adding tags to notes
tools.untag_notetrueAllow removing tags from notes
tools.restore_from_trashtrueAllow restoring soft-deleted notes or notebooks
tools.find_notestrueAllow text search across notes (with task filtering)
tools.find_notes_with_tagtrueAllow finding notes by tag (with task filtering)
tools.find_notes_in_notebooktrueAllow finding notes by notebook (with task filtering)
tools.find_in_notetrueAllow regex search within a single note
tools.get_all_notesfalseAllow getting all notes (disabled by default - can fill context window)
tools.get_notetrueAllow getting specific notes
tools.get_note_resourcestrueAllow reading a note's resources and their OCR text
tools.get_linkstrueAllow extracting links to other notes
tools.list_notebookstrueAllow listing all notebooks
tools.list_tagstrueAllow listing all tags
tools.get_tags_by_notetrueAllow getting tags for specific notes
tools.ping_joplintrueAllow testing server connectivity
tools.import_from_filefalseAllow importing files/directories (MD, HTML, CSV, TXT, JEX)
Notebook Allowlist
OptionDefaultDescription
notebook_allowlistnullList of notebook patterns to allow access to. null = no restriction. Supports gitignore-style patterns: exact names, * wildcards, ** recursive, ! negation
Content Exposure (Privacy Settings)
OptionDefaultDescription
content_exposure.search_results"preview"Content visibility in all search and listing results: "none", "preview", "full"
content_exposure.individual_notes"full"Content visibility for individual notes: "none", "preview", "full"
content_exposure.max_preview_length300Maximum length of content previews (characters)
content_exposure.smart_toc_threshold2000Notes longer than this show a table of contents instead of the full body
content_exposure.enable_smart_toctrueTurn the table-of-contents fallback off to always return full note bodies
content_exposure.output_hintsfalseEmit worked follow-up calls (NEXT_STEPS, NEXT_PAGE) alongside results. Useful for smaller models, repetition for capable ones

Lowering max_preview_length and smart_toc_threshold, or setting search_results to "none", is the main way to cut how many tokens a session spends. list_notebooks and list_tags return only the fields an agent acts on; pass verbose=True for icons, parent ids and timestamps. See docs/content-privacy.md.

Docker

Run the MCP server in a container. Default transport is HTTP for broad compatibility; switch via environment variables.

Build

bash
docker build -t joplin-mcp .

Run (HTTP default)

bash
docker run --rm \  -p 8000:8000 \  -e JOPLIN_TOKEN=your_api_token \  joplin-mcp

With mounted config

bash
docker run --rm \  -p 8000:8000 \  -v $PWD/joplin-mcp.json:/config/joplin-mcp.json:ro \  joplin-mcp

Choose transport

  • SSE (streaming): -e MCP_TRANSPORT=sse
  • Streamable HTTP: -e MCP_TRANSPORT=streamable-http
  • STDIO (no port): -e MCP_TRANSPORT=stdio

Example (SSE):

bash
docker run --rm \  -p 8000:8000 \  -e JOPLIN_TOKEN=your_api_token \  -e MCP_TRANSPORT=sse \  joplin-mcp

The container listens on 0.0.0.0:8000 by default. If exposing publicly, place behind a reverse proxy and terminate TLS there. For SSE, ensure proxy keep-alives and buffering are configured appropriately.

Project Structure

  • src/joplin_mcp/ - Main package directory
    • fastmcp_server.py - Server implementation with 26 tools and Pydantic validation types
    • config.py - Configuration management (including notebook allowlist)
    • notebook_utils.py - Notebook path resolution, allowlist matching, and caching
    • server.py - Server entrypoint (module and CLI)
    • tools/ - Tool implementations (notes, notebooks, tags)
    • ui_integration.py - UI integration utilities
  • docs/ - Documentation (troubleshooting, privacy controls, enhancement proposals)
  • tests/ - Unit test suite
  • tests/e2e/ - End-to-end tests against a real Joplin Desktop (3.x) via the Web Clipper API; see "Running Tests"

Testing

Test your connection:

bash
# For pip installjoplin-mcp-server --config ~/.joplin-mcp.json
# For development (from repo)PYTHONPATH=src python -m joplin_mcp.server --config ./joplin-mcp.json

You should see:

Starting Joplin FastMCP Server...Successfully connected to Joplin!Found X notebooks, Y notes, Z tagsFastMCP server starting...Available tools: 26 tools ready

Running Tests

bash
# Unit tests (no Joplin instance required)pytest tests/ --ignore=tests/e2e
# E2E tests (requires a running Joplin instance)JOPLIN_TOKEN=your_api_token \JOPLIN_HOST=localhost \JOPLIN_PORT=41184 \pytest tests/e2e/ -v -m e2e --override-ini="addopts="

The E2E suite talks to a real Joplin Desktop via the Web Clipper API and exercises every tool including notebook allowlist enforcement. If JOPLIN_HOST:JOPLIN_PORT is unreachable the suite skips itself, so it's safe to run alongside the unit tests. Requires Joplin 3.x (the trash schema introduced in 3.0 — earlier versions fail with no such column: deleted_time).

Complete Tool Reference

ToolPermissionDescription
Finding Notes
find_notesReadFull-text search across all notes (supports task filtering; trash=True with query="*" lists trashed notes)
find_notes_with_tagReadFind notes with specific tag (supports task filtering)
find_notes_in_notebookReadFind notes in specific notebook (supports task filtering)
get_all_notesReadGet all notes, most recent first (disabled by default)
get_noteReadGet specific note by ID
find_in_noteReadRegex search within a single note (paginated matches & context, multiline anchors on by default)
get_linksReadExtract links to other notes from a note
get_note_resourcesReadList a note's resources (images, PDFs, attachments) and read their OCR text
Managing Notes
create_noteWriteCreate new notes
update_noteUpdateModify existing notes (incl. moving between notebooks)
edit_noteUpdatePrecision edit note content (find/replace, append, prepend)
delete_noteDeleteRemove notes
Managing Notebooks
list_notebooksReadBrowse all notebooks
create_notebookWriteCreate new notebooks under an optional parent (by name or path), optionally with an emoji icon
update_notebookUpdateRename, change emoji icon, or move a notebook under another parent (or to top-level with parent_name="/")
delete_notebookDeleteRemove notebooks
Managing Tags
list_tagsReadView all available tags
create_tagWriteCreate new tags
update_tagUpdateModify tag titles
delete_tagDeleteRemove tags
get_tags_by_noteReadList tags on specific note
Tag-Note Relationships
tag_noteUpdateAdd one or more tags to one or more notes (accepts lists)
untag_noteUpdateRemove one or more tags from one or more notes (accepts lists)
Trash Management
restore_from_trashUpdateRestore a soft-deleted note or notebook (pass item_type='note' or 'notebook')
Import Tools
import_from_fileWriteImport files/directories (MD, HTML, CSV, TXT, JEX)
System Tools
ping_joplinReadTest connectivity

來源:README.md,提交 b84c313

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.10.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分