Obsidian Codex MCP logo

Obsidian Codex MCP

by dot-RealityTest

Local stdio MCP access to Obsidian markdown notes and schema-validated Bases without plugins, APIs, cloud services, or a running Obsidian app.

Install Obsidian Codex MCP

Run the project’s own setup commands, in order.

Setup steps from the project

dot-RealityTest/obsidian-codex-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    ./install.sh /absolute/path/to/your/obsidian-vault
    
  2. 2. Install
    python3 -m venv .venv
    
  3. 3. Install
    .venv/bin/python -m pip install --upgrade pip
    
  4. 4. Install
    .venv/bin/python -m pip install -r requirements.txt
    
  5. 5. Add to Claude Code
    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. 6. Run
    ./install.sh --client <name> /path/to/vault
    

Overview

dot-RealityTest/obsidian-codex-mcp gives MCP clients direct, local access to an Obsidian vault stored as Markdown files. It runs over stdio, uses a configured vault path, and provides note, folder, tag, link, backlink, and Obsidian Bases operations without contacting a remote service. Read-only mode, path isolation, traversal protection, and optional backups help control file changes. Reach for it when an agent needs filesystem-based knowledge workflows or needs to create and edit `.base` files from a local vault.

Use cases

  • Read and search a local Obsidian knowledge base from an MCP client
  • Create and update Markdown notes with frontmatter
  • Inspect backlinks, wikilinks, tags, and vault folders
  • Create and edit schema-validated Obsidian Bases
  • Review vault content with writes disabled

Key features

  • Local stdio access to Markdown-based Obsidian vaults
  • Note, folder, search, tag, backlink, and wikilink tools
  • Schema-validated `.base` file creation and updates
  • Read-only mode for review and search workflows
  • Backup-on-write for note updates and deletions
  • Vault path isolation and traversal protection

Tools17

What Obsidian Codex MCP lets your agent do. Expand a tool for its parameters.

Self-reported~240 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 64d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars20Stargazers on the source repository.
Last commit23d agoMost recent push to the default branch.
Tools exposed17Callable tools this server registers over MCP.
Directory activity15 viewsConfig copies, upvotes, and views on AllMCPs.

How Obsidian Codex MCP works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Obsidian Codex MCP

dot-RealityTest/obsidian-codex-mcp is an MCP server that connects MCP clients directly to a local Obsidian vault. Its main tools read, search, create, update, and delete Markdown notes, inspect links and tags, manage folders, and create or edit schema-validated Obsidian Bases without requiring a plugin, API key, cloud service, or running Obsidian app.

Install it with Python 3.10 or newer and the repository's installation script, which creates a virtual environment, installs dependencies, verifies the vault, and prints client configuration. Manual setup uses a virtual environment, `requirements.txt`, and the server's Python entry point.

Yes, Cursor is one of the clients with a provided configuration example. Add the server command and arguments to Cursor's MCP configuration, then set `OBSIDIAN_VAULT_PATH`; `OBSIDIAN_READ_ONLY` and `OBSIDIAN_BACKUP_ON_WRITE` are optional controls.

Set `OBSIDIAN_READ_ONLY` to `true` in the MCP client's environment configuration. Create, update, delete, folder-creation, and Base write operations then refuse writes while read and search workflows remain available.

Yes, it can create, read, update, list, and delete `.base` files. Creation and updates use Bases schema validation, and update operations can change views, filters, formulas, and properties.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewObsidian Codex MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/dot-realitytest-obsidian-codex-mcp?style=directory)](https://allmcps.com/mcp/dot-realitytest-obsidian-codex-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/dot-realitytest-obsidian-codex-mcp"><img src="https://allmcps.com/api/badge/dot-realitytest-obsidian-codex-mcp?style=directory" alt="Obsidian Codex MCP on AllMCPs" /></a>