### AI Interaction Examples Source: https://github.com/belsar-ai/joplin-mcp/blob/main/README.md Common natural language prompts for managing notes and notebooks. ```text Find my notes about installing Arch Linux. ``` ```text Look for all notes whose last update time was before 2025 and move them to my Archive notebook. ``` ```text Show me all notes in my Work Projects notebook. ``` ```text Make a new note with a Mermaid diagram showing how a bill is passed on Capitol Hill. ``` -------------------------------- ### Install Linux System Dependencies Source: https://github.com/belsar-ai/joplin-mcp/blob/main/README.md Required system packages for running the server on Fedora or Ubuntu/Debian distributions. ```bash # Fedora sudo dnf install bubblewrap socat ripgrep # Ubuntu/Debian sudo apt install bubblewrap socat ripgrep ``` -------------------------------- ### Install Joplin MCP Server Source: https://github.com/belsar-ai/joplin-mcp/blob/main/README.md Commands to add the Joplin MCP server to various supported AI client platforms. ```bash claude mcp add --scope user --transport stdio joplin -- npx -y @belsar-ai/joplin-mcp ``` ```bash codex mcp add joplin -- npx -y @belsar-ai/joplin-mcp ``` ```bash agy plugin install https://github.com/belsar-ai/joplin-mcp ``` -------------------------------- ### Large Note Management Examples Source: https://github.com/belsar-ai/joplin-mcp/blob/main/README.md Prompts for navigating and editing specific sections of large notes without loading the entire content. ```text Show me the table of contents for my platform docs note. ``` ```text Show me section 10.1 of my platform docs note. ``` ```text Search my project plan for "deadline". ``` ```text Replace "Q3 2025" with "Q4 2025" in my roadmap note. ``` -------------------------------- ### Promote a beta release to stable Source: https://github.com/belsar-ai/joplin-mcp/blob/main/RELEASE.md Commands to checkout a specific beta tag, create a stable tag, and push to trigger the publishing workflow. ```bash git checkout v0.3.0-beta.1 ``` ```bash git tag v0.3.0 ``` ```bash git push origin v0.3.0 ``` -------------------------------- ### Configure Notebook Scoping Source: https://github.com/belsar-ai/joplin-mcp/blob/main/README.md Define default and visible notebooks by creating a .mcp-config/joplin-mcp.toml file in the project root. ```toml [defaults] notebook = "Notes" [scope] notebooks = ["Notes", "Software"] ``` -------------------------------- ### Run all project tests Source: https://github.com/belsar-ai/joplin-mcp/blob/main/implementation_plan.md Executes the full test suite to ensure no regressions. ```bash npm test ``` -------------------------------- ### Run specific test files Source: https://github.com/belsar-ai/joplin-mcp/blob/main/implementation_plan.md Executes tests for the broker and index modules using vitest. ```bash npx vitest run src/sandbox/broker.test.ts npx vitest run src/index.test.ts ``` -------------------------------- ### Check for dependency updates Source: https://github.com/belsar-ai/joplin-mcp/blob/main/RELEASE.md Command to identify if a newer version of the pinned @anthropic-ai/sandbox-runtime package is available. ```bash npm outdated @anthropic-ai/sandbox-runtime ``` -------------------------------- ### Parse Read-Only Configuration Source: https://github.com/belsar-ai/joplin-mcp/blob/main/implementation_plan.md Logic for determining the read-only state from environment variables and CLI arguments. ```typescript const envVal = process.env.JOPLIN_READONLY?.trim().toLowerCase(); const hasEnvLock = envVal !== undefined && envVal !== '' && envVal !== 'false' && envVal !== '0' && envVal !== 'no' && envVal !== 'off'; const isReadOnly = process.argv.includes('--readonly') || hasEnvLock; ``` -------------------------------- ### Enable Read-Only Mode via CLI Source: https://github.com/belsar-ai/joplin-mcp/blob/main/README.md Restrict the MCP server to read-only operations by appending the --readonly flag to the execution command. ```bash npx -y @belsar-ai/joplin-mcp --readonly ``` -------------------------------- ### Architecture Diagram Source: https://github.com/belsar-ai/joplin-mcp/blob/main/README.md Visual representation of the communication flow between the Joplin API, broker, and sandboxed runner. ```text joplin api ←http→ broker (allowlisted proxy) ←stdio→ runner (sandboxed) ``` -------------------------------- ### joplin.notebooks Source: https://github.com/belsar-ai/joplin-mcp/blob/main/README.md Read-only methods for navigating the notebook structure. ```APIDOC ## joplin.notebooks ### Methods - **listNotebooks()**: Retrieves the folder structure. - **getNotebook(id)**: Retrieves a single notebook. - **getNotebookNotes(notebookId, fields, ...)**: Retrieves notes within a specific notebook. - **getNotebookTree(notebookId, depth)**: Retrieves a formatted tree of a notebook with notes. - **getAllNotebooksTree({ exclude })**: Retrieves a formatted tree of all notebooks. - **getScopedTree({ exclude, depth })**: Retrieves a formatted tree of scoped notebooks with notes. ``` -------------------------------- ### joplin.notes Source: https://github.com/belsar-ai/joplin-mcp/blob/main/README.md Methods for managing and retrieving Joplin notes. ```APIDOC ## joplin.notes ### Methods - **readNote(id)**: Returns a pretty-printed note with metadata header and body. - **getNote(id)**: Returns a raw note object. - **searchNotes(query)**: Performs a smart search with "any:1" logic. - **listAllNotes(fields, ...)**: Retrieves all notes. - **createNote(title, body, notebookId, ...)**: Creates a new note. - **updateNote(id, updates)**: Updates note properties or body. - **appendToNote(id, text)**: Appends text to the end of a note. - **prependToNote(id, text)**: Prepends text to the beginning of a note. - **editNote(id, oldString, newString, replaceAll)**: Performs server-side string replacement. - **getNoteLineRange(id, startLine, endLine)**: Reads a slice of a note by line number. - **searchInNote(id, pattern)**: Performs a case-insensitive search within a note. - **getNoteSections(id)**: Parses markdown headings into a table of contents. - **deleteNote(id)**: Moves a note to the trash. - **moveNoteToNotebook(id, notebookId)**: Moves a note to a different notebook. ``` -------------------------------- ### Update JoplinServer Description Source: https://github.com/belsar-ai/joplin-mcp/blob/main/implementation_plan.md Updates the MCP server description to reflect the availability of read-only and read-write tools. ```typescript description: `MCP server for Joplin note-taking application. This server exposes script execution tools to interact with the Joplin API directly, enabling complex workflows, batch processing, and "agentic" behaviors. By default, it provides 'execute_joplin_readonly_script' for read-only querying, and 'execute_joplin_script' for modifications. If configured in read-only lock mode, only the read-only tool is available. `; ``` -------------------------------- ### Uninstall Joplin MCP Server Source: https://github.com/belsar-ai/joplin-mcp/blob/main/README.md Commands to remove the Joplin MCP server from various AI client platforms. ```bash claude mcp remove joplin ``` ```bash codex mcp remove joplin ``` ```bash agy plugin uninstall joplin-mcp ``` ```bash gemini extensions uninstall joplin-mcp ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.