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: Pre-alpha — the read tools, semantic search, remote access (a Claude custom connector, docs/remote-access.md), a notebook filter and note creation (off until you allow it) are live. See the roadmap and open issues.


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 query and update your notes in real time — 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
  • Python ≥ 3.11 or uvx (recommended — no install needed)

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 per-client setup guides.

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

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.

The read tools query a running Joplin instance as of v0.2. Semantic search (joplin_semantic_search / joplin_reindex) landed in v0.3 and needs the optional [semantic] extra (see Semantic search). The notebook filter and note creation landed in v0.5.


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 --from "second-brain-joplin[semantic]" second-brain-joplin serve

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.


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 Planned

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 0.5.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 0.5.0
File Size Uploaded Provenance Actions
second_brain_joplin-0.5.0.tar.gz 474.4 kB With provenance Details for second_brain_joplin-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 529.0 kB

Release files / second_brain_joplin-0.5.0.tar.gz

Download URL second_brain_joplin-0.5.0.tar.gz
Size 474.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8eac674f027fb00aa5d9797b52299b6660079fed1a17bce541ce97c9256b3cfd
BLAKE2b-256 checksum
How to use checksums
76656841bc7a2db37abb708e7aff69ac9cdabe9d51142f42f5cece35491f929e
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-0.5.0-py3-none-any.whl

Download URL second_brain_joplin-0.5.0-py3-none-any.whl
Size 54.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f5edc0baba074053f0d9297615c646c8975899fe2700f619f616a6db4ddcc34
BLAKE2b-256 checksum
How to use checksums
cb5acf8ad36c16c5a7c955d0d07d83d96834e1ce3393640464d09e6b038d2122
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 0.5.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-0.5.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

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