Obsidian-MCP-For-Cursor
Provides tools for reading, writing, creating, deleting, and searching notes in an Obsidian vault, along with frontmatter and folder management.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Markdown-based note-taking with a hosted MCP server. Your notes serve you and your AI.
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Hosted Notion MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Related MCP Servers
- AlicenseAqualityBmaintenanceFilesystem first MCP server for Obsidian vaults with an LLM-Wiki layer on top.6695 npm8Apache 2.0
- AlicenseAqualityCmaintenanceLocal-first MCP server for working with an Obsidian vault. No API key required1717MIT
- 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.796 npm3,133MIT