Get the code
Clone the repository, install the locked dependencies, and run the test suite. You need Node.js 20 or newer.
# clone and buildgit clone https://github.com/nhangen/obsidian-mcp.gitcd obsidian-mcpnpm ci && npm run build && npm test
Documentation
Install the server, connect a harness, and read the write contract. Everything runs on the host that holds your vault.
Clone the repository, install the locked dependencies, and run the test suite. You need Node.js 20 or newer.
# clone and buildgit clone https://github.com/nhangen/obsidian-mcp.gitcd obsidian-mcpnpm ci && npm run build && npm test
The stdio server starts in the read profile. Set MCP_STDIO_PROFILE=write to expose the write tools.
# read-onlyclaude-obsidian-mcp --vault /absolute/path/to/vault # with guarded writesMCP_STDIO_PROFILE=write claude-obsidian-mcp \ --vault /absolute/path/to/vault --daily-path Daily/
Claude Code and Codex users can skip both steps. The plugin installs or reuses a verified runtime for you.
# claude codeclaude plugin install nhangen/obsidian # then, inside a session/obsidian:setup
Each guide registers obsidian for reads and obsidian-write for guarded writes.
What a write accepts, what it returns, and how to retry it safely.
How sessions and commits reach the vault without a second writer.
Serve one vault to remote clients with scoped tokens.