Obsidian MCP Server
概览
作者提供的说明(英文原文)
Read, write, search, and surgically edit Obsidian notes, tags, and frontmatter via MCP.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i3 项中通过 3 项依据公开信息检查;尚未扫描代码
- 使用情况i正在增长↓ 7747/周 · ★ 702
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 在你的电脑上运行
- 传输方式: stdio, Streamable HTTP
- 分类: 文档、表格与办公
- 你需要填写:OBSIDIAN_API_KEY
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:3 项中通过 3 项
- 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
- 需要你自己填写:
OBSIDIAN_API_KEY,OBSIDIAN_BASE_URL,OBSIDIAN_VERIFY_SSL,OBSIDIAN_REQUEST_TIMEOUT_MS,OBSIDIAN_ENABLE_COMMANDS,OBSIDIAN_READ_PATHS,OBSIDIAN_WRITE_PATHS,OBSIDIAN_DENY_PATHS,OBSIDIAN_READ_ONLY,OBSIDIAN_DELETE_ELICITATION,OBSIDIAN_OMNISEARCH_URL,MCP_LOG_LEVEL
你需要
- npm已安装 Node.js(用于 npx 命令)
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": [
"-y",
"obsidian-mcp-server"
],
"env": {
"OBSIDIAN_API_KEY": "your-value",
"OBSIDIAN_BASE_URL": "your-value",
"OBSIDIAN_VERIFY_SSL": "your-value",
"OBSIDIAN_REQUEST_TIMEOUT_MS": "your-value",
"OBSIDIAN_ENABLE_COMMANDS": "your-value",
"OBSIDIAN_READ_PATHS": "your-value",
"OBSIDIAN_WRITE_PATHS": "your-value",
"OBSIDIAN_DENY_PATHS": "your-value",
"OBSIDIAN_READ_ONLY": "your-value",
"OBSIDIAN_DELETE_ELICITATION": "your-value",
"OBSIDIAN_OMNISEARCH_URL": "your-value",
"MCP_LOG_LEVEL": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add obsidian --env OBSIDIAN_API_KEY=your-value --env OBSIDIAN_BASE_URL=your-value --env OBSIDIAN_VERIFY_SSL=your-value --env OBSIDIAN_REQUEST_TIMEOUT_MS=your-value --env OBSIDIAN_ENABLE_COMMANDS=your-value --env OBSIDIAN_READ_PATHS=your-value --env OBSIDIAN_WRITE_PATHS=your-value --env OBSIDIAN_DENY_PATHS=your-value --env OBSIDIAN_READ_ONLY=your-value --env OBSIDIAN_DELETE_ELICITATION=your-value --env OBSIDIAN_OMNISEARCH_URL=your-value --env MCP_LOG_LEVEL=your-value -- npx -y obsidian-mcp-server运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"obsidian": {
"command": "npx",
"args": [
"-y",
"obsidian-mcp-server"
],
"env": {
"OBSIDIAN_API_KEY": "your-value",
"OBSIDIAN_BASE_URL": "your-value",
"OBSIDIAN_VERIFY_SSL": "your-value",
"OBSIDIAN_REQUEST_TIMEOUT_MS": "your-value",
"OBSIDIAN_ENABLE_COMMANDS": "your-value",
"OBSIDIAN_READ_PATHS": "your-value",
"OBSIDIAN_WRITE_PATHS": "your-value",
"OBSIDIAN_DENY_PATHS": "your-value",
"OBSIDIAN_READ_ONLY": "your-value",
"OBSIDIAN_DELETE_ELICITATION": "your-value",
"OBSIDIAN_OMNISEARCH_URL": "your-value",
"MCP_LOG_LEVEL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"obsidian": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"obsidian-mcp-server"
],
"env": {
"OBSIDIAN_API_KEY": "your-value",
"OBSIDIAN_BASE_URL": "your-value",
"OBSIDIAN_VERIFY_SSL": "your-value",
"OBSIDIAN_REQUEST_TIMEOUT_MS": "your-value",
"OBSIDIAN_ENABLE_COMMANDS": "your-value",
"OBSIDIAN_READ_PATHS": "your-value",
"OBSIDIAN_WRITE_PATHS": "your-value",
"OBSIDIAN_DENY_PATHS": "your-value",
"OBSIDIAN_READ_ONLY": "your-value",
"OBSIDIAN_DELETE_ELICITATION": "your-value",
"OBSIDIAN_OMNISEARCH_URL": "your-value",
"MCP_LOG_LEVEL": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
- Bearer token for the Obsidian Local REST API plugin (Settings → Community Plugins → Local REST API).
OBSIDIAN_BASE_URLenvBase URL of the Obsidian Local REST API. Default: http://127.0.0.1:27123 (enable "Non-encrypted (HTTP) Server" in plugin settings). Use https://127.0.0.1:27124 for the always-on HTTPS port (self-sign…OBSIDIAN_VERIFY_SSLenvWhether to verify the TLS certificate on the Obsidian endpoint. Default false because the plugin uses a self-signed cert.OBSIDIAN_REQUEST_TIMEOUT_MSenvPer-request timeout in milliseconds.OBSIDIAN_ENABLE_COMMANDSenvOpt-in flag for the command-palette pair (obsidian_list_commands + obsidian_execute_command). Off by default — Obsidian commands are opaque and can be destructive.OBSIDIAN_READ_PATHSenvOptional comma-separated vault-relative folder allowlist for reads. Prefix-based with implicit recursion; case-insensitive; backslashes read as slashes, repeated and trailing slashes and '.' segments…OBSIDIAN_WRITE_PATHSenvOptional comma-separated vault-relative folder allowlist for writes. Same syntax as OBSIDIAN_READ_PATHS. Unset = full vault, or the read scope when reads are restricted; paths in OBSIDIAN_DENY_PATHS…OBSIDIAN_DENY_PATHSenvOptional comma-separated vault-relative paths withheld from reads and writes. Same syntax as OBSIDIAN_READ_PATHS. Wins over both allowlists; denied paths are left out of listings, search results, and…OBSIDIAN_READ_ONLYenvGlobal read-only kill switch. When true, every write is denied regardless of OBSIDIAN_WRITE_PATHS, and the command-palette pair is suppressed (commands can mutate). Useful for shared or public-facing…OBSIDIAN_DELETE_ELICITATIONenvOpt-in delete confirmation. When true, obsidian_delete_note asks the user to confirm each delete through an elicitation round (the client must support elicitation), and HTTP startup requires a statef…OBSIDIAN_OMNISEARCH_URLenvOverride URL for the Omnisearch plugin HTTP server. Unset derives from OBSIDIAN_BASE_URL host with port 51361. Required only if the Omnisearch plugin is not on the default port.MCP_LOG_LEVELenvSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
- ✓ 通过
作者与仓库一致
注册名称已通过 GitHub 账户 cyanheads 验证,该账户拥有此仓库
- ✓ 通过
仍在维护
代码最后更新于8天前
- ✓ 通过
有许可证
使用 Apache-2.0
- – 不适用
端点有响应
它在你的电脑上运行,没有互联网端点
- – 不适用
使用 OAuth 登录
在你的电脑上运行,改用本地设置
- … 尚未检查
工具描述中没有隐藏指令
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与“文档、表格与办公”中的其他服务器比较i
- 星标数多于此分类中其他 3583 个服务器的 100%
- 发布到注册中心的时间比此分类中其他 3583 个服务器的 78% 更新
- 基础检查结果等于或优于此分类中其他 3583 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
Obsidian MCP Server 安全吗?
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
你需要填写:OBSIDIAN_API_KEY
它在我的电脑上运行还是在云端?
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
它还在维护吗?
GitHub 仓库最后更新于8天前,最新版本(3.8.0)于8天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
有什么可以替代它?
同一分类中有:Agent-Native Calendar, Excel MCP Server, MCP Server for Excel
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Excel MCP Server
Create and edit Excel files with AI: charts, PivotTables, formulas. No Excel needed.
MCP Server for Excel
Excel automation for AI - Sheets, Power Query, DAX, VBA, Tables, Ranges and more. Windows only.
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
obsidian-mcp-server Read, write, search, and surgically edit Obsidian vault notes, tags, and frontmatter via MCP. STDIO or Streamable HTTP. 14 Tools • 3 Resources
Overview
Your Obsidian vault, through the Local REST API plugin. Read, search, and write notes, edit a single heading, block, or frontmatter field in place, and manage tags, with folder-scoped read/write permissions built in.
Tools
| Tool | Description |
|---|---|
obsidian_get_note | Read a note as raw content, full structured form, document map, or a single section |
obsidian_list_notes | List notes and folders under a vault path, recursively, with extension and name filters |
obsidian_list_tags | List vault tags with usage counts, most-used first |
obsidian_search_notes | Search by text, JSONLogic, or BM25-ranked Omnisearch when that plugin is reachable |
obsidian_write_note | Create a note, replace one section, or overwrite a whole file with overwrite: true |
obsidian_append_to_note | Append to a note (creating it if missing) or to one heading, block, or frontmatter field |
obsidian_patch_note | Append, prepend, or replace against one heading, block reference, or frontmatter field |
obsidian_replace_in_note | Literal or regex search-replace inside one note, body-only by default |
obsidian_manage_frontmatter | Get, set, or delete one frontmatter key |
obsidian_manage_tags | Add, remove, or list a note's tags in frontmatter, inline, or both |
obsidian_delete_note | Permanently delete a note, optionally after the user confirms (OBSIDIAN_DELETE_ELICITATION) |
obsidian_open_in_ui | Open a file in the Obsidian app, optionally in a new pane |
obsidian_list_commands | List command-palette commands (opt-in via OBSIDIAN_ENABLE_COMMANDS) |
obsidian_execute_command | Run a command-palette command by ID (opt-in via OBSIDIAN_ENABLE_COMMANDS) |
Resources
| Resource | Description |
|---|---|
obsidian://vault/{+path} | A note's content, frontmatter, tags, and file metadata |
obsidian://tags | Every vault tag with its usage count, as an uncapped snapshot |
obsidian://status | Plugin reachability, auth status, versions, and registered API extensions |
Note and tag data are also reachable through tools (obsidian_get_note, obsidian_list_tags); obsidian://status has no tool equivalent.
Capability reference
obsidian_get_note tool
targetis a vaultpath, theactivefile, or aperiodicnote (dailythroughyearly, optionaldate);formatiscontent,full,document-map, orsection, andfulltakesincludeLinks: truefor vault-internal outgoing linksresult.formatdiscriminates the payload; asectionread that matches several headings returns the first and lists every full path incandidates- A
pathwith no exact match but one case-insensitive match in its folder reads that file:result.pathis the real name,requestedPaththe one sent, and anoticenames both
obsidian_list_notes tool
- Walks from
path(default vault root) todepth1–20 (default 2), filtered byextensionandnameRegex(≤256 chars); a folder that failsnameRegexis not walked - Returns
entries[](file/directory),totals, andappliedFilters; the walk stops at 1,000 entries withexcluded.reason: "entry_cap", and a folder the depth limit stopped carriestruncated: true - With
OBSIDIAN_READ_PATHSorOBSIDIAN_DENY_PATHSset, a listing holds only readable entries and the folders leading to the scope; those folders are walked and accepted aspath, and a denied folder is absent at every depth
obsidian_list_tags tool
nameRegex(≤256 chars) andminCountnarrow the set, then tags are ranked by count and capped atlimit(default 200, max 10000); hierarchical parents count (work/tasksadds towork)- When the cap withholds tags, the response carries
truncated,shown, andcap - With
OBSIDIAN_READ_PATHSorOBSIDIAN_DENY_PATHSset, only tags from readable notes are listed, andcountis the number of readable notes carrying the tag or a tag nested under it
obsidian_search_notes tool
mode: "text"requires every space-separated token ofqueryas a case-insensitive substring of the filename or body (quotes are literal), shaped bycontextLength(default 100),pathPrefix, andmaxMatchesPerHit(default 10);mode: "jsonlogic"evaluates alogictree overpath,content,frontmatter.,tags, andstat(pluslinks,backlinks, andunresolvedLinkson plugin versions that provide them, and not underOBSIDIAN_READ_PATHSorOBSIDIAN_DENY_PATHS), withglob/regexptaking[PATTERN, VALUE]result.modediscriminates the payload; every mode reportstotalCountand pages vianextCursor, and a text hit clipped tomaxMatchesPerHitcarriestruncatedandtotalMatchesmode: "omnisearch"(BM25 ranking, quoted phrases,-exclusion,path:/ext:filters) is offered only when the Omnisearch plugin answered at startup. It keeps its top 50 hits;path:,ext:, and plain terms apply before that cap, quoted phrases and-exclusionafter it.truncated: truemarks a result the cap may have cut, withtruncatedReasoncap_reached,filtered_after_cap, orread_scope; underOBSIDIAN_READ_PATHSorOBSIDIAN_DENY_PATHSit is alwaystrue, and a hit's membership andscorestill depend on the whole vault
obsidian_write_note tool
targetandcontent, with optionalsectionandcontentType(markdown/json); a whole-file write to an existing note fails withfile_existsunlessoverwrite: true- On a case-insensitive filesystem (macOS, Windows), a whole-file write to a path that differs from an existing note only in letter case fails with
case_variant_existsand writes nothing;existingPathnames that note when the parent folder's listing shows exactly one case match, and is omitted when several match or when a file Obsidian does not index (a dot-file) sits at the path - With
section, replaces only that heading, block, or frontmatter field and keeps the heading line; output reportscreated,sectionTargeted, and the resolvedsectionTarget
obsidian_append_to_note tool
- Without
section, appends to the file or creates it (created: true); withsection, appends to that heading, block, or frontmatter field of an existing note, andcreateTargetIfMissing: truecreates the section - A section append whose content is already at the target fails with
content_preexists; block targets add no separator, so startcontentwith a newline if you want one - A whole-file append to a path that differs from an existing note only in letter case fails with
case_variant_existson a case-insensitive filesystem, withexistingPathnaming that note when the parent folder's listing shows exactly one case match
obsidian_patch_note tool
operation: "append" | "prepend" | "replace"against onesectionof an existing note;patchOptionstakescreateTargetIfMissing,applyIfContentPreexists, andtrimTargetWhitespace(plugin v4.x only)- Echoes the resolved
sectionandoperation; a repeat of content already at the target fails withcontent_preexistsunlessapplyIfContentPreexists: true
obsidian_replace_in_note tool
replacements[]run in order, each over the previous one's output; each takesuseRegex(≤1024 chars),caseSensitive(defaulttrue),wholeWord,flexibleWhitespace(literal mode only), andreplaceAll(defaulttrue)- Returns
totalReplacementsandperReplacement[]withbodyCount/frontmatterCount scope: "body"(default) leaves frontmatter byte-identical;"frontmatter"and"both"re-parse the YAML afterward and write nothing if it breaks (frontmatter_invalid)
obsidian_manage_frontmatter tool
operation: "get" | "set" | "delete"on onekey;setrequires a JSON-typedvaluegetreturnsexistsandvalue(nullwhen absent);setanddeletereturn the fullfrontmatterafter the change, and adeleteagainst unparseable YAML fails withfrontmatter_invalidwithout writing
obsidian_manage_tags tool
operation: "add" | "remove" | "list"withtags;location: "frontmatter"(default, thetags:array),"inline"(body#tag;addappends at end of file), or"both"add/removereportapplied,skipped, and the resultingtags;listreturnsfrontmatter,inline, andall- Inline detection follows Obsidian's tag grammar: code, wikilinks, images, link destinations, HTML, and math are skipped, and
%% … %%comments are read
obsidian_delete_note tool
- Takes a
target(path, active file, or periodic note) and checks it against the write scope first; a folder path fails withpath_is_directory. There is no API-level undo, only Obsidian's local trash - The path must match exactly, letter case included, even on a case-insensitive filesystem. A different-case or extension-less spelling fails
note_missingbefore anything is deleted, naming the near matches insuggestions - By default the note is deleted on the first call, with no confirmation;
OBSIDIAN_WRITE_PATHS,OBSIDIAN_DENY_PATHS, andOBSIDIAN_READ_ONLYbound what it can reach - With
OBSIDIAN_DELETE_ELICITATION=true, the first call answers with a confirmation request naming the path and byte size, and the note is deleted only after the user accepts. Declining fails withcancelled, and a client without elicitation support cannot delete - In that mode an answer counts only against the single-use consent record stored when the prompt was shown, bound to the c