Obsidian Vault MCP logo

Obsidian Vault MCP

Community
luffysolution-svg

obsidian-vault-mcp

Publisherluffysolution-svg
Repositoryobsidian-vault-mcp
LanguagePython
Forks
7
Stars
91
Available tools
0
Transport typestdio
LicenseMIT
Links
  • Connect tools to AI workflows

    Obsidian Vault MCP exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    91 stars and 7 forks from the linked repository.

Obsidian Vault MCP

面向科研文献工作流的本地 MCP 服务:以 Zotero 管理来源,以 MinerU 提取全文,以 Obsidian 沉淀文献、Wiki 与结构化 Analysis,并通过 Skills 让 AI Agent 按可追溯流程工作。

English · 完整安装教程 · 开发文档 · 更新日志 · 贡献者

架构

text
用户自然语言任务
        ↓
7 个科研 Skills:识别意图、规划步骤、约束证据与输出
        ↓
31 个 MCP Tools:版本契约、查询、导入、解析、检索、校验与事务写入
        ↓
Zotero Desktop ── PDF ── MinerU ── Obsidian Vault
                                      ├─ Literature 主笔记
                                      ├─ PDF 与全文 Markdown
                                      ├─ Index / Literature.base
                                      ├─ Wiki
                                      └─ 五类 Analysis / Analysis.base

项目不绑定大模型供应商。MCP Tools 负责确定性的本地数据操作,Skills 负责把工具编排成可复用的科研工作流。

核心功能

  • 稳定文献身份:以 Zotero 父条目 zoteroKey 作为主键。
  • Zotero 导入与同步:支持单篇、Collection、notes、annotations、BibTeX、存储附件和链接附件。
  • MinerU 全文解析:将 PDF 规范化为 Markdown,每篇文献使用独立图片目录和相对链接。
  • Obsidian 文献库:自动维护 Literature/index.md、Literature/Literature.base、主笔记、PDF、全文和 Wiki。
  • 结构化研究层:支持 full_read、literature_review、passage_qa、figure_qa、concept 五类 Analysis。
  • 统一数据库视图:Literature/Analysis/Analysis.base 提供 9 个视图。
  • 科研 Skills:内置 paper-qa、full-read、passage-qa、figure-qa、compare-papers、literature-review、concept-learning。
  • 安全写入:支持 dry-run、staging、锁、备份、原子替换、事务预览和回滚。
  • 版本可验证:literature_version 返回当前版本、31 个工具、7 个 Skills 和五类 Analysis。
  • 多客户端接入:支持 Codex、Claude Code、OpenCode、Pi、Hermes 和 WorkBuddy。

效果展示

文献目录

Literature Index

多篇文献形成的可追溯 Wiki

安装

3.0.2 已正式发布,要求 Python 3.10+。以下公开安装命令现已可用。

uv(推荐)

powershell
uv tool install "zotero-obsidian-mcp==3.0.2"
obsidian-vault-mcp --help

无需持久安装:

powershell
uvx --from "zotero-obsidian-mcp==3.0.2" obsidian-vault-mcp doctor --vault-path "<VAULT_PATH>"

pipx / pip

powershell
pipx install "zotero-obsidian-mcp==3.0.2"
# 或
python -m pip install "zotero-obsidian-mcp==3.0.2"

MCP Registry

text
io.github.luffysolution-svg/obsidian-vault-mcp

等价的 stdio 配置:

json
{
  "mcpServers": {
    "obsidian-literature": {
      "command": "uvx",
      "args": [
        "--from",
        "zotero-obsidian-mcp==3.0.2",
        "obsidian-vault-mcp",
        "serve",
        "--transport",
        "stdio"
      ],
      "env": {
        "OBSIDIAN_VAULT_PATH": "<VAULT_PATH>"
      }
    }
  }
}

首次配置

目标目录必须是已由 Obsidian 打开过的 Vault,并包含 .obsidian/。

powershell
obsidian-vault-mcp config init --vault-path "<VAULT_PATH>" --dry-run
obsidian-vault-mcp config init --vault-path "<VAULT_PATH>"
obsidian-vault-mcp config validate --vault-path "<VAULT_PATH>"
obsidian-vault-mcp doctor --vault-path "<VAULT_PATH>"
obsidian-vault-mcp call literature_version --json '{}'

启动 Zotero Desktop 并启用本地 API:

powershell
obsidian-vault-mcp call zotero_search_items --json '{"query":"photocatalysis"}'
obsidian-vault-mcp import item ABCD1234 --vault-path "<VAULT_PATH>" --dry-run
obsidian-vault-mcp import item ABCD1234 --vault-path "<VAULT_PATH>"

链接附件配置:

json
{
  "zotero": {
    "linkedAttachmentBaseDir": "<ZOTERO_LINKED_ATTACHMENT_BASE_DIR>"
  }
}

MinerU 解析:

powershell
obsidian-vault-mcp mineru parse ABCD1234 --vault-path "<VAULT_PATH>" --dry-run
obsidian-vault-mcp mineru parse ABCD1234 --vault-path "<VAULT_PATH>"

规范产物:

text
Literature/attachment/MinerU/ABCD1234.md
Literature/attachment/MinerU/image/ABCD1234/ABCD1234-fig01.png

Agent 与插件安装

powershell
obsidian-vault-mcp agent install codex --dry-run
obsidian-vault-mcp agent install codex

客户端名称可替换为 claude、opencode、pi、hermes 或 workbuddy。

客户端安装内容
Codex原生 marketplace 插件、MCP 和 7 Skills
Claude Code原生 marketplace 插件、MCP 和 7 Skills
OpenCode项目本地 MCP 和 7 Skills
Pi薄 TypeScript Extension
HermesMCP 配置
WorkBuddyMCP 配置

GitHub Release 中的离线插件包:

text
obsidian-vault-mcp-3.0.2-plugins.zip

Skills

Skill工作流
paper-qa单篇快速问答,默认不写入 Vault
full-read单篇完整精读并保存 full_read
passage-qa定位具体段落、方法、数据或结论
figure-qa解读图、表、Scheme 和方程
compare-papers对用户选定论文建立可比性矩阵
literature-review对文献池进行主题化综述
concept-learning跨文献建立概念模型

正式工具面

分组数量
版本、系统与配置5
Zotero6
导入与同步4
MinerU3
导航与校验3
Analysis5
Wiki3
事务2
合计31

发布一致性

3.0.2 必须同时出现在 Python 包、运行时 __version__、MCP Registry server.json、Codex/Claude 插件清单、Pi 包、Git Tag v3.0.2、GitHub Release 和 PyPI 中。Release workflow 会校验版本、Tag 和产物身份,构建 wheel、sdist、插件 ZIP,执行测试与 handshake,并生成 SHA256SUMS。

安全边界

  • 所有写操作先 dry-run,再提交并保存 transactionId。
  • 不要提交 Vault 绝对路径、Zotero 数据目录、MinerU token 或其他凭据。
  • MinerU 可能把 PDF 发送到外部服务,使用前确认授权和组织政策。
  • 推荐本地 stdio;SSE/HTTP 必须放在可信认证边界之后。
  • 事务备份不替代独立的 Vault 备份。

贡献者

感谢 方珸 / Lym Fang (@LimFang) 提出 Zotero 链接附件兼容方案。完整记录见 CONTRIBUTORS.md。

Use Obsidian Vault MCP MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Obsidian Vault MCP is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Obsidian Vault MCP as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Obsidian Vault MCP MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "obsidian-vault-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Obsidian Vault MCP MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Obsidian Vault MCP MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Obsidian Vault MCP to help me with this task?
Obsidian Vault MCP
Sure. I read it.
Here is what I found using Obsidian Vault MCP.

Frequently asked questions

What is the Obsidian Vault MCP MCP server used for?

Obsidian Vault MCP is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Obsidian Vault MCP MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Obsidian Vault MCP with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Obsidian Vault MCP MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Obsidian Vault MCP connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Obsidian Vault MCP MCP to TypingMind?

Obsidian Vault MCP runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Obsidian Vault MCP MCP provide in TypingMind?

Obsidian Vault MCP exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Obsidian Vault MCP MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Obsidian Vault MCP requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇