obsidian-gate
Allows AI agents to interact with an Obsidian vault, providing tools for reading, searching, creating, updating notes, managing backlinks, tags, daily notes, and creating wikilinks.
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-gatesearch my vault for Kubernetes notes"
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.
Vault Gate
Let AI assistants read, search, and write your Obsidian notes — without leaving your computer.
Vault Gate runs a small MCP server inside Obsidian. Turn it on, click Connect next to Claude or Cursor, and your assistant can work with your vault. No terminal, no Node install, no vault path to configure.
Setup
Install Vault Gate from Obsidian's community plugins and enable it.
The setup guide opens. Choose what assistants may do — reading and searching are on, writing is off.
Click Connect next to the assistant you use. Restart that app.
That's it. Ask it something:
Ask | What happens |
"What did I write about last week?" | Reads your daily notes |
"Search my vault for Kubernetes notes" | Full-text search across every note |
"Summarise my meeting notes from March" | Finds them, reads them, summarises |
"Save this to my vault as a note" | Creates a note (needs write access) |
Connecting writes the settings into the assistant's own config file and leaves a .gate-backup copy beside it. You can undo it any time with Disconnect.
Assistants Gate can set up for you
Claude Desktop · Claude Code · Cursor · VS Code (Copilot) · Windsurf
Anything else that speaks MCP works too — hit Copy configuration and paste it into that client's config.
Related MCP server: obsidian-mcp
What your assistant can do
Nine tools, gated by the three permissions you set in settings.
Tool | Needs | What it does |
| Read | List notes and folders |
| Read | A note's content and frontmatter |
| Read | Every note linking to this one |
| Read | All tags, with counts |
| Read | Today's note, created if missing |
| Search | Ranked full-text search with snippets |
| Write | A new note, with your frontmatter template |
| Write | Overwrite or append |
| Write | Add a |
Notes are also readable as MCP resources at obsidian://{vault}/{path}.
Privacy and safety
Nothing leaves your machine. The server binds to
127.0.0.1and there is no cloud component. Your assistant sends your notes wherever it normally sends your conversation — Gate itself uploads nothing and phones nowhere.Only while Obsidian is open. Close Obsidian and the door closes.
Every request needs the token Gate generates for you. Regenerate it any time.
Requests from web pages are refused. A page you have open in a browser can otherwise reach
localhost; Gate checks theOriginheader and turns those away.Write access is off by default. Turn it on when you want an assistant editing notes, not before.
The
.obsidianconfig folder is off limits, and paths that try to climb out of the vault are rejected.
Settings
Setting | Default | Notes |
Start automatically | On | Runs whenever Obsidian is open |
Port | 22360 | Change if something else holds it |
Name in assistant configs |
| The key agents see the server under |
Access token | generated | Copy or regenerate |
Daily notes folder | vault root | Where |
Search results | 50 | Cap per search |
Commands: Start or stop the MCP server, Copy MCP configuration to clipboard, Open setup guide.
Manual configuration
For a client Gate doesn't know about:
{
"mcpServers": {
"obsidian": {
"type": "http",
"url": "http://127.0.0.1:22360/mcp",
"headers": { "Authorization": "Bearer YOUR_TOKEN" }
}
}
}Copy the filled-in version from Settings → Vault Gate → Copy configuration. VS Code puts this under servers rather than mcpServers.
Troubleshooting
The assistant doesn't see the vault. Restart the assistant — most read their MCP config only at startup. Check the status bar says Gate :22360.
"Port already in use." Something else has 22360. Change the port in settings, then Connect again so the new URL is written out.
Connected, but every call fails. The token was regenerated after you connected. Click Reconnect.
Nothing happens on mobile. Gate is desktop-only — Obsidian mobile can't open a local port.
Development
npm install
npm run dev # esbuild watch → main.js
npm run build # typecheck + production bundle
npm test # node:test suiteTo try it in a real vault, symlink this folder into <vault>/.obsidian/plugins/vault-gate and reload Obsidian.
The tests cover the parts that don't need an Electron runtime: the markdown and frontmatter helpers, the tool dispatcher and its permission checks, the MCP protocol layer, the HTTP server's auth and origin handling, and the client-config writer. src/vault.ts talks to the Obsidian API and is exercised by hand in a vault.
Layout
manifest.json the plugin, as the community store reads it
src/
main.ts plugin lifecycle, status bar, commands
settings-tab.ts the settings screen
wizard.ts first-run setup
server.ts the localhost HTTP endpoint
mcp.ts MCP over JSON-RPC
tools.ts the nine tools and their permissions
vault.ts vault access through Obsidian's API
markdown.ts frontmatter, links, tags, dates
server/ standalone CLI version — a separate Node MCP server
that reads a vault off disk. Not needed for the plugin.Releasing
npm version patch # updates manifest.json and versions.json too
git push --follow-tagsThe tag triggers .github/workflows/release.yml, which builds and attaches main.js, manifest.json, and styles.css to a GitHub release — the layout Obsidian's installer expects.
MIT — build on it, ship it, sell it. Built by Riley G.
This server cannot be deployed
Maintenance
Related MCP Connectors
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
MCP-native notes and memory for ChatGPT, Claude, and other AI tools.
Agent-native notes, tasks, dev-docs, vaults, sync & handoffs. MCP + OpenAPI dual surface.
Search and reason over your Obsidian-style Markdown vault, right from ChatGPT.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to search, read, and append content to notes in an Obsidian vault via the MCP protocol.6,222BSD Zero Clause
- AlicenseBqualityBmaintenanceBridges Obsidian vaults with MCP-compatible AI tools, enabling read/write/search of notes, task management, and vault operations through 34 tools and prompt templates.34583MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to remotely access and interact with Obsidian vaults via MCP, supporting note operations, tag management, graph queries, and command execution.4GPL 3.0
- FlicenseNot gradedqualityCmaintenanceEnables reading, writing, searching, and managing Obsidian vault notes through MCP tools and prompts, allowing AI agents to interact with local knowledge bases.-