Skip to main content
Glama
C0d1g0v3c

obsidian-mcp

by C0d1g0v3c

obsidian-mcp

A small Model Context Protocol server that gives an MCP client (such as Claude Code or Claude Desktop) read and write access to an Obsidian vault by working directly on the markdown files.

No Obsidian plugins required and the app does not need to be running — the server reads and writes the .md files on disk.

Features

  • Works directly on the vault's files (no Local REST API plugin needed).

  • Path-traversal safe: every path is resolved inside the vault; ../ escapes are rejected.

  • Ignores .obsidian, .git, .trash and node_modules.

Tools

Tool

Description

search_notes

Full-text search across all notes, with line snippets

list_notes

List notes in the whole vault or a subfolder

read_note

Read a note by its vault-relative path

create_note

Create a new note (creates folders; won't overwrite unless asked)

edit_note

Replace an exact string in a note (replace_all optional)

append_note

Append text to the end of a note

Related MCP server: brain-mcp

Requirements

  • Node.js >= 18

Installation

git clone https://github.com/C0d1g0v3c/obsidian-mcp.git
cd obsidian-mcp
npm install

Configuration

The server requires the OBSIDIAN_VAULT environment variable: the absolute path to your vault. It exits with an error if it is not set.

Usage with Claude Code

claude mcp add obsidian --scope user \
  -e OBSIDIAN_VAULT="/absolute/path/to/your/vault" \
  -- node /absolute/path/to/obsidian-mcp/index.js

Usage with Claude Desktop

Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "obsidian": {
      "command": "node",
      "args": ["/absolute/path/to/obsidian-mcp/index.js"],
      "env": {
        "OBSIDIAN_VAULT": "/absolute/path/to/your/vault"
      }
    }
  }
}

Running directly

OBSIDIAN_VAULT="/absolute/path/to/your/vault" node index.js

The server communicates over stdio and is meant to be launched by an MCP client.

License

ISC

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/C0d1g0v3c/obsidian-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server