# dot-RealityTest/obsidian-codex-mcp [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/dot-RealityTest/obsidian-codex-mcp  
**GitHub Stars:** 20  
**Views:** 15  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/dot-realitytest-obsidian-codex-mcp

## Description
Local-first Obsidian vault MCP server for Codex, Claude Desktop, and other MCP clients. Works directly with markdown files, no Obsidian plugin, API key, cloud service, or running Obsidian app required. Includes read-only mode, backup-on-write, path isolation, and setup examples.

## Tools
Capabilities this server exposes over MCP:

- **configure_vault** — set or change the vault path
- **get_note** — read one markdown note by vault-relative path
- **create_note** — create a new markdown note with optional metadata
- **update_note** — update note content and/or frontmatter
- **delete_note** — delete a markdown note
- **list_notes** — list notes in the vault or a folder
- **search_notes** — search note title, content, and tags
- **get_all_tags** — list unique tags from frontmatter and inline tags
- **get_backlinks** — find notes that link to a note
- **get_note_links** — extract wikilinks from a note
- **create_folder** — create a folder inside the vault
- **get_folder_structure** — return the vault folder tree
- **create_base** — create a `.base` file, validated against the Bases schema before writing
- **update_base** — merge changes into a base (update a view by name, add/remove views, change filters/formulas/properties)
- **get_base** — read a `.base` as parsed structure + raw YAML; tolerant of imperfect files
- **list_bases** — list `.base` files in the vault or a folder, with their view names
- **delete_base** — delete a `.base` file

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/dot-RealityTest/obsidian-codex-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
./install.sh /absolute/path/to/your/obsidian-vault
```

2. Install:

```sh
python3 -m venv .venv
```

3. Install:

```sh
.venv/bin/python -m pip install --upgrade pip
```

4. Install:

```sh
.venv/bin/python -m pip install -r requirements.txt
```

5. Add to Claude Code:

```sh
claude mcp add kika-obsidian \
  --env OBSIDIAN_VAULT_PATH="/absolute/path/to/your/obsidian-vault" \
  --env OBSIDIAN_READ_ONLY="false" \
  --env OBSIDIAN_BACKUP_ON_WRITE="true" \
  -- /absolute/path/to/kika-obsidian-mcp/.venv/bin/python \
     /absolute/path/to/kika-obsidian-mcp/server.py
```

6. Run:

```sh
./install.sh --client <name> /path/to/vault
```

## Documentation

## What dot-RealityTest/obsidian-codex-mcp does

dot-RealityTest/obsidian-codex-mcp connects MCP-capable clients to an Obsidian vault on the local filesystem. It works with Markdown notes directly, so it does not require an Obsidian plugin, API key, cloud service, or an open Obsidian application. The server is intended for local knowledge bases, project records, daily notes, task notes, and other Markdown-first workflows.

Its distinctive capability is support for Obsidian Bases. Agents can create, inspect, modify, list, and remove `.base` files, with schema validation applied before new or changed content is written. Table, list, cards, and map views are supported, including map marker and zoom settings when a base is read and rewritten.

## How it works

The server runs as a local stdio MCP process. An MCP client starts the configured Python command and passes the vault location through `OBSIDIAN_VAULT_PATH`. Operations resolve paths relative to that vault, while absolute paths and traversal using `../` are rejected.

The note functions cover reading, creation, updates, deletion, folder creation, listing, full-text-style searching across titles, content, and tags, tag collection, backlink discovery, wikilink extraction, and folder-tree inspection. Frontmatter can be supplied when creating a note or changed during an update. Base reads return both a parsed representation and the original YAML, allowing imperfect existing files to be inspected.

The process makes no external network calls. Set read-only mode to prevent note, folder, and Base write operations. When backup-on-write is enabled, existing notes are copied into `.obsidian-mcp-backups/` before updates or deletions.

## Setup and configuration

Use Python 3.10 or newer with an Obsidian vault stored locally. The repository includes an installation script that creates a virtual environment, installs dependencies, checks the vault, and prints client configuration examples. Manual setup uses a virtual environment, `requirements.txt`, and the server's Python entry point.

Configure an MCP client to run the virtual environment's Python executable with `server.py` as its argument. The required setting is:

- `OBSIDIAN_VAULT_PATH`: an absolute path to the vault directory.

Optional controls are:

- `OBSIDIAN_READ_ONLY`: use `true` to refuse create, update, delete, folder-creation, and Base write operations; it defaults to `false`.
- `OBSIDIAN_BACKUP_ON_WRITE`: use `true` to back up existing notes before updates and deletions; it defaults to `false`.

Configuration examples are provided for Claude Code, Claude Desktop, Cursor, Cline, Codex, and Grok. The server is configured per client using JSON or TOML, depending on the client.

## Tools and capabilities

Note and vault tools include:

- `configure_vault` for setting or changing the vault path
- `get_note`, `create_note`, `update_note`, and `delete_note` for Markdown note operations
- `list_notes` and `get_folder_structure` for browsing vault content
- `search_notes` for searching titles, content, and tags
- `get_all_tags`, `get_backlinks`, and `get_note_links` for graph and metadata queries
- `create_folder` for adding a folder inside the vault

Base tools include `create_base`, `update_base`, `get_base`, `list_bases`, and `delete_base`. Updates can target a view by name, add or remove views, or change filters, formulas, and properties. Validation identifies invalid Base structures before a new file is created or an update is written.

## Limitations and notes

This is a local stdio server rather than a remote HTTP service. The vault must be available as local files, and the configured process needs filesystem access to it. Read-only mode blocks writes, while backup-on-write covers existing notes before updates and deletions. The project is independent and is not affiliated with Obsidian, Anthropic, OpenAI, or an MCP client.

_Full upstream README: https://allmcps.com/mcp/dot-realitytest-obsidian-codex-mcp/readme_

