# Obsidian MCP Brain [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/a1ecbr0wn/obsidian-mcp-brain  
**GitHub Stars:** 1  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/obsidian-mcp-brain

## Description
MCP server exposing Obsidian vaults to remote clients (Claude Code, Claude Desktop) with OAuth discovery and path-level access control

## Tools
Capabilities this server exposes over MCP:

- **list-notes** — List the notes (`.md` files) in the vault, or scoped to a folder. For other files use `list-files`. Returns sorted vault-relative paths, each with a last-modified timestamp
- **list-files** — List every file in the vault, or scoped to a folder, whatever its type (scripts, PDFs, images, notes), optionally narrowed by `extension`. Returns sorted vault-relative paths, each with a last-modified timestamp and the size in bytes
- **list-tags** — List all unique tags (YAML frontmatter) used across vault notes, optionally scoped to a subdirectory
- **search-tags** — Find notes that have ALL of the specified tags
- **new-notes** — List notes created in the last 7 days, or since a provided timestamp
- **changed-notes** — List notes modified in the last 7 days, or since a provided timestamp
- **list-vaults** — List all configured vaults
- **get-setup-status** — List the companion skills and agents, the server version, and how to install them on each Claude surface
- **read-note** — Read a note's content and last-modified timestamp
- **create-note** — Create a new note. Fails if it already exists
- **edit-note** — Edit a note: append, prepend, replace, replace/delete the content under a heading, or toggle a checkbox
- **delete-note** — Delete a note, moving it to `.trash` by default
- **move-note** — Move or rename a note, rewriting all vault-wide wikilinks to the old path
- **create-file** — Create a new file of any type (an image, a PDF, a `.md` note) from base64-encoded content. Fails if it already exists
- **fetch-file** — Create a new file of any type by downloading a URL server-side, so the client only sends a URL, not the file content
- **upload-file** — Reserve a one-time upload URL for a file of a declared size and SHA-256; the agent sends the file to it with `curl`, so its bytes never pass through the model
- **replace-file** — Reserve a one-time upload URL that replaces a file already in the vault, only if it is still the version named by its SHA-256 and mtime; the old version moves to `.trash
- **read-file** — Return an existing file of any type (e.g. a PDF) to the client as an embedded base64 resource, so the agent can read it
- **move-file** — Move or rename a file of any type, rewriting the wikilinks (for a note) or embeds (for any other file) that point at the old path
- **delete-file** — Delete a file of any type, a `.md` note included, moving it to `.trash` by default
- **find-backlinks** — Find all notes that link to or embed a given note or binary file
- **resolve-wikilink** — Resolve a wikilink target string to the vault-relative file(s) it points to
- **create-folder** — Create a new folder (and any missing parents) in the vault
- **search-vault** — Search vault notes by content, filename, or both
- **add-tags** — Add tags to notes in frontmatter and/or inline body content
- **remove-tags** — Remove tags from notes in frontmatter and/or inline body content
- **rename-tag** — Rename a tag throughout the entire vault (frontmatter and inline)
- **set-frontmatter-field** — Set a single frontmatter field (not `tags`) to a scalar value, creating it if missing
- **remove-frontmatter-field** — Remove a single frontmatter field (not `tags`) entirely
- **query-graph** — Ask a natural-language question against a vault's graphify knowledge graph

## Claude Desktop Quick Installation
Remote MCP endpoint (confidence: high). Install path detected from listing signals. Add as a URL/SSE server in your client:

```json
"mcpServers": {
  "obsidian-mcp-brain": {
    "url": "https://your-hostname:4001/mcp"
  }
}
```

## Documentation

## What Obsidian MCP Brain does

Obsidian MCP Brain MCP server exposes one or more Obsidian vaults to remote MCP clients. It works with the vault filesystem directly and supports both Markdown notes and other files such as PDFs, images, and scripts. A client selects the target vault through a `vault` argument on tools that operate on vault contents.

The server is intended for clients connecting over HTTPS, including Claude Code and Claude Desktop. It provides the OAuth 2.0 discovery endpoints expected by remote MCP clients, while the published flow does not require credentials. Path deny lists can restrict access to selected vault paths, and binary paths can have a separate deny list.

## How it works

The Node.js HTTP process listens locally by default and exposes the MCP Streamable HTTP transport at `/mcp`. An HTTPS layer such as Tailscale Serve, nginx, or Caddy can publish that local endpoint to a remote client. The server reads and writes vault data using filesystem access rather than requiring the Obsidian application to be the network endpoint.

Obsidian MCP Brain MCP server can run natively on Node.js 18 or later, as a Linux user service, a macOS launchd service, or a Docker container. Docker deployments require vaults to be mounted into the container and need `listenHost` set to `0.0.0.0`. The container image does not include `graphify`, so graph queries require a native installation.

## Setup and configuration

Install dependencies with `npm install`, then run the built server as a persistent process. Configuration is stored in JSON at `~/.config/obsidian-mcp.json` by default. Set `CONFIG_PATH` when the file is elsewhere; it is the only environment variable read by the server.

The configuration defines the listening port and host, public MCP base URL, named vault paths, deny rules, upload and download limits, note and file size limits, session settings, logging, and trash retention. Each vault can override path restrictions. Put the server behind HTTPS when connecting from a remote client; the documentation recommends Tailscale Serve for an overlay-network setup, while other private-network reverse proxies are also supported.

## Tools and capabilities

Obsidian MCP Brain MCP server includes tools for:

- Listing notes, files, vaults, tags, recently created notes, and recently changed notes.
- Reading, creating, editing, deleting, moving, and renaming notes or arbitrary files.
- Creating folders, downloading files server-side, and handling uploads with size and SHA-256 checks.
- Searching note content and filenames, finding backlinks, and resolving wikilinks.
- Adding, removing, and renaming tags, plus setting or removing non-tag frontmatter fields.
- Querying a pre-built `graphify` knowledge graph with natural-language questions.
- Reporting setup status, companion skills and agents, and server version information.

Deletes move items to `.trash` by default. Moving notes rewrites vault-wide wikilinks, while moving other files rewrites embeds that reference the old path.

## Limitations and notes

The `query-graph` tool needs the `graphify` CLI on `PATH` and a graph built for the target vault before use. It remains listed when no graph is available, but returns an error instead of an answer. Container installations cannot use this tool because the image lacks `graphify`.

Remote access also depends on correctly configuring HTTPS and the MCP base URL. Path restrictions must be defined in the JSON configuration, and container vault paths refer to paths inside the container rather than paths on the host.

_Full upstream README: https://allmcps.com/mcp/obsidian-mcp-brain/readme_

