joplin-mcp
Model Context Protocol (MCP) server for Joplin note-taking app, enabling AI to read, search, and modify notes via sandboxed scripts.
README
joplin-mcp
Model Context Protocol (MCP) server for the Joplin note-taking app.
Designed by belsar.ai to be easy to install & enjoyable to use.
Video
https://www.youtube.com/watch?v=B3qJa7ycqNM&t=6s
Platform Support
Available on macOS and Linux. Windows users should use WSL2.
Architecture
By default, this MCP server exposes two tools:
execute_joplin_readonly_script: For running scripts in read-only mode (inspecting/reading notes and notebooks).execute_joplin_script: For running scripts that can also perform modifications, creations, or deletions.
This script-based execution pattern follows Anthropic's recommended pattern for MCP servers and is the most performant, token-efficient way to build an MCP server today.
Scripts execute in a sandboxed runner process, isolated at the OS level — more secure and more performant than a container. The runner cannot access the internet, write to the filesystem, or directly interact with anything on your system.
joplin api ←http→ broker (allowlisted proxy) ←stdio→ runner (sandboxed)
The runner calls joplin.* methods as if talking to Joplin directly, but all requests pass through the broker, which only permits a specific set of API methods. The broker is the only piece that can interact with your notes — and nothing else.
Quick Start
- Open Joplin & navigate to tools > web clipper > enable web clipper service
- The Joplin app needs to remain running (minimized is fine)
- Pick the install command for your platform:
claude mcp add --scope user --transport stdio joplin -- npx -y @belsar-ai/joplin-mcp
codex mcp add joplin -- npx -y @belsar-ai/joplin-mcp
agy plugin install https://github.com/belsar-ai/joplin-mcp
- That's it. Send a test request like "Find my notes about installing Fedora linux".
Linux Requirements
Install the following system packages before first use:
# Fedora
sudo dnf install bubblewrap socat ripgrep
# Ubuntu/Debian
sudo apt install bubblewrap socat ripgrep
The server will fail with an error message if these are missing.
Uninstall
claude mcp remove joplin
codex mcp remove joplin
agy plugin uninstall joplin-mcp
gemini extensions uninstall joplin-mcp
Configuration (Optional)
Notebook Scope Config
Create .mcp-config/joplin-mcp.toml in your project root to scope which notebooks are visible:
[defaults]
notebook = "Notes"
[scope]
notebooks = ["Notes", "Software"]
defaults.notebook: Where new notes go if you don't specify a notebookscope.notebooks: Only these notebooks are visible to the AI
The config file is discovered by walking up from the current directory (like .git).
Read-Only Lock Mode
You can lock the MCP server down to a strict read-only mode so that no notes or notebooks can be modified, created, or deleted. In this mode, only the execute_joplin_readonly_script tool is exposed to the AI, and any attempts to execute write operations are blocked at the process level.
Configure read-only mode in one of two ways:
- CLI Flag: Append
--readonlyto your start command:npx -y @belsar-ai/joplin-mcp --readonly - Environment Variable: Set
JOPLIN_READONLY=true(any value other thanfalse,0,no,off, or empty string will enable lock mode).
Example Usage
The AI can now handle complex requests in a single shot:
Find my notes about installing Arch Linux.
Look for all notes whose last update time was before 2025 and move them to my Archive notebook.
Show me all notes in my Work Projects notebook.
Make a new note with a Mermaid diagram showing how a bill is passed on Capitol Hill.
Working with Large Notes
The AI can navigate, search, and edit large notes without pulling the entire body into context:
Show me the table of contents for my platform docs note.
Show me section 10.1 of my platform docs note.
Search my project plan for "deadline".
Replace "Q3 2025" with "Q4 2025" in my roadmap note.
Available API (Script Context)
The AI has access to a global joplin object with the following methods:
Notes (joplin.notes)
readNote(id): Pretty-printed note with metadata header and body. Preferred for display.getNote(id): Raw note object. PreferreadNote()for display.searchNotes(query: string): Smart search with "any:1" logic.listAllNotes(fields?, ...): Get all notes.createNote(title, body, notebookId, ...): Create a new note.updateNote(id, updates): Update properties or body.appendToNote(id, text): Add text to the end.prependToNote(id, text): Add text to the beginning.editNote(id, oldString, newString, replaceAll?): Server-side string replacement. Fails if not found or ambiguous withoutreplaceAll.getNoteLineRange(id, startLine, endLine): Read a slice of a note by line number (1-indexed).searchInNote(id, pattern): Case-insensitive search within a note. Returns matches with line numbers and context.getNoteSections(id): Parse markdown headings into a table of contents with line numbers.deleteNote(id): Move to trash.moveNoteToNotebook(id, notebookId): Move a note to a different notebook.
Notebooks (joplin.notebooks) — read-only
listNotebooks(): Get folder structure.getNotebook(id): Get a single notebook.getNotebookNotes(notebookId, fields?, ...): Get notes in a notebook.getNotebookTree(notebookId, depth?): Get formatted tree of a notebook with notes.getAllNotebooksTree({ exclude? }): Get formatted tree of all notebooks.getScopedTree({ exclude?, depth? }): Get formatted tree of scoped notebooks with notes.
Troubleshooting
- Verify Joplin desktop app is running
- Confirm Web Clipper is enabled in Joplin settings
- Ensure Joplin is listening on port 41184 (default)
- Go outside for a nice walk
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。