npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@belsar-ai/joplin-mcp

v4.0.3

Published

Model Context Protocol (MCP) server for Joplin note-taking app

Downloads

530

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

This MCP server exposes a single, powerful tool: execute_joplin_script. This single-tool design 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

  1. Open Joplin & navigate to tools > web clipper > enable web clipper service
  2. The Joplin app needs to remain running (minimized is fine)
  3. 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
gemini extensions install https://github.com/belsar-ai/joplin-mcp
  1. 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
gemini extensions uninstall joplin-mcp

Configuration (Optional)

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 notebook
  • scope.notebooks: Only these notebooks are visible to the AI

The config file is discovered by walking up from the current directory (like .git).

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. Prefer readNote() 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 without replaceAll.
  • 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