obsidian-git-mcp
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., "@obsidian-git-mcpsearch my vault for meeting notes about Q3 planning"
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-git-mcp
An MCP server for git-backed Obsidian vaults. Every write an AI collaborator makes becomes a validated, attributed git commit pushed to the vault's canonical remote — or it doesn't happen at all.
What does it do?
Wraps MCPVault in-process for the vault tool surface: search, read, create, patch, frontmatter, and tags.
Runs every write as a git transaction: lock, verify the checkout is clean, fetch, fast-forward to the remote, apply the change, validate it, commit, push, and return the commit SHA.
Rolls the checkout back to its pre-transaction state when any step fails, so a failed write leaves nothing behind.
Refuses conflicting concurrent edits instead of guessing a merge. A push race with a non-conflicting remote commit retries a bounded number of times; an actual conflict stops immediately.
Attributes each commit to the collaborator that made it, so
git log --author=ChatGPTis the audit trail. The service itself stays the committer.Adds the git-aware tools MCPVault doesn't have:
vault_status,list_recent_changes, andappend_to_section.Ships destructive tools (
delete_note,move_note) disabled by default, and denies.obsidian/writes and path traversal at both the path-filter and transaction layers.
Why create this?
My vault's main branch on GitHub is the canonical copy of my second brain, and AI collaborators read and write it directly. The existing git-flavored vault MCP servers either treat the local checkout as a disposable cache the remote overwrites, or batch writes on a debounce timer and push whenever — which means a concurrent edit can silently vanish, and a "successful" write may never reach the remote. That's not acceptable for a vault that multiple agents and my own devices sync against, so this server makes git the transaction boundary: a write either lands as a pushed, attributed, validated commit, or the checkout rolls back and the caller is told why.
Running it
Point the server at a normal git clone of your vault (never your live Obsidian directory — the checkout is the server's workspace and it will hard-reset it to the remote when recovering from a crash):
obsidian-git-mcp /path/to/vault-checkoutThe server speaks MCP over stdio. Configuration comes from environment variables:
Variable | Default | Purpose |
| (required) | Name recorded as the git author of every write |
| derived from the name | Email recorded as the git author |
|
| Name recorded as the git committer |
|
| Email recorded as the git committer |
|
| Branch the transaction wrapper syncs and pushes |
|
| Remote the transaction wrapper fetches and pushes |
| unset | Set to |
Example Claude Code registration:
claude mcp add vault -e OGM_COLLABORATOR="Claude Code" -- obsidian-git-mcp /path/to/vault-checkoutStatus
Phase 1 spike: the contract-test suite and transaction wrapper are being built TDD-first to decide whether MCPVault stays the underlying tool surface. The verdict and its rationale will be recorded here.
This server cannot be installed
Maintenance
Latest Blog Posts
- 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/CTristan/obsidian-git-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server