obsidian-autom8

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.

Category
Visit Server

README

obsidian-autom8

<img src="logo.svg" alt="obsidian-autom8" width="120" />

CI Release Image License

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

  1. Open http://localhost:3000 in your browser (log in with your CUSTOM_USER / PASSWORD)
  2. Login with Obsidian Sync and create your synced vault under the config directory so your vault persists across container restarts, and wait for the sync to complete.
  3. Go to Settings → General and enable Command line interface
  4. Follow the prompt to register the CLI — this writes the obsidian binary 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:

  1. Node.js + MCP server — compiled from this repo and registered as an s6-overlay service. It starts automatically alongside Obsidian and restarts on crash.

  2. Obsidian CLI — the MCP server communicates with Obsidian by shelling out to the obsidian CLI binary that Obsidian registers at /config/.local/bin/obsidian when 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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured