Joplin MCP Server
📝 Joplin MCP 服务器
Joplin的模型上下文协议 (MCP) 服务器,支持通过模型上下文协议访问笔记。非常适合与 Claude 等 AI 助手集成。
✨ 特点
🔍搜索笔记:所有笔记的全文搜索
📖阅读笔记:检索个人笔记
✏️编辑笔记:创建新笔记并更新现有笔记
🗑️删除笔记:将笔记移至垃圾箱或永久删除
📥 Markdown Import :将 Markdown 文件导入为笔记
🤖 AI 集成:与 Claude 和其他支持 MCP 的 AI 助手无缝集成
Related MCP server: Obsidian MCP
🚀 安装
先决条件
# Clone repository
git clone https://github.com/dweigend/joplin-mcp.git
cd joplin-mcp
# Create and activate virtual environment
uv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
# Install dependencies
```bash
uv pip install -e .⚙️ 配置
Joplin API 令牌
打开 Joplin 桌面
转到工具->选项->Web Clipper
启用 Web Clipper 服务
复制 API 令牌
在项目目录中创建.env文件:
JOPLIN_TOKEN=your_api_token_hereClaude 桌面设置
安装 Claude Desktop
下载Claude桌面
确保您拥有最新版本(菜单:Claude -> 检查更新...)
配置 MCP 服务器
{ "mcpServers": { "joplin": { "command": "/PATH/TO/UV/uv", "args": [ "--directory", "/PATH/TO/YOUR/PROJECT/joplin_mcp", "run", "src/mcp/joplin_mcp.py" ] } } }将
/PATH/TO/UV/uv替换为 uv 安装的绝对路径使用以下方式查找路径:
which uvmacOS 示例:
/Users/username/.local/bin/uvWindows 示例:
C:\Users\username\AppData\Local\Microsoft\WindowsApps\uv.exe
将
/PATH/TO/YOUR/PROJECT/joplin_mcp替换为项目的绝对路径
重要提示:Claude Desktop 需要
uv的完整路径,因为它无法访问 shell 环境变量。
🛠️ 可用工具
搜索笔记
在乔普林 (Joplin) 搜索笔记。
参数:
query(字符串):搜索查询limit(int,可选):最大结果数(默认值:100)
获取注释
通过 ID 检索特定注释。
参数:
note_id(字符串): 笔记的 ID
创建注释
创建新笔记。
参数:
title(字符串):注释标题body(字符串,可选):Markdown 中的注释内容parent_id(字符串,可选):父文件夹的 IDis_todo(布尔值,可选):这是否是待办事项
更新说明
更新现有注释。
参数:
note_id(字符串): 要更新的注释的 IDtitle(字符串,可选):新标题body(字符串,可选):新内容parent_id(字符串,可选):新的父文件夹 IDis_todo(布尔值,可选):新的待办事项状态
删除注释
删除注释。
参数:
note_id(字符串): 要删除的注释的 IDpermanent(布尔值,可选):如果为真,则永久删除该注释
导入标记
将 markdown 文件导入为新笔记。
参数:
file_path(字符串):markdown 文件的路径
🧪 开发
调试模式
以调试模式启动服务器:
MCP_LOG_LEVEL=debug mcp dev src/mcp/joplin_mcp.py这将启动http://localhost:5173上的 MCP 检查器,您可以在其中测试工具。
📄 许可证
MIT 许可证- 版权所有 (c) 2025 David Weigend
👤 作者
大卫·魏根德
网站: weigend.studio
GitHub: @dweigend
🤝 贡献
欢迎贡献代码、提出问题和功能请求!请访问问题页面。
Available Tools
6 toolscreate_noteA
Create a new note in Joplin.
Args:
args: Note creation parameters
title: Note title
body: Note content in Markdown (optional)
parent_id: ID of parent folder (optional)
is_todo: Whether this is a todo item (optional)
Returns:
Dictionary containing the created note data
Inputs: args (required).
delete_noteB
Delete a note from Joplin.
Args:
note_id: ID of note to delete
permanent: If True, permanently delete the note
Returns:
Dictionary containing the operation status
Inputs: note_id (required), permanent.
get_noteC
Get a specific note by ID.
Args:
note_id: ID of the note to retrieve
Returns:
Dictionary containing the note data
Inputs: note_id (required).
import_markdownC
Import a markdown file as a new note.
Args:
args: Import parameters
file_path: Path to the markdown file
Returns:
Dictionary containing the created note data
Inputs: args (required).
search_notesC
Search for notes in Joplin.
Args:
args: Search parameters
query: Search query string
limit: Maximum number of results (default: 100)
Returns:
Dictionary containing search results
Inputs: args (required).
update_noteB
Update an existing note in Joplin.
Args:
args: Note update parameters
note_id: ID of note to update
title: New title (optional)
body: New content (optional)
parent_id: New parent folder ID (optional)
is_todo: New todo status (optional)
Returns:
Dictionary containing the updated note data
Inputs: args (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose with no overlap: create_note, delete_note, get_note, update_note, search_notes, and import_markdown all target specific operations on notes. An agent can easily distinguish between creation, retrieval, modification, deletion, searching, and importing functions without confusion.
All tools follow a consistent verb_noun pattern with snake_case naming: create_note, delete_note, get_note, update_note, search_notes, and import_markdown. The pattern is predictable throughout, making the tool set easy to navigate and understand.
With 6 tools, the server is well-scoped for note management in Joplin. Each tool earns its place by covering essential CRUD operations (create, read, update, delete), plus useful extras like search and import, without being overly sparse or bloated.
The tool set provides complete CRUD and lifecycle coverage for notes in Joplin, including create, read, update, delete, search, and import functionalities. There are no obvious gaps, and agents can perform all core note-related workflows without dead ends.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Google Keep-style notes app with an MCP server for AI agents to read/write notes.
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Linked markdown notes as memory for AI apps: search, read, save and link notes over MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables semantic search and retrieval of Apple Notes content, allowing AI assistants to access, search, and create notes using on-device embeddings.2MIT
- AlicenseBqualityFmaintenanceA Model Context Protocol server that enables AI assistants to read, write, and manipulate notes in your Obsidian vault through a standardized interface.54ISC
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that allows AI assistants like Claude to interact with Evernote, enabling them to create, search, read, and manage notes through natural language.4-
- FlicenseNot gradedqualityBmaintenanceMCP server that provides standardized tools for querying and retrieving notes from Joplin personal knowledge manager through its API, enabling AI assistants to access and reference personal notes contextually.9-