Obsidian Vault MCP

Obsidian Vault MCP

Enables Claude to read, search, and edit your Obsidian notes via a GitHub-synced vault, all hosted for free on Render with no credit card needed.

Category
访问服务器

README

Obsidian Vault MCP (free, no card, no always-on computer needed)

This gives Claude (mobile, desktop, web) read access to your Obsidian vault through a small server hosted for free on Render, reading straight from a GitHub repo. Your vault syncs to GitHub from your phone and desktop via the Obsidian Git plugin — nothing needs to stay powered on.

Pieces

  • GitHub repo — the vault's source of truth (free, private).
  • Obsidian Git plugin — auto-commits/pushes/pulls from desktop + phone.
  • This MCP server — reads the repo via GitHub's API, exposes list_notes, read_note, search_notes over MCP. Deployed free on Render.
  • Graphify — optional, run locally, commit its output into the repo like any other notes.

1. Create the GitHub repo

  1. github.com → New repository → name it e.g. obsidian-vault → Private → Create.
  2. Settings → Developer settings → Personal access tokens → Fine-grained token:
    • Repository access: only this repo.
    • Permissions: Contents → Read and write (needed so Claude can create and edit notes, not just read them).
    • Copy the token — you'll paste it into Render as GITHUB_TOKEN.

2. Wire up Obsidian Git (desktop + phone)

  1. Obsidian → Settings → Community plugins → browse → install Obsidian Git.
  2. Point your vault folder at a local clone of the repo (or git init it in place and add the GitHub repo as origin).
  3. In the plugin settings, turn on auto backup on interval (e.g. every 10 min) and auto pull on load — it'll commit + push + pull for you.
  4. On phone: install Obsidian mobile, add the same plugin (it works on iOS/Android), sign in to GitHub in the plugin's auth screen.

Now every device pushes/pulls to the same repo — that repo is your sync layer.

3. Deploy the MCP server to Render (free)

  1. Push this folder (server.js, package.json, render.yaml) to its own public or private GitHub repo (separate from the vault repo).
  2. render.com → New → Web Service → connect that repo.
  3. It should auto-detect render.yaml. If not: Build command npm install, Start command npm start, plan Free.
  4. Add environment variables:
    • GITHUB_TOKEN — the fine-grained token from step 1
    • GITHUB_OWNER — your GitHub username
    • GITHUB_REPO — your vault repo name (e.g. obsidian-vault)
    • GITHUB_BRANCH — main (or whatever your default branch is)
    • MCP_SHARED_SECRET — make up a random string; this keeps randoms who find your Render URL from reading your vault
  5. Deploy. You'll get a URL like https://obsidian-vault-mcp.onrender.com.

Free tier note: it sleeps after ~15 min idle and takes a few seconds to wake on the next request — fine for occasional Claude queries.

4. Connect it to Claude

In Claude → Settings → Connectors → Add custom connector:

  • URL: https://<your-app>.onrender.com/mcp
  • Header: Authorization: Bearer <your MCP_SHARED_SECRET>

Then just ask Claude to search, read, or edit your notes — it'll call search_notes / read_note / list_notes / write_note / delete_note automatically. Writes commit straight to the repo, so they'll show up on your phone/desktop next time Obsidian Git syncs (or immediately if you have auto-pull-on-interval turned on).

Heads up on writes: write_note overwrites the whole file — for edits to an existing note, have Claude read it first, then write back the full updated content. delete_note is a real, permanent git commit; it's worth asking Claude to confirm with you before deleting anything.

5. Graphify — automatic, free, no hosting needed

Graphify builds a knowledge graph from your notes. Semantic extraction needs an LLM, and the free option that doesn't need any hosting is Google's Gemini API free tier (no credit card, doesn't expire).

Get a free Gemini key:

  1. Go to aistudio.google.com, sign in with a Google account.
  2. Get API key → Create API key. Copy it.

Add the GitHub Actions workflow:

  1. In your vault repo, create .github/workflows/graphify.yml with the contents from this project's vault-workflow/.github/workflows/graphify.yml.
  2. Repo → Settings → Secrets and variables → Actions → New repository secret:
    • Name: GEMINI_API_KEY
    • Value: the key from AI Studio
  3. Repo → Settings → Actions → General → Workflow permissions → set to Read and write permissions (so the workflow can commit the graph back).
  4. It runs automatically once a day, and also whenever you push a change to the vault. You can also trigger it manually from the repo's Actions tab.

This produces graphify-out/graph.json and graphify-out/GRAPH_REPORT.md in your vault repo — no server, no Space, nothing to keep running.

The MCP server already has tools for it (graph_overview, graph_find_node, graph_neighbors) — they read the graph straight from GitHub the same way read_note does. Nothing extra to deploy; just redeploy the updated server.js to Render and they'll show up next time Claude connects.

Local test (optional, before deploying)

npm install
GITHUB_TOKEN=xxx GITHUB_OWNER=you GITHUB_REPO=obsidian-vault npm start

Then POST to http://localhost:3000/mcp with an MCP client, or just deploy straight to Render and test through Claude.

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选