MCP server that interacts with Obsidian via the Obsidian rest API community plugin.
What is an MCP Server?
| Attribute | Details |
|---|---|
| Docker Image | https://hub.docker.com/repository/docker/mcp/obsidian |
| Author | https://github.com/MarkusPfundstein |
| Repository | https://github.com/MarkusPfundstein/mcp-obsidian |
| Attribute | Details |
|---|---|
| Dockerfile | https://github.com/docker/mcp-obsidian/blob/b20ad46eea43988a4c1a6f8ec7947ef4c6cbf9a9/Dockerfile |
| Commit | b20ad46eea43988a4c1a6f8ec7947ef4c6cbf9a9 |
| Docker Image built by | Docker Inc. |
| Docker Scout Health Score | !Docker Scout Health Score |
| Verify Signature | COSIGN_REPOSITORY=mcp/signatures cosign verify mcp/obsidian --key https://raw.githubusercontent.com/docker/keyring/refs/heads/main/public/mcp/latest.pub |
| Licence | MIT License |
| Tools provided by this Server | Short Description |
|---|---|
obsidian_append_content | Append content to a new or existing file in the vault. |
obsidian_batch_get_file_contents | Return the contents of multiple files in your vault, concatenated with headers. |
obsidian_complex_search | Complex search for documents using a JsonLogic query. |
obsidian_delete_file | Delete a file or directory from the vault. |
obsidian_get_file_contents | Return the content of a single file in your vault. |
obsidian_get_periodic_note | Get current periodic note for the specified period. |
obsidian_get_recent_changes | Get recently modified files in the vault. |
obsidian_get_recent_periodic_notes | Get most recent periodic notes for the specified period type. |
obsidian_list_files_in_dir | Lists all files and directories that exist in a specific Obsidian directory. |
obsidian_list_files_in_vault | Lists all files and directories in the root directory of your Obsidian vault. |
obsidian_patch_content | Insert content into an existing note relative to a heading, block reference, or frontmatter field. |
obsidian_simple_search | Simple search for documents matching a specified text query across all files in the vault. |
Tool: obsidian_append_content
Append content to a new or existing file in the vault.
| Parameters | Type | Description |
|---|---|---|
content | string | Content to append to the file |
filepath | string | Path to the file (relative to vault root) |
Tool: obsidian_batch_get_file_contents
Return the contents of multiple files in your vault, concatenated with headers.
| Parameters | Type | Description |
|---|---|---|
filepaths | array | List of file paths to read |
Tool: obsidian_complex_search
Complex search for documents using a JsonLogic query. Supports standard JsonLogic operators plus 'glob' and 'regexp' for pattern matching. Results must be non-falsy.
Use this tool when you want to do a complex search, e.g. for all documents with certain tags etc.
| Parameters | Type | Description |
|---|---|---|
query | object | JsonLogic query object. Example: {"glob": ["*.md", {"var": "path"}]} matches all markdown files |
Tool: obsidian_delete_file
Delete a file or directory from the vault.
| Parameters | Type | Description |
|---|---|---|
confirm | boolean | Confirmation to delete the file (must be true) |
filepath | string | Path to the file or directory to delete (relative to vault root) |
Tool: obsidian_get_file_contents
Return the content of a single file in your vault.
| Parameters | Type | Description |
|---|---|---|
filepath | string | Path to the relevant file (relative to your vault root). |
Tool: obsidian_get_periodic_note
Get current periodic note for the specified period.
| Parameters | Type | Description |
|---|---|---|
period | string | The period type (daily, weekly, monthly, quarterly, yearly) |
Tool: obsidian_get_recent_changes
Get recently modified files in the vault.
| Parameters | Type | Description |
|---|---|---|
days | integer optional | Only include files modified within this many days (default: 90) |
limit | integer optional | Maximum number of files to return (default: 10) |
Tool: obsidian_get_recent_periodic_notes
Get most recent periodic notes for the specified period type.
| Parameters | Type | Description |
|---|---|---|
period | string | The period type (daily, weekly, monthly, quarterly, yearly) |
include_content | boolean optional | Whether to include note content (default: false) |
limit | integer optional | Maximum number of notes to return (default: 5) |
Tool: obsidian_list_files_in_dir
Lists all files and directories that exist in a specific Obsidian directory.
| Parameters | Type | Description |
|---|---|---|
dirpath | string | Path to list files from (relative to your vault root). Note that empty directories will not be returned. |
Tool: obsidian_list_files_in_vault
Lists all files and directories in the root directory of your Obsidian vault.
Tool: obsidian_patch_content
Insert content into an existing note relative to a heading, block reference, or frontmatter field.
| Parameters | Type | Description |
|---|---|---|
content | string | Content to insert |
filepath | string | Path to the file (relative to vault root) |
operation | string | Operation to perform (append, prepend, or replace) |
target | string | Target identifier (heading path, block reference, or frontmatter field) |
target_type | string | Type of target to patch |
Tool: obsidian_simple_search
Simple search for documents matching a specified text query across all files in the vault. Use this tool when you want to do a simple text search
| Parameters | Type | Description |
|---|---|---|
query | string | Text to a simple search for in the vault. |
context_length | integer optional | How much context to return around the matching string (default: 100) |
json{ "mcpServers": { "obsidian": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "OBSIDIAN_HOST", "-e", "OBSIDIAN_API_KEY", "mcp/obsidian" ], "env": { "OBSIDIAN_HOST": "host.docker.internal", "OBSIDIAN_API_KEY": "YOUR_OBSIDIAN_API_KEY" } } } }
Why is it safer to run MCP Servers with Docker?
以下是 mcp/obsidian 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。



探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
不支持 push
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务