Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 1.4.0 instead.
Reason given by maintainers: Security: a stray .env file could make the local server listen over HTTP with no sign-in. Fixed in 1.0.1.

second-brain-joplin

CI PyPI

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 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, and without it a computer whose own Python is 3.15 quietly gets a release from before semantic search existed (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.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for second-brain-joplin 1.0.0
File Size Uploaded Provenance Actions
second_brain_joplin-1.0.0.tar.gz 498.0 kB With provenance Details for second_brain_joplin-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for second-brain-joplin 1.0.0
File Interpreter ABI Platform Actions
second_brain_joplin-1.0.0-py3-none-any.whl Python 3 none any Details for second_brain_joplin-1.0.0-py3-none-any.whl

Total release size: 553.1 kB

Release files / second_brain_joplin-1.0.0.tar.gz

Download URL second_brain_joplin-1.0.0.tar.gz
Size 498.0 kB
Tags Source
SHA-256 checksum
How to use checksums
43b5997597bf18e843a7c4c8fab13b2d9aed90acedceb2a10db651606c7d8f9f
BLAKE2b-256 checksum
How to use checksums
ed8353e5dcc9048bce463b0d8e77b86fed66d5606a82e14d295f4c78ef4532da
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 log

Release files / second_brain_joplin-1.0.0-py3-none-any.whl

Download URL second_brain_joplin-1.0.0-py3-none-any.whl
Size 55.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fb35af391f43a468e505786cb105c9b071c8ad814ef125930423167f1f10893d
BLAKE2b-256 checksum
How to use checksums
9cf17bb3cd14f88123ee74ecc3630859da06d5feb303cc0ce73c69b490959bf6
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 log

Security for second-brain-joplin 1.0.0

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.

Select from 2 files

Attestation for second_brain_joplin-1.0.0.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 log

A 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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page