obsidian-gate

obsidian-gate

Enables AI agents to read, search, write, and link notes in an Obsidian vault via MCP tools and resources.

Category
Visit Server

README

Obsidian Gate

An MCP server that opens your Obsidian vault to any AI agent.

npx obsidian-gate init     # point at your vault
npx obsidian-gate          # dashboard on :3100

npm License: MIT


Your Obsidian vault is your second brain. Your AI agents should be able to use it.

Claude Code, Codex, Cursor — one line of config and your vault becomes an agent-accessible workspace. Every note, every link, every tag. All local, all yours, no cloud.


Try It

# One command to set up
npx obsidian-gate init

# Start the dashboard
npx obsidian-gate
# → http://localhost:3100/dashboard

That's it. Your agents can now read, search, and write to your vault.


Quick Start

1. Point at your vault

npx obsidian-gate init

You'll be asked for your vault path. Paste it in, get an API key back.

2. Connect your agent

Claude Code — drop this into your MCP config:

{
  "mcpServers": {
    "obsidian": {
      "command": "npx",
      "args": ["obsidian-gate", "--mcp"]
    }
  }
}

Any MCP client over HTTP:

{
  "mcpServers": {
    "obsidian": {
      "type": "http",
      "url": "http://localhost:3100/mcp",
      "headers": { "Authorization": "Bearer sk-your-key" }
    }
  }
}

3. Ask your agent

Try these:

Prompt What happens
"What did I work on yesterday?" Agent reads your daily note
"Search my vault for Kubernetes notes" Full-text search across every note
"Save this debugging session to my vault" Creates a new note with frontmatter
"Link my meeting notes to the project notes" Adds a [[wikilink]]

Tools — 9 Operations

Tool What it does
list_notes(path?) List notes and folders in a vault folder
read_note(path) Full note content + parsed frontmatter
search_notes(query, limit?) Full-text search with ranked results and snippets
create_note(path, content, frontmatter?) New note with vault template frontmatter
update_note(path, content, mode?) Overwrite or append to a note
get_backlinks(path) Every note linking here via [[wikilink]]
get_tags() All tags — frontmatter and inline — with counts
get_daily_note(date?) Get or create the daily note (today, yesterday, -1, ISO)
create_link(from, to, label?) Add a [[wikilink]] under ## Related

Notes are also exposed as MCP resources: obsidian://{vault}/{path}.


CLI

Command What it does
init Interactive setup wizard
serve (default) Dashboard + MCP HTTP on :3100
--mcp Run as MCP server over stdio
doctor Verify vault access and all 9 tools
keys list Show agent connections
keys new <name> Create a new API key
keys rotate <id> Rotate a key
keys revoke <id> Revoke a key
vault list Configured vaults
vault add <name> <path> Add a vault
vault remove <name> Remove a vault
license status Your plan and usage
license set <key> Activate a license key
activity Agent activity log

Pricing

Tier Price What you get
Free $0 50 queries/month, 1 vault, 1 agent
Personal $19/mo Unlimited queries, 3 vaults, unlimited agents
Team $49/mo Everything in Personal + shared config, priority support

14-day free trial on paid plans. No risk. Cancel anytime.


Architecture

┌────────────┐     ┌──────────────────────┐     ┌──────────────┐
│ AI Agent   │────▶│   obsidian-gate      │────▶│  Obsidian    │
│ (Claude,   │◀────│   (MCP Server)       │◀────│  Vault       │
│  Codex,    │     │                      │     │  (files)     │
│  Cursor)   │     │  stdio ─ dashboard   │     └──────────────┘
└────────────┘     └──────────────────────┘
  • All local. Every byte lives on your machine. No cloud, no servers, no sync.
  • Config in ~/.obsidian-gate/config.json (mode 0600)
  • API keys are local secrets. You own the stack.
  • Activity log tracks every agent action in JSONL.

What Gate Is Not

  • ❌ Not an Obsidian plugin (but a community plugin is planned)
  • ❌ Not a sync engine (reads/writes your vault directory directly)
  • ❌ Not a note editor (Obsidian is better at that)
  • ❌ Not a cloud service (runs entirely on your machine)

It's one small thing done well: an MCP server for your vault.


Roadmap

  • [x] MCP server with 9 tools
  • [x] Local dashboard + activity log
  • [x] API key auth + permissions
  • [x] Stripe licensing (free + paid tiers)
  • [ ] Obsidian community plugin (one-click install)
  • [ ] Agent write-back with LLM frontmatter
  • [ ] Auto-tagging from vault content
  • [ ] Daily digest: what changed in your vault

Development

git clone https://github.com/rileygramlich/obsidian-gate.git
cd obsidian-gate
npm install
npm run build     # compile TypeScript → dist/
npm run dev       # hot-reload with tsx

Built by Riley G. — inspired by the Marc Lou playbook: ship fast, free tier, zero ad spend, build in public.

MIT — build on it, ship it, sell it.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured