Obsidian-MCP-For-Cursor
Provides tools for reading, writing, creating, deleting, and searching notes in an Obsidian vault, along with frontmatter and folder management.
Click on "Deploy 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., "@Obsidian-MCP-For-CursorRead note 'Meeting Notes' and display the content."
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.
Obsidian-MCP-For-Cursor
MCP server for Obsidian vaults, optimised for Cursor agents — safe note editing, lean tool surface, direct filesystem access.
Forked from @istrejo/obsidian-mcp (MIT) with Cursor-specific enhancements.
Features
10 agent-focused tools — no unused
move_note,search_by_tags, orget_graphSafe writes —
patchandreplace_sectionmodes so agents cannot accidentally truncate notes with partialreplaceToken-AND search — multi-word vault search requires all terms to appear in a note
Optimistic concurrency —
contentHashon read, optionalexpectedHashon write
Related MCP server: obsidian-codex-mcp
Tools (v1)
Tool | Purpose |
| Read note body + frontmatter; returns |
| Safe edits: |
| Create a new note |
| Delete a note |
| List notes in the vault |
| Recently modified notes |
| Full-text search (token-AND for multi-word queries) |
| Get/set YAML frontmatter |
| Create/list vault folders |
| Notes linking to a given note |
Requirements
Node.js >= 20
An Obsidian vault path via
OBSIDIAN_VAULT_PATH
Setup
git clone https://github.com/JeddowesF/Obsidian-MCP-For-Cursor.git
cd Obsidian-MCP-For-Cursor
npm install
npm run build
npm testCursor configuration
Copy the relevant section from examples/cursor-mcp.json into ~/.cursor/mcp.json:
{
"mcpServers": {
"obsidian": {
"command": "node",
"args": ["/absolute/path/to/Obsidian-MCP-For-Cursor/dist/index.js"],
"env": {
"OBSIDIAN_VAULT_PATH": "/absolute/path/to/your/vault",
"PATH": "/opt/homebrew/bin:/usr/bin:/bin:/usr/sbin:/sbin"
}
}
}
}Reload the Cursor window after saving.
Safe write workflow
Read the note — note the
contentHashin the response.Edit using the safest mode:
patch— find/replace a unique substring (old_string/new_string)replace_section— replace content under a heading (heading+content)append/prepend— add content without touching existing bodyreplace— full body overwrite only; blocked if new body < 50% of existing unlessforce: true
Pass
expectedHashfrom step 1 to detect concurrent edits.
Example: patch a line
{
"path": "Projects/my-project",
"mode": "patch",
"old_string": "status: draft",
"new_string": "status: done"
}Example: replace a section
{
"path": "Projects/my-project",
"mode": "replace_section",
"heading": "Next steps",
"content": "- Ship v1\n- Write docs"
}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 |
|
Development
npm run dev # run server directly (stdio)
npm test # vitest with coverage
npm run lint # eslint
npm run typecheck
npm run buildLicense
MIT — see LICENSE. Upstream attribution: @istrejo/obsidian-mcp.
This server cannot be deployed
Maintenance
Related MCP Connectors
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Related MCP Servers
- AlicenseAqualityAmaintenanceFilesystem first MCP server for Obsidian vaults with an LLM-Wiki layer on top.66135 npm8Apache 2.0
- AlicenseAqualityAmaintenanceLocal-first MCP server for working with an Obsidian vault. No API key required1715MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that treats Obsidian vaults as knowledge graphs, enabling AI agents to traverse wikilinks, assemble token-budgeted context, and search with backlink awareness.3 npm1MIT
- AlicenseNot gradedqualityAmaintenanceBuilt-in MCP server that gives AI agents direct access to an Obsidian vault for reading, writing, searching notes, and executing commands.34 npm2,927MIT