obsidian-gate

obsidian-gate

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

Category
访问服务器

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.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选