Cursidian
Cursidian is a local MCP server that gives AI agents full read/write access to an Obsidian markdown vault, with structured tools for note management, search, graph navigation, and vault maintenance.
Note Management (note tool)
Read notes by path, title, or frontmatter alias — returns content, frontmatter, outgoing links,
revisionHash, andcontentHashCreate notes with optional frontmatter and overwrite support
Update notes via surgical modes:
patch(find/replace),replace_section(by heading),append,prepend, or fullreplace; supports simultaneous frontmatter updates in one journaled operationDelete (requires
confirm: true) and rename notes with optional backlink/index updatesEdit frontmatter independently via
set,merge, ordeletePass
expectedRevisionto prevent concurrent edit conflicts (optimistic concurrency)
Search & Discovery (search tool)
Full-text search with keyword AND logic, OR fallback, and typo correction
Tag-based filtering, folder listing (optionally recursive), recent notes, and full tag vocabulary with counts
All paginated with cursor-based pagination and compact/full output formats
Graph Navigation (graph tool)
Retrieve a note's one-hop link neighborhood: resolved/unresolved outgoing wikilinks and paginated backlinks
Vault Maintenance (vault tool)
Health check — report of orphaned notes, broken links, index drift, and stale pages
Sync index — regenerate
index.mdfrom frontmatter (supportsdryRun)Slop check / Deslop — detect and auto-fix LLM typography artifacts (em dashes, curly quotes, decorative emoji) in note bodies and frontmatter (journaled, supports
dryRun)Folder operations — create, list, and delete folders
Log — append entries to
log.mdand optionallyhot.mdOperation history & undo — list recent journaled operations and reverse any mutation by
operationIdManifest — read/update the
_meta/manifest.mdingest ledger for tracking ingested sources and projects
Safety & Reliability
Atomic file writes, path containment, optimistic concurrency via
revisionHash, multi-file rollback, and pre-write backups to.cursidian-trashfor easy recovery.
Provides tools for reading, writing, searching, and managing notes in an Obsidian vault, including safe note editing, tag management, and graph neighborhood exploration.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Cursidiansearch my vault for notes about MCP servers"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Cursidian
Implementation of the Obsidian llm-wiki concept for Cursor, using an MCP designed to minimise token consumption and maximise relevant results. Includes slop removal tools.
Getting Started:
Download Obsidian, create an empty vault, make a note of its location.
Install the "LLM Slop Detector" plugin in your Cursor (thias-se.llm-slop-detector)
Install this MCP and the skills into your Cursor.
Restart / Reload Cursor.
Enter this prompt: "I have just created an empty obsidian vault at vault location, please set up my wiki there"
Let it do its thing, it will take about 5 minutes and burn like 30k tokens. Auto is fine, you don't need Claude for this! At this point you don't even need to be running Obsidian any more, the point of it was just to create the vault structure.
Once it is set up you can just ask Cursor agents for stuff like "create pages in my wiki about my project, as many as you need to capture everything." Or "refactor my ui to be more colourful, using the design notes in my wiki" etc. The sky is the limit. The more effort you ask agents to put into your wiki, the more you get out of it.
And notice the distinction there. the more effort you ask your agents to put in, you don't write this thing yourself. Have the Cursor agents do everything, they write the wiki, they read it, they lint it, check it and maintain it. You can dump entire ebooks into it, or have it review your most recent 100 cursor chat transcripts and save any relevant information it finds to your wiki. Optionally, ask it to "remove all slop from my wiki" once in a while.
You can dip in to read it using Obsidian whenever you like, but really its a resource for Cursor agents to store information about your projects, your goals, your design desisions and rules and so on.
Credits
I took the "Obsidian Wiki" concept from Andrej Karpathy, and I drew inspiration from this existing Obsidian MCP: @istrejo/obsidian-mcp. But really the credit goes to Fable, Grok and Composer 2.5, I am just their conductor, and I used Cursor to create this.
Anyway that's the end of the human-written portion of the readme, the rest is by Agents and for Agents really, but feel free to keep reading if you want.
Emjoy! John.
Related MCP server: Obsidian MCP Server
Features
4 MCP tools -
note,search,graph,vault(action-dispatch surface)Safe writes -
patchinferred whenold_string/new_stringare set;replace_sectionfor heading editsAgent-friendly search - default limit 10, compact format, stopwords stripped, token-AND with OR/typo fallback; hits include
title/summary/tagsAuto timestamps -
notecreate/update/frontmatter setcreated/updatedautomaticallyOptimistic concurrency -
revisionHashon read (full note),expectedRevisionon write;contentHash/expectedHashremain as body-only / deprecated aliasOperation journals + undo - mutating calls return
operationId;vaulthistory/undoreverse journaled workTyped manifest -
vaultmanifestfor_meta/manifest.md(no hand-edited ledger lines)Signature-based caches - index and search snapshots invalidate when files change on disk (including Obsidian edits)
Deslop gate -
npm run buildrunsslop:checkfirst; strips AI typography and decorative emoji from the repo (and optionally the wiki vault)Wiki skills - nine Cursor skills that drive the MCP tools for ingest, query, lint, capture, update, status, and deslop
Skill contract gate -
npm run skills:checkrejects retired tool names, phantom health fields, and read-only write leaks
Tools
Tool | Actions | Purpose |
|
| Note CRUD, safe edits, metadata; returns |
|
| Find and enumerate notes (paginated; may report |
| - | One-hop neighborhood (resolved + unresolved outgoing, paginated backlinks) |
|
| Health, catalog, deslop, folders, bookkeeping, undo, ingest ledger |
Requirements
Node.js >= 20
An absolute Obsidian vault path via
OBSIDIAN_VAULT_PATH
Quick start (published package)
Add to ~/.cursor/mcp.json (Windows: %USERPROFILE%\.cursor\mcp.json):
{
"mcpServers": {
"cursidian": {
"command": "npx",
"args": ["-y", "cursidian"],
"env": {
"OBSIDIAN_VAULT_PATH": "C:\\Users\\you\\Documents\\MyVault"
}
}
}
}Unix:
"OBSIDIAN_VAULT_PATH": "/Users/you/Documents/MyVault"Reload Cursor. The config key "cursidian" appears as MCP server user-cursidian.
See also examples/cursor-mcp.json.
Local development setup
git clone https://github.com/CoolJohn-lab/Cursidian.git
cd Cursidian
npm install
npm run build
npm testPoint Cursor at the built entrypoint:
{
"mcpServers": {
"cursidian": {
"command": "node",
"args": ["/absolute/path/to/Cursidian/dist/index.js"],
"env": {
"OBSIDIAN_VAULT_PATH": "/absolute/path/to/your/vault"
}
}
}
}Wiki skills + MCP
Cursidian is a two-layer product:
Layer | Role | Where |
MCP server | Runtime vault I/O for agents | Published |
Wiki skills | Workflow instructions (ingest, query, lint, ...) |
|
The MCP server is the only way agents read or write vault markdown. Skills do not open vault files with the IDE filesystem tools or shell - they call user-cursidian (note, search, graph, vault). If an MCP call fails, the skill reports the failure and stops (no silent filesystem fallback).
Source documents outside the vault (PDFs, repo files, URLs) may be read with normal tools for ingest; the moment content enters the vault, it is MCP-only.
How agents use both
Cursor loads skills from
~/.cursor/skills/when the user asks something matching a skill description (e.g. "add this to the wiki", "what do I know about X").The skill tells the agent which MCP actions to call, in what order (cheap search first, full
noteread only when needed).Writes follow the safe-write protocol:
noteread->revisionHash-> narrowestnoteupdatewithexpectedRevision. Mutating skills keep an operation-ID stack and callvaultundoin reverse on failure after writes.After multi-page edits, skills typically call
vaultsync_index(rebuildindex.md) andvaultlog(appendlog.md/ optionalhot.md), then verify withsync_indexdryRun: trueexpectingwouldWrite: false.
Shared schema and the full MCP contract live in the llm-wiki skill.
Install skills
npm run skills:install
# or from the published package:
npx cursidian-skillsThat removes then copies the nine skill folders into ~/.cursor/skills/ (never symlink; copying into an existing folder nests skill/skill/SKILL.md). Full steps: skills/wiki/INSTALL.md. Re-run after skill or MCP tool-surface changes, then start a new agent chat so Cursor re-discovers them.
Exception: none for vault writes. wiki-slop uses MCP vault slop_check / deslop for the vault; npm slop:* remains for the repo build gate (and optional human/CI *:wiki CLIs).
Skill | Purpose | Typical MCP use |
| Theory, schema, MCP contract | Reference for other skills |
| Read-only Q&A |
|
| Vault health / consolidate |
|
| Bootstrap vault structure |
|
| Distill docs/URLs into pages |
|
| Save session findings |
|
| Sync a project into the wiki | git delta outside vault; writes via |
| Delta / what next / hot.md |
|
| Deslop repo or vault | Repo: npm |
Deslop (LLM-slop)
Keeps AI typography (em/en dashes, curly quotes, ellipsis, arrows) and decorative emoji out of the package and, when you ask, the Obsidian vault. Uses llm-slop-detector with this repo's .llmsloprc.json. Vault MCP deslop covers bodies and all frontmatter string fields so index drift stays clear. By default MCP skips operational files (index/log/hot/_raw/_archives/_meta); pass includeOperational: true to include them. Human/CI slop:*:wiki still scans the full tree.
Command / tool | Purpose |
| Scan this repo; exit non-zero if dirty |
| Auto-fix chars/emoji in this repo |
| Read-only vault slop report (body + frontmatter; |
| Journaled vault char/emoji fix ( |
| Human/CI CLI vault scan (agents prefer MCP) |
| Human/CI CLI vault fix (agents must use MCP |
|
|
Wiki scans use the same rules but do not gate build (the vault lives outside the package). Phrase-pack hits need a manual rewrite; chars/emoji are auto-fixed. Prefer the wiki-slop skill over ad-hoc CLI flags.
Safe write workflow
Read -
notewithaction: "read"; note therevisionHash(full note) and legacycontentHash(body only).Edit -
notewithaction: "update"using the safest mode for surgical edits (patch,replace_section,append,prepend). For wholesale page rewrites, use a singlereplace. Prefer one combinedupdatethat also passesfrontmatter(merge) so body + metadata share oneoperationId.Pass
expectedRevisionfrom step 1 to detect concurrent edits (including frontmatter-only changes).expectedHashstill works as a deprecated body-hash alias.On success, record
operationIdwhen present and replace any cachedrevisionHashfor that path with the response value. To reverse:vaultundowithoperationIdandconfirm: true.
Same-path edits in one session
Never fire parallel
notemutations for the same path.Pattern:
read-> immediate write with thatrevisionHash-> use the responserevisionHashfor any further write to that path.Prefer combined body +
frontmatteron oneupdateover a body write then a separatefrontmattercall.On
hash_mismatch, preferdetails.currentRevisionfor frontmatter-only / full-replaceretries; re-read when re-deriving apatch/replace_section.
Undo example
{ "action": "history", "limit": 10 }{ "action": "undo", "operationId": "<id-from-mutation>", "confirm": true }Manifest example
{
"action": "manifest",
"manifestOperation": "upsert_source",
"sourceKey": "C:/abs/path/paper.pdf",
"sourceIngested": "2026-07-13T00:00:00Z",
"sourcePages": ["concepts/foo"]
}Security model
Cursidian is a local stdio MCP server. It trusts the Cursor process that launches it and the OS user that owns the vault directory. There is no network attack surface in normal use; hardening focuses on path containment, bounded I/O, and recoverable writes when agents or external editors touch the vault.
Layer | What it guarantees |
Lexical containment | Resolved paths must stay under |
Real-path containment | Symlinks/junctions that resolve outside the vault are rejected before reads and writes. |
Symlink-safe discovery | Vault scans use |
Atomic single-file writes | Creates use exclusive open; updates use same-directory temp + rename under a per-path lock. |
Optimistic concurrency |
|
Multi-file rollback | Rename (including source backup), backlink rewrites, and |
For untrusted agents or shared machines, run with OBSIDIAN_READ_ONLY=true and restrict vault directory ACLs to least privilege.
Backups (.cursidian-trash)
When OBSIDIAN_BACKUP_ENABLED is true (default), each mutating MCP call journals under .cursidian-trash/<operationId>/ (prior snapshots for every affected path, including creates so undo can remove them):
Operation | Journaled |
| Yes |
| Yes |
| Yes |
| Yes (source + each rewritten backlink/index file) |
| Yes |
| Yes ( |
| Yes (each changed note; |
| Yes ( |
| Yes |
Legacy .obsidian-mcp-trash entries are migrated into .cursidian-trash/_legacy-migrated/ on first backup (not deleted). Retention keeps the newest 50 operation folders by default; older folders are pruned automatically. With backups disabled, mutations still succeed but return undoAvailable: false.
Environment variables
Variable | Required | Description |
| Yes | Absolute path to your Obsidian vault ( |
| No | Set to |
| No | Max file size in bytes (default 10 MB) |
| No | Pre-write backups to |
| No |
|
Development
npm run dev # run server directly (stdio)
npm test # vitest with coverage
npm run test:file -- tests/tools/read-note.test.ts # focused test file, no coverage threshold
npm run test:clean # coverage run through npm env cleanup for Cursor sandboxes
npm run lint # eslint
npm run typecheck
npm run build # slop:check (prebuild), then tsc
npm run verify # lint + typecheck + test + build + MCP integration + skills check + fixture smoke
npm run smoke # live smoke against OBSIDIAN_VAULT_PATH (unique path, finally cleanup)
npm run skills:check
npm run mcp:test -- suite smokeIn Cursor agent sandboxes, npm may inherit a deprecated npm_config_devdir value. Use
npm run verify or npm run test:clean so child processes run through the repository's
npm environment cleanup. On Windows PowerShell, prefer these scripts over manual &&
command chains.
Isolated tool calls:
npm run mcp:test -- note --action read --path index
npm run mcp:test -- search --query "wiki index" --limit 10
npm run mcp:test -- --listLicense
MIT - see LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceEnables AI agents to explore, search, and manage local Obsidian vault documents with tools for document search, automatic frontmatter property generation, and attachment organization.Last updated5752ISC
- Alicense-qualityDmaintenanceEnables AI assistants to interact with Obsidian vaults through direct filesystem access, supporting note management, lightning-fast search with SQLite indexing, image analysis, tag/link management, and bulk operations.Last updatedMIT
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with local Obsidian vaults through direct filesystem access for reading, creating, and managing notes. It features high-performance SQLite indexing for fast searches, regex support, and tools for organizing tags and links without requiring additional plugins.Last updated271MIT
- Alicense-qualityDmaintenanceEnables AI agents to manage Obsidian vaults through full CRUD operations, wikilink management, and section-level manipulation. It supports frontmatter editing, tag-based searching, and automated link updates to maintain vault integrity.Last updatedMIT
Related MCP Connectors
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Securely search and manage workspace context files for AI agents and teams.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/CoolJohn-lab/Cursidian'
If you have feedback or need assistance with the MCP directory API, please join our Discord server