Margins logo

Margins

Connects Claude Desktop or Code to a local Obsidian vault for searching notes and staging reviewed edits.

Install Margins

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "margins": {
      "command": "npx",
      "args": [
        "-y",
        "margins-mcp"
      ],
      "env": {
        "MARGINS_VAULT": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 23 tools correctly ().

Overview

Margins MCP server connects Claude Desktop or Claude Code to an Obsidian vault or local notes folder through structured MCP tools. It searches and reads files, surfaces backlinks and recent pages, and gives Claude vault context such as preferences and CLAUDE.md. Write operations are staged under proposed/ until accepted, while raw documents can be compiled into structured source pages. Reach for it when you want Claude to work with local notes through an existing Pro, Max, or Claude Code subscription without an API key.

Use cases

  • Search a local vault for evidence supporting a claim
  • Review recent Obsidian notes through Claude
  • Compile raw documents into structured source pages
  • Stage edits and accept them after review
  • Suggest wiki-links across lightly connected notes

Key features

  • Local vault search and page reading
  • Backlink and recent-page lookup
  • Proposal-based page creation and editing
  • Raw document compilation
  • Preference and CLAUDE.md grounding
  • Wiki-link suggestions

Tools23

What Margins lets your agent do. Expand a tool for its parameters.

Verified live~6.4k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

17/17 checks healthy over the last 79d

What it can do

From the 23 tools this server returned when we ran it; 23 declare their own safety hints.

Can delete or modify data · 2Makes network requests · 2Read-only tools · 21
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age170 days
Maintainers1

Observed 2026-10-31 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · margins-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads386Package downloads in the last 30 days.
Last commit6mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed23Callable tools this server registers over MCP.

How Margins works

What the Margins MCP server does

The Margins MCP server gives Claude a local interface to an Obsidian vault or another folder containing notes and source documents. It can inspect vault statistics, pending proposals, unprocessed files, saved preferences, and an optional CLAUDE.md through margins_start. Claude can then search note content and filenames, open individual pages, review recently changed files, and find pages that link to a target slug.

The server also supports controlled changes. New pages, replacements, appends, wiki-link suggestions, and compiled source pages are written as proposals rather than directly modifying the live vault. You or an MCP client can accept or reject each proposal. This makes the Margins MCP server suitable for note maintenance where changes need review before they become part of the vault.

How it works

Margins runs as a Node.js process and exposes tools over stdio. Claude supplies the reasoning and inference; Margins does not make LLM calls. The Claude subscription pays for inference, while the server reads and writes files on the local machine.

At the start of a conversation, margins_start provides broad vault context. Before proposing a change, Claude can call recall_preferences to load durable rules from .margins/preferences.md, including naming and filing conventions. Corrections can be recorded with record_preference so later proposals can use them.

Proposal operations are accumulated in proposed/. A replacement requires its before text to occur exactly once, and sequential edits to the same path build on the pending proposal. resolve_proposal with accept applies a proposal; reject discards it. The vault remains on disk rather than being synchronized to a cloud service.

Setup and configuration

Margins requires Node.js 18 or newer, a Claude Pro, Max, or Claude Code subscription, and either an Obsidian vault or a supported local notes folder. Install it globally with npm install -g margins-mcp, then run margins-mcp install. The installer asks for the vault path, detects Claude Desktop and Claude Code, writes configuration, creates raw/, proposed/, and .margins/ when needed, and runs a verification probe.

Use --vault /absolute/path to provide a path directly, or --starter-vault ~/notes to create a Margins-shaped folder. The required MARGINS_VAULT variable can also specify the absolute path in a manual MCP configuration. MARGINS_INDEX_ROOTS optionally limits indexing to comma-separated subfolders, while MARGINS_TELEMETRY=off disables opt-in anonymous tool-count telemetry.

Tools and capabilities

  • Load conversation grounding with margins_start and saved rules with recall_preferences.
  • Search, read, browse recent files, inspect backlinks, and use the search/fetch compatibility pair.
  • Stage new pages, exact replacements, appends, and document compilations.
  • Compile Markdown, text, PDF, Office, OpenDocument, email, EPUB, HTML, CSV, TSV, JSON, YAML, RTF, and similar files placed in raw/.
  • List proposals, inspect overwrite-risk information, and accept or reject staged changes.
  • Suggest wiki-links based on entity-like phrases and matching page slugs.
  • Store durable filing, naming, and formatting preferences.

Limitations and notes

The Margins MCP server is not a web application, cloud sync service, CRM integration, or API-key-based inference layer. Its chat surface is Claude Desktop, Claude Code, or another MCP client; Margins provides the local plumbing. Files remain on the machine, but anonymous opt-in telemetry can report tool-call counts. It does not send vault content, paths, or a user identifier to telemetry. The server indexes the vault root or detected subfolders according to its configuration, so an unusual folder layout may require MARGINS_INDEX_ROOTS.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Margins

Margins is an MCP server that connects Claude Desktop or Claude Code to an Obsidian vault or another local notes folder. Its main tools search and read pages, inspect context and links, stage proposed page changes, compile raw documents, and accept or reject proposals. It uses your Claude subscription rather than an API key.

Install it with `npm install -g margins-mcp`, then run `margins-mcp install`. The installer asks for the vault path, configures detected Claude clients, creates required folders if missing, and runs a verification probe. Node.js 18 or newer is required.

Yes, Margins works with Claude Desktop. The installer detects Claude Desktop and writes its MCP configuration; restart the application after installation. Manual configuration can also run the Margins Node entry point with `MARGINS_VAULT` set to the vault path.

Not immediately: write operations are staged in `proposed/` first. Claude can create pages, replace text, append content, compile raw files, or suggest wiki-links, but the change reaches the live vault only after `resolve_proposal` accepts it. You can also inspect or move staged files yourself.

Margins can compile Markdown, plain text, PDFs, Word and other Office or OpenDocument files, spreadsheets, presentations, email exports, EPUBs, RTF, HTML, CSV, TSV, JSON, YAML, and similar text-oriented formats. Place the source in the vault's `raw/` folder and use `propose_compile_from_raw`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMargins AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/margins?style=directory)](https://allmcps.com/mcp/margins)
HTML Embed
<a href="https://allmcps.com/mcp/margins"><img src="https://allmcps.com/api/badge/margins?style=directory" alt="Margins on AllMCPs" /></a>