
reMarkable MCP Server
io.github.SamMorrowDrums由 GitHub 帳號 SamMorrowDrums 發布v2.1.0更新於 Oct 24, 2026
Read, render, search, and manage reMarkable documents through MCP
概覽
讓助理透過多種連線方式讀取、搜尋、算繪、匯出,並可選擇管理 reMarkable 平板上的文件。
- 可以做什麼
- 提供瀏覽資料夾、依名稱、標籤與擷取文字搜尋、讀取鍵入文字、PDF 與 EPUB 文字、螢光標記與註解,以及把筆記本或含註解的 PDF 頁面算繪成 PNG 或 SVG 的工具。它可以把文件匯出為 PDF 或分節 Markdown,透過 Google Vision 或 Tesseract 進行手寫 OCR,並在支援寫入的傳輸方式下上傳檔案、把 Markdown 算繪成 PDF、建立資料夾、移動、重新命名與刪除項目。文件也會註冊為 MCP 資源。
- 適用情境
- 適合希望助理處理 reMarkable 資料庫的情境:尋找筆記、擷取文字或註解、把頁面轉成圖片、匯出文件,或整理與上傳檔案。當平板內容對你的工作流程很重要,而且你能選擇適合自己環境的連線方式時值得加入。
- 執行需求
- 以 Python 套件形式透過 uvx 在本機執行,需要先安裝 uv。四種連線方式之一:USB web(平板已連接並啟用 USB web 介面)、本機目錄(已安裝並登入 reMarkable 桌面應用程式,唯讀)、雲端(需要 reMarkable Connect 訂閱,並把一次性註冊碼儲存到 ~/.rmapi,或使用 REMARKABLE_TOKEN 密鑰)、SSH(需要開發者模式,啟用時會回復原廠設定)。選用的 Google Vision OCR 需要 GOOGLE_VISION_API_KEY;離線 OCR 可安裝 Tesseract。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 reMarkable MCP Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
reMarkable MCP Server
Access a reMarkable library from MCP clients such as Claude, VS Code Copilot, OpenWebUI, and other compatible tools.
Features
- Browse folders and recent documents.
- Search names, tags, and extracted text.
- Read typed text, PDF and EPUB text, highlights, and annotations.
- Render notebooks and annotated PDFs as PNG or SVG.
- Export one document as a complete PDF or sectioned Markdown resource.
- Run handwriting OCR through Google Vision or Tesseract.
- Upload files and manage folders in supported transports.
- Render Markdown as PDF and upload it to the tablet.
- Open an interactive canvas in clients that support MCP Apps.
- Serve MCP over stdio or local Streamable HTTP.
- Serve MCP
2026-07-28and every earlier SDK-supported revision from one stable SDK 2.xMCPServer.
Quick Install
Prerequisite: install uv
The commands below use uvx, which is included with uv.
Page images are rasterized with PyMuPDF; no system Cairo, browser, or graphics
runtime needs to be installed on macOS, Linux, or Windows.
macOS and Linux
Use the official standalone installer:
Or install with Homebrew:
Windows
Use the official standalone installer from PowerShell:
Or install with WinGet:
Choose a connection
Start with the first mode that fits your setup.
USB Web Interface
Connect via USB and enable the web interface in your tablet's Storage Settings.
[Install USB Web Mode in VS Code] [Install USB Web Mode in VS Code Insiders]
- Connect your reMarkable via USB
- On your tablet, open Settings > Storage and enable USB web interface
- Install via the button above
Manual USB web configuration
Add to .vscode/mcp.json:
- Make sure your reMarkable is connected via USB and unlocked
- Verify USB web interface is enabled in Settings > Storage
- The tablet should be accessible at
http://10.11.99.1
Local Directory Mode
Read the official reMarkable desktop app's sync folder from disk. This mode is offline and read-only. The desktop app controls synchronization.
Local directory configuration
Add to .vscode/mcp.json:
With no path, the desktop app's data folder is auto-detected:
- macOS (current app):
~/Library/Containers/com.remarkable.desktop/Data/Library/Application Support/remarkable/desktop - macOS (legacy app):
~/Library/Application Support/remarkable/desktop - Windows:
%APPDATA%\remarkable\desktop - Linux:
~/.local/share/remarkable/desktop
Or point at any xochitl-style directory (e.g. a tablet backup):
- Content freshness depends on the desktop app. Keep it running and signed in.
- This mode is read-only. Direct writes could bypass synchronization and corrupt the app cache.
- If the directory can't be found and a cloud token is configured, the server falls back to cloud mode for read access (the server remains read-only because it was launched in local-directory mode)
Cloud Mode
Cloud mode works without a device connection and requires a reMarkable Connect subscription.
It fetches metadata in parallel and caches content-addressed blobs on disk. See Cloud performance and caching for configuration.
Cloud mode setup
1. Get a One-Time Code
Go to my.remarkable.com/device/desktop/connect and generate a code.
2. Convert to Token
Registration saves the token to ~/.rmapi. When your MCP client runs the server as the same user on the same machine, remarkable-mcp reads that file automatically, so you do not need to put a token in the client configuration. Set REMARKABLE_TOKEN only when ~/.rmapi is unavailable, such as when the server runs under another user or on another machine.
3. Configure your MCP client
Minimal client-neutral server definition
Add this server definition using the MCP configuration UI or wrapper required by your client:
No env entry is needed when the server can read the token from ~/.rmapi.
VS Code
VS Code's .vscode/mcp.json uses a top-level servers object. The saved
~/.rmapi credential means no token input is required:
Claude Desktop and other clients
Claude Desktop and many other MCP clients use a top-level mcpServers object and literal values in env; they do not use VS Code's inputs array. With the token available in ~/.rmapi, the minimal configuration is:
If the token file is unavailable, add "env": {"REMARKABLE_TOKEN": "your-token"} to the remarkable server entry. Consult your client's documentation if it uses a different outer key or secret-storage mechanism.
SSH Mode
SSH provides direct filesystem access and native notebook authoring. It requires developer mode, which factory-resets the tablet when enabled. Use this mode only when USB web, local directory, or cloud mode does not provide the operation you need.
See the SSH setup guide for authentication and device setup.
Connection Modes
All modes support reading, rendering, and single-document export. Cloud and SSH support full library management. USB web supports upload but does not accept a destination folder. Local directory mode is read-only.
¹ Folder ops = create folder / move / rename / delete. Upload and folder ops are enabled by default; pass --read-only to expose a read-only server. Deletes move items to the trash and prompt for confirmation when your client supports elicitation, and are refused without it unless REMARKABLE_SKIP_CONFIRM=1 is set.
² The desktop app itself signs in to the reMarkable cloud to sync; local directory mode just reads whatever the app has already synced to disk.
Automatic cloud fallback
If a selected device transport is unavailable and a cloud credential is configured,
the server falls back to cloud mode. A server launched with --local-dir remains
read-only after fallback. remarkable_status reports the effective transport and
sets fell_back_to_cloud.
Pass --no-cloud-fallback (or set REMARKABLE_DISABLE_CLOUD_FALLBACK=1) to disable this and fail instead when the device is unreachable.
The transport is resolved once per server process. Restart the MCP server after connecting a device or starting the desktop app if the process already fell back to cloud.
Detailed setup:
OpenWebUI (Streamable HTTP)
OpenWebUI's native MCP connection uses Streamable HTTP. Start remarkable-mcp on the same machine:
Then add http://127.0.0.1:8000/mcp as the MCP server URL in OpenWebUI. The
HTTP transport combines with --usb, --ssh, and --read-only; for example:
The bind address and port can also be set with --host / --port or
REMARKABLE_MCP_HOST / REMARKABLE_MCP_PORT.
The server uses MCP Python SDK 2.x's dual-era endpoint. Modern
2026-07-28 requests are sessionless; older clients continue to use the
initialize handshake and legacy MCP sessions on the same /mcp route. The
reMarkable token and selected tablet transport remain process-local CLI/env
configuration and are never inferred from MCP HTTP authorization headers.
[!WARNING] Streamable HTTP has no built-in authentication. It binds to
127.0.0.1by default. Keep that default unless you control the network boundary. Wildcard binds such as0.0.0.0and::are rejected because they cannot provide a strict Host allowlist. A concrete non-loopback address is allowed but exposes every enabled tool, including writes, to clients that can reach the port.
Remote access through an authenticated reverse proxy
Keep remarkable-mcp on its default loopback bind and put the proxy on the same
host. MCPServer's DNS-rebinding protection only permits loopback Host and
Origin values by default. A proxy that forwards its public hostname unchanged
will therefore receive 421 Misdirected Request; a public browser Origin
will receive 403 Forbidden.
The proxy must authenticate requests, rewrite Host to the loopback upstream,
and clear Origin. For example, with nginx and an existing htpasswd file:
Do not expose the upstream port directly. Configure OpenWebUI with the
authenticated proxy URL, such as https://mcp.example.com/mcp.
For NixOS, remarkable-mcp-bridge.nix provides a systemd module with the same
loopback default:
The service user must have its reMarkable credentials under
/var/lib/remarkable-mcp (or the configured home). The module adds
Tesseract to the service's executable search path; install the configured
command separately.
OpenClaw Integration
remarkable-mcp works as an OpenClaw skill. Add to your openclaw.json:
Install from ClawHub:
Or copy the SKILL.md from this repository into your ~/.openclaw/skills/remarkable-mcp/ directory.
Tools
The read/search/render tools are read-only. remarkable_export never changes the
tablet, but it writes a bounded temporary file on the MCP server host and therefore
declares readOnlyHint=false. Export links expire after 15 minutes and the server
retains at most eight at a time.
Supported transports also register write tools by default; pass --read-only to
disable them. See Write Tools. Clients that support
MCP Apps can also open remarkable_canvas.
Tool behavior
- Browsing a document path returns its content.
- Empty notebook text can trigger OCR automatically.
- Search can scan several matching documents.
- Image tools return visual content that text extraction misses.
remarkable_read.total_pagesis the physical document count;content_pagescounts extracted-text chunks, andmore/next_pagecontinue those chunks. Raw PDF reads count pages from the already-downloaded PDF. If a raw EPUB's separate archive cannot be read, its text still returns withtotal_pages: nullandtotal_pages_known: false.- PNG images of PDF-backed pages merge the source page and annotations
automatically; pass
render_merged=Falsefor the annotation layer alone. - PDF exports preserve physical page order and merge mapped source underlays with annotations by default. Markdown exports keep fixed source/typed/annotation/ highlight/OCR sections without guessing document structure.
- OCR uses Google Vision when configured and otherwise runs locally with Tesseract.
- Browse and search accept tag filters.
Example Usage
Note: PNG rendering uses PyMuPDF for both notebook SVGs and PDF pages, so
remarkable_imagedoes not require Cairo, Inkscape, Chromium, or another system graphics runtime. If local stroke parsing cannot handle a page, USB and SSH modes fall back to the tablet's native PDF export and cloud mode falls back to an original source PDF when one exists.
Resources
Documents are automatically registered as MCP resources:
Trashed documents are excluded from tool, canvas, and resource lookup, so a trashed item cannot shadow a live document with the same name.
remarkable_export returns a ResourceLink instead of embedding potentially
large file content in the tool response. The server stores the file in a private
temporary directory for 15 minutes, retains at most eight exports, and removes
managed exports at shutdown. Fetch and save the linked resource for durable use.
OCR for Handwriting
For handwritten content, remarkable-mcp offers two OCR backends:
Quick Setup
Set REMARKABLE_OCR_BACKEND in your MCP config:
Options: auto, google, tesseract
Google Cloud Vision
- Enable Cloud Vision API
- Create an API key
- Add to config:
"GOOGLE_VISION_API_KEY": "your-key"
Cost: 1,000 free requests/month, then ~$1.50 per 1,000.
Tesseract
Open-source OCR designed for printed text. Poor results with handwriting, but useful as an offline fallback.
Default Behavior (auto)
When REMARKABLE_OCR_BACKEND=auto (default):
- Google Vision (if
GOOGLE_VISION_API_KEYis set) - Tesseract (fallback)
Write Tools by Transport
Write tools let you upload, organize, and manage documents on your reMarkable. Enabled by default on write-capable transports. Cloud and SSH modes support the full set; USB web supports upload only (its firmware exposes no folder operations); local-directory mode is always read-only. Pass --read-only to expose a read-only server elsewhere.
Disabling Write Tools (read-only mode)
Write tools are on by default in each write-capable mode. Local-directory mode is always read-only. To make another transport read-only, add the --read-only flag:
It combines with any transport flag (--ssh, --usb):
Or set the environment variable:
The legacy
--writeflag andREMARKABLE_ENABLE_WRITEvariable are still accepted for backward compatibility but are now no-ops (write is the default).--writeand--read-onlyare mutually exclusive.
Available Write Tools
Safety
- Upload registers in cloud, SSH, and USB web mode — local-directory mode never exposes write tools.
- mkdir, move, rename, delete register in cloud and SSH modes only — they are not exposed on USB web (the tablet's USB web firmware has no folder/move/rename/delete endpoints), keeping the tool list scoped to what the active transport actually supports.
- Delete prompts for confirmation when possible — if the client supports MCP elicitation,
remarkable_deleteasks the user to confirm before deleting. MCP SDK 2.x carries that prompt as a multi-round input request for2026-07-28clients and as push elicitation for legacy clients. If the client can't show a prompt, the delete is refused (not performed) unlessREMARKABLE_SKIP_CONFIRM=1is set — so write-on-by-default can't silently delete from clients that lack elicitation. Cloud and SSH move items to Trash by default. SSH also supportspermanent=Truefor an explicitly requested permanent removal; cloud permanent deletion remains a Trash-management operation in the app/tablet. SetREMARKABLE_SKIP_CONFIRM=1to allow deletes without a prompt in automated setups. All write tools carryToolAnnotations(read_only_hint=False)(anddestructive_hint=Truefor delete) so an agent harness can gate writes at the MCP layer. - SSH work is fair and serialized per server — one FIFO dispatcher owns every SSH subprocess, so startup scans, reads, uploads, mutations, and refresh probes cannot churn the tablet's USB CDC connection concurrently. Cached metadata reads bypass the queue.
- Concurrent SSH writes share a refresh barrier — near-simultaneous writes are persisted in FIFO order, then every participating call waits for one shared
xochitlrestart before reporting success. A bounded debounce coalesces bursts without background or late success. - SSH refreshes avoid the firmware emergency-reboot path — the serialized refresh clears only
xochitl's systemd start counter immediately before restart, then requires stable, non-multiplexed SSH sessions on the same boot. OpenSSH aliases are resolved withssh -G; if USB web was reachable at that effective host before restart, port 80 must recover too. A failed probe keepsrefresh_pending: trueand never replays the write. - Retries are deliberately narrow — only connection failures that prove the remote command never started (for example connection refused, connect timeout, or banner timeout) receive bounded exponential backoff. Ambiguous/post-start write failures are never replayed; the error directs the caller to refresh and inspect the tablet instead.
- For explicit bulk operations, pass
defer_restart=Trueto each write (includingremarkable_author) — or setREMARKABLE_DEFER_RESTART=1— and callremarkable_refresh()once at the end. Deferred writes return immediately withrefresh_pending: true; an extra refresh is a no-op only after the current server process has confirmed a clean state. A new process performs one conservative recovery refresh because it cannot know whether an earlier process left disk changes pending. - A multi-step SSH write that fails after any confirmed mutation returns
write_partially_persisted, says do not repeat, and reports whether refresh recovery is still pending. A shared refresh failure is propagated only to participants whose own mutation was dirty; clean validation/pre-execution failures retain their original error. - USB HTTP requests use the same bounded operation core with
REMARKABLE_USB_MAX_CONCURRENCY(default2). Cloud sync keeps its existing pooled, idempotency-aware request layer andREMARKABLE_SYNC_WORKERScontrol.
Examples
Interactive Canvas App (MCP Apps)
An interactive page viewer built on the MCP Apps extension (SEP-1865). Clients that support MCP Apps (such as ChatGPT, Claude, VS Code, and the MCP Inspector) render a canvas in a side panel where you can view a document page and navigate through it.
There is no flag to enable it — the remarkable_canvas tool and its ui://remarkable/canvas resource are always registered, and the capability is negotiated automatically in client capabilities (modern discovery or a legacy initialize handshake). App-capable clients open the interactive canvas; every other client simply receives the rendered page as an image, so the tool is safe and useful everywhere.
This registers one tool:
How it behaves:
- App-capable clients open the canvas (declared at
ui://remarkable/canvas, MIMEtext/html;profile=mcp-app) and can page through the document via the MCP Apps postMessage bridge — the server delivers each rendered page in the wire result'sstructuredContent(structured_contentin Python). - Other clients still get the rendered page back as an embedded PNG image, so the tool is useful everywhere; it just won't open the interactive panel. The
_meta.ui/ui://metadata is inert to clients that don't advertise the MCP Apps UI extension.
Drawing and authoring from the canvas
When write mode is on (the default) and the active transport is SSH, the canvas becomes a write surface:
- Draw: choose a pen or highlighter, draw, then save native
.rmink to the device. - Add page: queue a blank native notebook page, draw on it, then save.
- One source of truth: the canvas calls the same
remarkable_authortool a model would call (method="draw"on Save,method="add_page"for +Page), so the human path and the model path produce byte-identical results.
The Save / Draw / +Page controls are hidden when the page isn't writable (read-only mode, or a non-SSH transport), and the canvas falls back to a plain image viewer. The iframe bridge follows the MCP Apps spec but is best validated against your specific client.
Advanced Configuration
Root Path Filtering
Limit the MCP server to a specific folder on your reMarkable. All operations will be scoped to this folder:
With this configuration:
remarkable_browse("/")shows contents of/Workremarkable_browse("/Projects")shows/Work/Projects- Documents outside
/Workare not accessible
Useful for:
- Focusing on work documents during office hours
- Separating personal and professional notes
- Limiting scope for specific AI workflows
Custom Background Color
Set the default background color for image rendering:
Supported formats:
#RRGGBB: RGB hex, such as#FFFFFF#RRGGBBAA: RGBA hex, such as#00000000
Default is #FBFBFB (reMarkable paper color). This affects both the remarkable_image tool and image resources.
Retry Configuration
Cloud API requests automatically retry on transient failures (HTTP 429, 500, 502, 503, 504) and network errors with exponential backoff and jitter. You can tune this via environment variables:
Rate-limit retries honor numeric and HTTP-date Retry-After values, capped at
20 seconds. Authentication failures trigger token renewal instead of retry.
Cloud Performance & Caching
Cloud mode is built to make a device-free workflow fast:
- Parallel traversal: fetch document metadata concurrently.
- Connection pooling: reuse HTTP connections.
- Content-addressed blob cache: reuse immutable blobs by hash and fetch new hashes when documents change.
You normally don't need to configure any of this, but these environment variables let you tune it:
The cache is purely a local accelerator: deleting REMARKABLE_CACHE_DIR only forces the next read to re-download. The mutable cloud root hash is always fetched fresh, so you never see a stale library.
Common Workflows
- Read recent notes and extract action items.
- Search names, tags, typed text, and OCR output.
- Review annotated PDFs with the source page and annotations together.
- Move selected notes into another local workflow.
- Upload reference PDFs or generated Markdown documents.
Documentation
Development
Dependabot checks Python dependencies and uv.lock through the uv ecosystem,
and GitHub Actions, weekly. Dependency updates are audited with pip-audit;
see the development guide for the full update and validation commands.
Multi-transport smoke test
When something looks broken, run the deterministic, no-AI smoke test first. It drives the real server over MCP and exercises every available tool in every reachable transport in this order: local directory, cloud, USB web, then SSH.
Smoke test guide and per-mode expectations.
License
MIT
Built with rmscene, PyMuPDF, markdown-it-py, and inspiration from ddvk/rmapi.
來源:README.md,提交 2ad0e17
工具
0版本歷史
1- v2.1.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分