About Rubien MCP Server
Rubien MCP Server is an MCP server published by devzhk in the AI category: mCP server wrapping rubien-cli so Claude Code and claude.ai can manage the Rubien reference library. Conduid read 36 tools from its source: rubien_attachment_add, rubien_attachment_export, rubien_attachment_list, rubien_attachment_read, rubien_attachment_remove, rubien_attachment_rename and 30 more. It is published to npm as rubien-mcp-server and starts with npx.
Conduid has no tagged release on record for it. Its topics include rubien, reference-manager and citations.
Install
claude mcp add rubien-mcp-server -- npx -y rubien-mcp-servernpx -y rubien-mcp-servergit clone https://github.com/devzhk/RubienTools (36)
rubien_attachment_addAttach local PDF or UTF-8 Markdown files to a reference. Returns one added, duplicate, or error result per input. Limits: PDF 250 MiB; Markdown 50 MiB.rubien_attachment_exportWrite an attachment's original bytes to a new local output path. Existing files and library-owned paths are never overwritten.rubien_attachment_listList a reference's supplementary attachments with local existence and size checks. Use attachment status to verify contents. Reports the active sync session’s transfer state.rubien_attachment_readRead this attachment by UUID, never its parent paper. PDF uses pages (1-based ranges) and truncates at page boundaries, always returning at least one page. Markdown uses start (character offset) and maxChars. Default maxChars 50000; maximum 500000. No network downloads.rubien_attachment_removeRemove an attachment and close its reader. Retains removal markers; managed bytes are cleaned after iCloud acknowledges removal. Does not remove the parent paper.rubien_attachment_renameChange an attachment's display name. Original bytes and filename are retained.rubien_attachment_retryRetry pending attachment downloads and recovery lookups. Does not recreate missing previously synced annotations. Requires an enabled sync session.rubien_attachment_statusVerify an attachment's local bytes and report availability, removal, pending upload intent, and errors. Pending intent does not mean uploaded.rubien_citeGenerate formatted citations for one or more references. Output shape varies by format: `text` → { style, inline, bibliography }, `bibliography` → { style, entries }, `docx-cc` → { tag, text, style, isShortTag?, fallbackPayload? }. Use arbitrary CSL style IDs from `rubien_list_styles` if needed.rubien_create_optionAppend an option to a singleSelect/multiSelect property. For the built-in Tags property, this creates a new Tag row with `value` as the tag name and `color` as the tag color; the returned option's `value` is the new tag's stable id.rubien_create_propertyCreate a new custom property definition (a column). All-digit names are rejected — they would shadow id selectors in rubien_update_reference's payload. To create a new tag instead, use rubien_create_option against the built-in Tags property.rubien_create_referenceCreate reference(s) — one door for every input. Pass exactly one of: `source` (ANY locator — DOI / arXiv / PMID / PMCID / ISBN, paper URL, PDF/Markdown file URL, local file path, or folder path; the CLI routes it), `bibtex` (inline BibTeX, can hold multiple entries), or `title` (minimal manual row). Resolver sources attempt an open-access PDF fetch by default; pass `downloadPdf: false` to opt out. The reference remains saved if the fetch is unavailable or fails. May return MULTIPLE items (multi-entry BibTeX, folders) and may return `status: 'existing'` instead of creating — the input matched an existing row (deduped by normalized DOI / PMID / PMCID / ISBN / URL / ISSN+title+year) and non-empty incoming fields were folded into it. Output envelope: `{ items: [{ reference?, status: 'created'|'existing'|'queued'|'failed', intakeId?, input, pdfDownload?, error? }], summary: {created, existing, queued, failed}, diagnostics? }`. Routing notes: an existing local path wins over an identifier-shaped string (escape a DOI as https://doi.org/…); registered-host PDF URLs resolve metadata and attempt to attach the PDF; unregistered .pdf/.md URLs are downloaded and imported directly. To fetch a PDF for a reference that already exists, use rubien_download_pdf instead.rubien_create_viewCreate a new saved view. filters / sorts / groupBy must be valid JSON matching the view configuration schema (mirrors what the GUI editor produces). Use rubien_list_views first to see the shape.rubien_delete_optionRemove a select option from a property.rubien_delete_propertyRemove a property definition and all its values on references. Cannot delete default/built-in properties (Tags included — use rubien_delete_option to remove individual tags).rubien_delete_referencePermanently delete references by ID. Accepts one or many IDs. Returns { deleted: 'id1,id2,...' }.rubien_delete_viewRemove a saved view by ID.rubien_download_pdfFetch the open-access PDF (via DOI or arXiv resolution) and attach it to an EXISTING reference (creation via rubien_create_reference fetches PDFs itself with `downloadPdf`). Skip-if-attached by default; pass `force: true` to detach the existing PDF and re-download. Side effects: writes a file under the library's PDF storage and inserts a pdfCache row + pdfUploadQueue row (so the running app's sync engine will push to CloudKit). Returns `{ id, ok, action, filename? }` where `action` is `"downloaded" | "replaced" | "already-attached" | "already-pending"`. Errors (isError) when the reference is missing, has no DOI/arXiv, or the network fetch fails. Long-running — up to 5 minutes.rubien_exportExport the library (or a subset) as JSON, BibTeX, or RIS. BibTeX/RIS output is plain text; JSON is a ReferenceDTO[] array.rubien_get_pdf_infoReturn page count, hasTextLayer (sampled across first/middle/last page), file size, isEncrypted, documentTitle, and the flattened outline `sections` (or null when the PDF has no outline). Each section carries title, level (1=top), startPage, and endPage; parent ranges span their descendants. Call this before `rubien_read_text` when you plan to select by `sections` or page ranges.rubien_get_referenceFetch a single reference by ID. Returns ReferenceDTO.rubien_get_sync_statusReport the current CloudKit sync state without starting the engine. Shows entitlement presence, iCloud account availability, dirty counts per entity type, tombstones, and engine state snapshot.rubien_grep_textFind WHERE a phrase or regex occurs inside one reference's body text. Web matching uses Markdown by default; `format: "html"` explicitly searches extracted HTML. Web offsets feed `rubien_read_text` when called with the same format. Source selection mirrors `rubien_read_text`: explicit `source` wins; PDF-scoped parameters imply pdf and `maxMatches`/`format` imply web; otherwise PDF wins when both exist. Library-only — never fetches from the network.rubien_list_propertiesList property definitions. Returns PropertyDefinitionDTO[] with options inlined: {value, label, color}. For the built-in Tags property each option is one Tag row (value = stringified tag id, label = name). Pass `ids` and/or `names` to filter; selectors are unioned, exact case-sensitive on names, and override `visible`. Unresolved selectors fail loudly with an `unresolved-selectors` error envelope.rubien_list_referencesList references with filters and sorting, or run a saved view. Returns ReferenceDTO[]. Use this for 'most recent', 'by author', 'by year range' queries. Pass `view` (a saved-view id from rubien_list_views) to run that view's persisted filter/sort config instead — `view` is mutually exclusive with the inline filter/sort params (limit/offset still apply).rubien_list_stylesList all available citation styles (built-in + installed CSL). Use the returned `id` as the `style` argument to rubien_cite.rubien_list_viewsList saved database views (persisted filter/sort/group configurations). Returns DatabaseViewDTO[]. To run a view (get its matching references), pass its id as `view` to rubien_list_references.rubien_read_annotationsReturn the user's annotations (highlights, underlines, anchored notes) on a reference — PDF and web-clip annotations in one array, each item tagged `source`: "pdf" | "web" (optional `source` param filters to one kind). PDF items carry `pageIndex` + `selectedText`; web items carry a W3C TextQuoteSelector (`prefixText`/`anchorText`/`suffixText`) — use it to locate the highlight inside the body returned by `rubien_read_text`. All items carry `type`, `color`, `noteText`, `dateCreated`, `dateModified`. Ordered: PDF items first (by pageIndex), then web items (by dateCreated). Empty array when the reference doesn't exist or has no annotations (not an error).rubien_read_textReturn the readable body text of any reference — its attached PDF or its clipped web page — without needing to know which it has. Source selection when `source` is omitted: `pages`/`sections` imply pdf, `start`/`format` imply web, otherwise PDF wins when both exist. Every response carries `source` (what was read) and `available` (which sources are readable now, e.g. ["pdf","web"]). PDF responses are page-keyed. Web responses are one flat windowed body: Markdown is returned by default, while `format: "html"` explicitly requests the extracted HTML fragment. `contentFormat` describes the returned representation and `sourceFormat` the canonical stored one. Use `rubien_grep_text` with the same format before windowed reads. Library-only — never fetches from the network.rubien_reading_activityReturn Rubien's tracked reading and Assistant activity. A paper-day qualifies after at least 60 estimated foreground-reader seconds; only yearActivity is limited by year.rubien_render_pdf_pageRender a single PDF page (1-indexed) and return it as an MCP image content block. Use this when text extraction is empty/garbled (scanned page, dense math) or when a figure/table is referenced in the surrounding text. Defaults: JPEG at scale=2.0 (~192 DPI) with quality stepdown to honor maxBytes. PNG mode is opt-in for lossless output but hard-fails on maxBytes.rubien_search_referencesSearch the Rubien library. Optional `scope`: everything includes metadata, notes, and PDF/web annotations; papers searches metadata and abstracts across all reference types; notes searches reference notes and PDF/web highlights or annotation notes. Omit scope to retain the legacy search across all 12 indexed FTS columns. Use `in` to restrict legacy FTS columns (mutually exclusive with scope). Use `op: 'or'` to match any query token. Returns an array of ReferenceDTO, once per matching reference.rubien_update_optionRename and/or recolor an existing option on a singleSelect/multiSelect property, in one transaction. `option` addresses the option by its original identity; at least one of `name` / `color` is required. Renames bulk-update affected references. For Tags: `option` is the stringified tag id (identity-stable), `name` is the new display name, recolor updates the Tag row. `color` accepts #RRGGBB only. The built-in Type property's options are fully immutable (recolor included).rubien_update_propertyUpdate a property definition: rename it and/or change its UI visibility, in one transaction. At least one of `name` / `visible` is required. Built-in properties (incl. Tags) cannot be renamed; visibility can be changed on any property. All-digit names are rejected.rubien_update_referenceModify an existing reference: metadata fields (pass only what changes), `clearFields` to null fields out, and/or `properties` — a cell payload editing built-in and custom property values in ONE atomic call. Payload keys are property names (exact, case-sensitive) or ids (digit-only strings); values: scalar = replace, array = replace multiSelect set, {add:[…], remove:[…]} = incremental multiSelect edit (idempotent), null = clear. For the built-in Tags property, values are stringified tag ids. This edits the VALUES on this reference — to create/rename/delete the choices themselves (options/tags), use rubien_create_option / rubien_update_option / rubien_delete_option. Unknown keys, read-only built-ins (Last Read, Read Count), and type mismatches fail the whole call with a structured error — nothing is partially applied.rubien_update_viewChange a saved view's name.Security checks
From the devzhk/Rubien monorepo, not this package alone.
6 checks have not been run yet.