second-brain-joplin
An MCP server that turns your Joplin knowledge base into searchable memory for any MCP-capable AI client — Claude Code, Cursor, and others.
Inspired by second-brain-mcp (for Obsidian). This project covers the same use case for Joplin: your AI assistant reads, searches, and files notes directly, without leaving the tool you already use.
Status: stable. From 1.0 the tools (names, arguments, results), the settings and the command line follow semantic versioning: nothing you rely on changes without a new major version. Tested on Linux, macOS and Windows.
How it works
Joplin Desktop exposes a local REST API on localhost:41184 (the Web Clipper service). This server wraps that API as MCP tools, so your AI client can read your notes in real time, and add new ones where you allow it — no export step, no sync lag.
Claude Code / Cursor
│ MCP
▼
second-brain-joplin (this server)
│ HTTP + token
▼
Joplin Desktop (localhost:41184)
│
▼
Your notes
Prerequisites
- Joplin Desktop running with the Web Clipper service enabled:
Tools → Options → Web Clipper → Enable Web Clipper Service - API token — copy it from the Web Clipper settings panel
uvx(recommended — no install needed), or Python ≥ 3.11
Quickstart
Claude Code
claude mcp add -s user second-brain-joplin \
-e JOPLIN_API_TOKEN=your-token-here \
-- uvx second-brain-joplin serve
Other MCP clients
| Setting | Value |
|---|---|
| Command | uvx second-brain-joplin serve |
JOPLIN_API_TOKEN |
token from Joplin Web Clipper settings |
JOPLIN_BASE_URL |
http://localhost:41184 (default) |
See docs/install.md for step-by-step setup, including Claude Desktop and Cursor, and docs/troubleshooting.md if something doesn't work.
Remote: a Claude custom connector
serve --transport http runs the server over streamable HTTP so Claude's custom
connectors (claude.ai, the Claude apps, Cowork) can reach it through a tunnel. See
docs/remote-access.md.
MCP Tools
| Tool | Description | Writes? |
|---|---|---|
joplin_overview |
List all notebooks with note counts | No |
joplin_search |
Keyword search across all notes (limit 1–50) |
No |
joplin_read |
Read a note by ID, a page at a time (offset, max_chars up to 100,000) |
No |
joplin_recent |
Notes modified in the last N days (days 1–3650, limit 1–100) |
No |
joplin_semantic_search |
Find notes by meaning (embeddings; limit 1–50) |
No |
joplin_reindex |
Build/refresh the semantic index | The local index only, never Joplin |
joplin_create_note |
Add a new markdown note to a notebook you allow (title, body, notebook by title or id) |
A new note; never edits, moves or deletes. Off by default |
docs/tools.md describes each tool's arguments, results and
errors. Every tool carries MCP annotations (read-only; for joplin_reindex
local and non-destructive; for joplin_create_note a write that only adds), so
clients can tell what each one does.
joplin_create_note exists only once you set SBJ_WRITE_NOTEBOOKS to the
notebooks that may receive notes (ids or titles, or * for every visible one).
Your client's approval prompt is the check on each note, and the call carries the
note in readable form so the prompt shows what will be written. See
Creating notes.
To limit which notebooks these tools can see, set SBJ_NOTEBOOKS (only these) or
SBJ_EXCLUDE_NOTEBOOKS (not these) to notebook ids or titles;
second-brain-joplin notebooks lists the ids and shows what a filter hides. See
Choosing which notebooks are exposed.
Semantic search (
joplin_semantic_search/joplin_reindex) needs the optional[semantic]extra (see Semantic search).
Semantic search
Semantic search finds notes by meaning, complementing the keyword
joplin_search. It embeds your notes locally and stores the vectors in a
persistent on-disk index; queries return the closest notes with a similarity
score.
It ships behind an optional extra so the base install stays light:
# Claude Code (note the quotes around the package+extra)
claude mcp add -s user second-brain-joplin \
-e JOPLIN_API_TOKEN=your-token-here \
-- uvx --python 3.13 --from "second-brain-joplin[semantic]" second-brain-joplin serve
Keep --python 3.13: the embedding runtime has no build for Python 3.15 yet,
so without it the install fails on a computer whose own Python is 3.15
(Which Python).
The default stack is FastEmbed (ONNX, no
PyTorch) with sqlite-vec. You can swap
either backend via env vars (e.g. bge-m3 via sentence-transformers, or a
ChromaDB store) — see docs/semantic-search.md.
Build the index once with second-brain-joplin reindex (or the joplin_reindex
tool); this downloads the embedding model the first time. After that, joplin_semantic_search keeps the index
fresh incrementally — only notes changed since the last sync are re-embedded.
vs. second-brain-mcp (Obsidian)
| second-brain-mcp | second-brain-joplin | |
|---|---|---|
| Note app | Obsidian | Joplin |
| Storage | Plain .md files on disk |
Joplin REST API |
| Requires app running | No | Yes (Joplin + Web Clipper) |
| Semantic search | Yes (bge-m3) | Yes (FastEmbed / bge-m3) |
| Write support | Human-gated | New notes only, where you allow, approved in your client |
| Install | uvx second-brain-mcp |
uvx second-brain-joplin |
Notebook structure
The PARA method works well with Joplin. See docs/notebook-structure.md for a recommended setup, and templates/ for project, area, resource and weekly-review notes to import.
Documentation
| Guide | What it covers |
|---|---|
| Installation | Joplin's local API, each client's setup, which Python, updating |
| Tool reference | Every tool: arguments, results, errors |
| Configuration | Every setting and where it is read from; the command line |
| Troubleshooting | What each error means and what to do |
| Semantic search | Searching by meaning: install, index, backends |
| Remote access | A Claude custom connector: HTTP mode, sign-in, notebook filter, creating notes |
| Notebook structure and templates | A PARA layout and starter notes |
| Changelog · Security · Contributing |
Roadmap
| Milestone | Theme | Status |
|---|---|---|
| v0.1 — Bootstrap | Repo, CI, package skeleton | Done |
| v0.2 — Core Read Tools | All read MCP tools working | Done |
| v0.3 — Semantic Search | Embedding index, semantic search | Done |
| v0.4 — Remote Access | Streamable HTTP, GitHub sign-in, Claude custom connector | Done |
| v0.5 — Write Workflow | Notebook filter; note creation you allow and approve | Done |
| v1.0 — Publish | PyPI, full docs, templates | Done |
Security & privacy
By default (stdio) this server keeps your notes local: it talks only to Joplin's Web Clipper REST API on localhost and runs on your own machine. HTTP mode, for a Claude custom connector, deliberately sends what Claude reads to Anthropic, behind GitHub sign-in limited to your account (remote access). Anything an MCP client can read, the connected AI can read — so apply least privilege and don't expose notebooks with credentials or other sensitive data; a notebook filter (SBJ_NOTEBOOKS / SBJ_EXCLUDE_NOTEBOOKS) keeps chosen notebooks out of every tool. The server is read-only until you list the notebooks that may receive notes; it can then add a new note there and nothing else, and your client's approval prompt is the check on each one.
Two caveats apply once you enable semantic search: it writes a local index (under your XDG data dir by default) that stores note text excerpts and titles alongside the embeddings, and it downloads the embedding model once over the network on the first reindex. Your note content is embedded locally and never leaves your machine. See SECURITY.md for details and how to report a vulnerability.
Contributing
See CONTRIBUTING.md. Issues and PRs welcome — especially for testing against different Joplin versions and OS platforms.
License
MIT — see LICENSE.
Metadata
Release files for second-brain-joplin 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| second_brain_joplin-1.0.1.tar.gz | 502.1 kB | With provenance | Details for second_brain_joplin-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| second_brain_joplin-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for second_brain_joplin-1.0.1-py3-none-any.whl |
Total release size: 558.3 kB
Release files / second_brain_joplin-1.0.1.tar.gz
| Download URL | second_brain_joplin-1.0.1.tar.gz |
|---|---|
| Size | 502.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c585778c00167705af0840803c23ae6a8368654def66f2a042d04726465175fe
|
|
BLAKE2b-256 checksum How to use checksums |
c37e81093d0ad9e406430e3aed6731bbcd2ec0f60a485c0b745a18eed9f65ebd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logRelease files / second_brain_joplin-1.0.1-py3-none-any.whl
| Download URL | second_brain_joplin-1.0.1-py3-none-any.whl |
|---|---|
| Size | 56.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
499effc26797de38d1b706882bc46ec748e80ffa826e0ae4616bc525956bc43e
|
|
BLAKE2b-256 checksum How to use checksums |
920362589da237be080b4cb86a98f090cfcd2c426fdea17cf9faa8fe522e59e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logSecurity for second-brain-joplin 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for second_brain_joplin-1.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.