obsidian-autom8
Enables AI agents to remotely access and interact with Obsidian vaults via MCP, supporting note operations, tag management, graph queries, and command execution.
README
obsidian-autom8
<img src="logo.svg" alt="obsidian-autom8" width="120" />
obsidian-autom8 makes it easy to give your agents remote access to your Obsidian via the Model Context Protocol (MCP), built on top of the linuxserver/docker-obsidian image.
→ Full MCP tools reference · Architecture · Roadmap · Contributing
Security note: similarly to the linuxserver/docker-obsidian base image, this container has no HTTPS support and should not be exposed to an unsecured network. For secure deployments, place it behind a reverse proxy (e.g. Caddy, Nginx Proxy Manager, Traefik) that handles TLS termination.
Quickstart
1. Run the container
Option A — Pull from GHCR (recommended):
# podman run -d \
docker run -d \
--name obsidian-autom8 \
-p 3000:3000 \
-p 3002:3002 \
--shm-size="1gb" \
-v obsidian-config:/config \
-e CUSTOM_USER=admin \
-e PASSWORD=changeme \
-e OBSIDIAN_MCP_API_KEY=your-secret-key \
ghcr.io/dylansumser/obsidian-autom8:latest
To pin to a specific release instead of latest, replace the tag with a version number (e.g. ghcr.io/dylansumser/obsidian-autom8:1.0.0).
Option B — Build from source:
git clone https://github.com/dylansumser/obsidian-autom8.git
cd obsidian-autom8
# podman build -t obsidian-autom8 .
docker build -t obsidian-autom8 .
# podman run -d \
docker run -d \
--name obsidian-autom8 \
-p 3000:3000 \
-p 3002:3002 \
--shm-size="1gb" \
-v obsidian-config:/config \
-e CUSTOM_USER=admin \
-e PASSWORD=changeme \
-e OBSIDIAN_MCP_API_KEY=your-secret-key \
obsidian-autom8
2. Open Obsidian and enable the CLI
- Open
http://localhost:3000in your browser (log in with yourCUSTOM_USER/PASSWORD) - Login with Obsidian Sync and create your synced vault under the
configdirectory so your vault persists across container restarts, and wait for the sync to complete. - Go to Settings → General and enable Command line interface
- Follow the prompt to register the CLI — this writes the
obsidianbinary to/config/.local/bin/obsidian
Direct file access: If you want local agents or scripts on the host to read and write vault files directly alongside the MCP server, use a bind mount instead of a named volume (see Volumes below). This is useful for raw file operations that complement the MCP tools.
3. Connect an AI agent
The MCP server speaks standard HTTP — any MCP-compatible agent can connect. Below are examples for common CLI tools.
Claude Code:
claude mcp add --transport http -s project obsidian-autom8 http://localhost:3002/mcp \
--header "Authorization: Bearer your-secret-key"
Gemini CLI — add to ~/.gemini/settings.json:
{
"mcpServers": {
"obsidian-autom8": {
"httpUrl": "http://localhost:3002/mcp",
"headers": {
"Authorization": "Bearer your-secret-key"
}
}
}
}
Codex CLI — add to ~/.codex/config.toml:
[[mcp_servers]]
name = "obsidian-autom8"
url = "http://localhost:3002/mcp"
[mcp_servers.headers]
Authorization = "Bearer your-secret-key"
Why
The Obsidian CLI is excellent for local use by humans or closely supervised agents and obsidian-headless is excellent for remote backups of your vault via obsidian sync.
This project exists to give agents and automations remote, restrictable, and always available access to your vault beyond simple file based interfaces. By using obsidian's internal APIs from the CLI remotely, obsidian-autom8 lets your agents and automations:
- View and manage tags, bases, and properties
- Follow and manage your note graph
- Execute commands from your command palette (like obsidian-linter).
- And more!
How it works
The image layers two things on top of lscr.io/linuxserver/obsidian:latest:
-
Node.js + MCP server — compiled from this repo and registered as an s6-overlay service. It starts automatically alongside Obsidian and restarts on crash.
-
Obsidian CLI — the MCP server communicates with Obsidian by shelling out to the
obsidianCLI binary that Obsidian registers at/config/.local/bin/obsidianwhen you enable it in Settings. The CLI connects to the running Obsidian app over a Unix socket at/config/.XDG/.obsidian-cli.sock.
This means Obsidian must be running (i.e. the container must be up and you must have completed the CLI setup) before the MCP tools will work.
CLI setup persistence
The CLI registration is stored in /config, which is a named volume. This means you only need to enable it once — it persists across container restarts and image upgrades as long as the volume is not deleted.
If you recreate the volume or start fresh, repeat step 2 of the quickstart.
Docker Compose
services:
obsidian-autom8:
image: ghcr.io/dylansumser/obsidian-autom8:latest
container_name: obsidian-autom8
environment:
- PUID=1000
- PGID=1000
- TZ=America/New_York
- CUSTOM_USER=admin
- PASSWORD=changeme
- OBSIDIAN_MCP_API_KEY=your-secret-key
- OBSIDIAN_VAULT=My Vault # optional: default vault name
volumes:
- obsidian-config:/config
ports:
- 3000:3000 # Selkies web UI
- 3002:3002 # MCP API
shm_size: 1gb
restart: unless-stopped
volumes:
obsidian-config:
Podman Quadlet
Create /etc/containers/systemd/obsidian-autom8.container:
[Unit]
Description=Obsidian Autom8 MCP Server
After=network-online.target
[Container]
Image=ghcr.io/dylansumser/obsidian-autom8:latest
ContainerName=obsidian-autom8
PublishPort=3000:3000
PublishPort=3002:3002
Volume=obsidian-config:/config
Environment=PUID=1000
Environment=PGID=1000
Environment=TZ=America/New_York
Environment=CUSTOM_USER=admin
Environment=PASSWORD=changeme
Environment=OBSIDIAN_MCP_API_KEY=your-secret-key
Environment=OBSIDIAN_VAULT=My Vault
ShmSize=1gb
[Service]
Restart=always
[Install]
WantedBy=default.target
Then enable it:
systemctl --user daemon-reload
systemctl --user enable --now obsidian-autom8
Configuration
Environment variables
| Variable | Required | Default | Description |
|---|---|---|---|
CUSTOM_USER |
Recommended | abc |
Username for the Selkies web UI |
PASSWORD |
Recommended | — | Password for the Selkies web UI |
OBSIDIAN_MCP_API_KEY |
Recommended | — | Bearer token required to call the MCP API. If unset, the API is unauthenticated. |
OBSIDIAN_VAULT |
No | — | Default vault name passed to every CLI call. If unset, Obsidian uses the currently active vault. |
MCP_PORT |
No | 3002 |
Port the MCP server listens on. |
PUID / PGID |
No | 1000 |
User/group ID to run as. Inherited from the linuxserver base image. |
TZ |
No | UTC |
Timezone. |
Ports
| Port | Description |
|---|---|
3000 |
Selkies remote desktop — access Obsidian in your browser |
3001 |
Selkies SSL (nginx) — used internally |
3002 |
MCP API — connects to Claude Code or other MCP clients |
Volumes
| Path | Description |
|---|---|
/config |
Obsidian config, vault data, and CLI registration. Persist this volume to survive container restarts. |
Named volume (default) — Docker manages the storage, simplest setup:
-v obsidian-config:/config
Bind mount (optional) — mounts a host directory directly, so local agents and scripts can access vault files alongside the MCP server. Your vault should live inside this directory (e.g. /path/to/your/config/my-vault):
-v /path/to/your/config:/config
MCP tool scope: The MCP server is optimized for note-level operations — reading, writing, searching, and modifying existing content. For larger filesystem operations like reorganizing or moving entire directory structures, direct file access via a bind mount is more reliable.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。