joplin-mcp
A minimal MCP server that enables interaction with Joplin notes and notebooks through the local Web Clipper REST API, providing tools for search, create, update, and note management.
README
joplin-mcp
A minimal MCP server for Joplin, built with FastMCP. Talks to Joplin's local Web Clipper REST API.
Tools
search_notes(query, limit=20)— full-text searchget_note(note_id)— fetch a note's full contentcreate_note(title, body, notebook_id)— create a new noteupdate_note(note_id, title=None, body=None)— edit an existing notelist_notebooks()— list notebooks, to get anotebook_idforcreate_note
Setup
- In Joplin Desktop: Tools > Options > Web Clipper, enable the service, copy the auth token shown there.
- Set the token as an environment variable (don't hardcode it in configs
you might commit or share):
Or drop it into theexport JOPLIN_TOKEN="paste-your-token-here".envfile at the repo root (already gitignored) and pass--env-file .envtouv runinstead — see below. - Install uv if you don't have it.
- Set
JOPLIN_ALLOWED_NOTEBOOKSto a comma-separated list of notebook ids and/or names (get these fromlist_notebooks) — see Access control below.
Running it
No manual pip install needed — uv run resolves and caches dependencies
on first run.
uv run --directory /path/to/joplin-mcp joplin-mcp-server
To load JOPLIN_TOKEN (and friends) from the .env file instead of
exporting them in your shell:
uv run --env-file .env --directory /path/to/joplin-mcp joplin-mcp-server
Wiring into an MCP client
Both approaches below point uv at the .env file rather than duplicating
JOPLIN_TOKEN/JOPLIN_ALLOWED_NOTEBOOKS into the client config — one
source of truth for secrets.
Claude Code
claude mcp add joplin -s user -- uv run --env-file /path/to/joplin-mcp/.env --directory /path/to/joplin-mcp joplin-mcp-server
-s user registers it at user scope, so it's available in every Claude
Code session, not just this repo. Verify with claude mcp get joplin;
remove with claude mcp remove joplin -s user.
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json
(macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows), adding:
{
"mcpServers": {
"joplin": {
"command": "uv",
"args": ["run", "--env-file", "/path/to/joplin-mcp/.env", "--directory", "/path/to/joplin-mcp", "joplin-mcp-server"]
}
}
}
Fully quit and restart Claude Desktop afterward — it only picks up config
changes on launch. This is the schema documented at
support.claude.com
and modelcontextprotocol.io.
Some Claude Desktop builds manage MCP servers through a Settings UI
(Extensions/Connectors) instead of this file directly — check there first
if the file on disk doesn't have an mcpServers key already.
Migrating to uvx later
Once this repo is stable and pushed, the local uv run --directory ...
invocation above can be replaced with:
uvx --from git+https://github.com/johnsarie27/joplin-mcp@<pinned-sha> joplin-mcp-server
pinning <pinned-sha> to a specific commit per the SHA-pinning convention,
so client configs aren't silently pulling main on every run. No local
checkout needed at that point — just swap the command/args in whichever
client config above to uvx/--from git+... instead of uv/run --env-file ... --directory ....
Testing standalone (recommended before wiring into a client)
npx @modelcontextprotocol/inspector uv run --env-file .env --directory /path/to/joplin-mcp joplin-mcp-server
This opens a local web UI where you can call each tool manually and see the raw request/response before trusting it to a model.
Access control
search_notes, get_note, create_note, and update_note are scoped to
notebooks listed in JOPLIN_ALLOWED_NOTEBOOKS (comma-separated notebook
ids and/or names). This is fail-closed: if the variable is unset, empty,
or none of its entries match a real notebook, all four tools refuse to
operate. list_notebooks is unaffected since it only returns notebook
metadata, not note content, and doubles as the way to find the ids/names
to allowlist in the first place.
Name matching is case-insensitive (Tech, tech, and TECH are
equivalent) and resolved against the live notebook list on each call, so
a rename takes effect immediately. Since Joplin doesn't require notebook
names to be unique (nested notebooks can share a title), a name that
matches more than one notebook allows all of them — use the notebook id
instead (from list_notebooks) if you need to scope to just one of
several same-named notebooks.
Set JOPLIN_ALLOWED_NOTEBOOKS=* to explicitly allow all notebooks. This
is a deliberate opt-in, distinct from leaving the variable unset.
Out-of-scope access raises a NotebookAccessError with a message naming
the notebook, distinct from a JoplinError (an actual Joplin API failure).
Notes on this build
- Requires Joplin Desktop running with the Web Clipper service enabled (i.e. Joplin itself must be open — this doesn't run Joplin headlessly).
JOPLIN_HOST/JOPLIN_PORTenv vars override the defaults (localhost/41184) if needed.- Errors from the Joplin API surface as
JoplinErrorwith the raw status/body — check these first if a tool call fails.
References
Related projects
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.