Data as of

MCP Server for Obsidian for Claude Code: Setup & Config

MCP Server for Obsidian connects Claude Code to an Obsidian vault through the Local REST API plugin.

What you can do with MCP Server for Obsidian in Claude Code

Let assistants search existing vault knowledge and write results back into structured Obsidian notes.

  • Find notes mentioning a technical subject and summarize their context.
  • List vault directories and organize note files.

Before you start: MCP Server for Obsidian in Claude Code

  • Obsidian with the Local REST API community plugin installed, enabled, and running
  • The plugin's API key
  • uvx
  • An MCP-compatible client

Use the plugin settings to obtain the API key. If the client cannot locate uvx, replace the command with its absolute executable path.

MCP Server for Obsidian Claude Code configuration

  1. Choose Claude Code configuration scope

    For MCP Server for Obsidian, open Project scope: .mcp.json at the repository root. Project JSON: merge into mcpServers; user scope: use the CLI.

  2. Add MCP Server for Obsidian to Claude Code

    Use the mcp-obsidian entry below in mcpServers. Keep MCP Server for Obsidian's documented stdio connection fields and your other Claude Code entries.

  3. Check MCP Server for Obsidian in Claude Code

    MCP Server for Obsidian: Inspect claude mcp list and /mcp status.

Config file · Project scope: .mcp.json at the repository root

JSON
{
  "mcpServers": {
    "mcp-obsidian": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-obsidian"
      ],
      "env": {
        "OBSIDIAN_API_KEY": "<API key from your Obsidian Local REST API plugin>",
        "OBSIDIAN_HOST": "<Obsidian API host; defaults to 127.0.0.1>",
        "OBSIDIAN_PORT": "<Obsidian API port; defaults to 27124>"
      }
    }
  }
}

CLI (POSIX shell)
claude mcp add-json --scope project 'mcp-obsidian' '{"type":"stdio","command":"uvx","args":["mcp-obsidian"],"env":{"OBSIDIAN_API_KEY":"<API key from your Obsidian Local REST API plugin>","OBSIDIAN_HOST":"<Obsidian API host; defaults to 127.0.0.1>","OBSIDIAN_PORT":"<Obsidian API port; defaults to 27124>"}}'

MCP Server for Obsidian tools available to Claude Code

MCP Server for Obsidian's stored tool list documents 7 tools; compare it with Claude Code's connected tool list, because the stored list is not a live check.

list_files_in_vault

For MCP Server for Obsidian's list_files_in_vault, review the permission request and arguments in Claude Code before approval.

list_files_in_dir

For MCP Server for Obsidian's list_files_in_dir, review the permission request and arguments in Claude Code before approval.

get_file_contents

For MCP Server for Obsidian's get_file_contents, review the permission request and arguments in Claude Code before approval.

Read a single vault file.

search

For MCP Server for Obsidian's search, review the permission request and arguments in Claude Code before approval.

Find vault documents containing a supplied text query.

patch_content

For MCP Server for Obsidian's patch_content, review the permission request and arguments in Claude Code before approval.

Use headings, frontmatter fields, or block references to locate an insertion point in a note.

append_content

For MCP Server for Obsidian's append_content, review the permission request and arguments in Claude Code before approval.

delete_file

For MCP Server for Obsidian's delete_file, review the permission request and arguments in Claude Code before approval.

Remove a file or directory from the vault.

MCP Server for Obsidian: full stored tool descriptions

Troubleshooting MCP Server for Obsidian in Claude Code

  • If MCP Server for Obsidian fails to start, check uvx mcp-obsidian (from uv, for Python tools), the working directory, and Claude Code's selected scope; inspect claude mcp list and /mcp.
  • MCP Server for Obsidian: check OBSIDIAN_API_KEY, OBSIDIAN_HOST, OBSIDIAN_PORT; keep credentials out of shared .mcp.json.
  • MCP Server for Obsidian uses stdio here: Claude Code must keep the configured process running; protocol output belongs on stdout and diagnostics on stderr.
  • Known limitation: Requires the Obsidian Local REST API community plugin to be running.
  • Known limitation: Setup needs the plugin API key and correct connection details.
  • Known limitation: Deletion tools can remove vault files or directories.
  • General Claude Code troubleshooting lives in the /clients/claude-code guide.

MCP Server for Obsidian — details. Claude Code guide

Frequently asked questions

Register MCP Server for Obsidian with the displayed claude mcp add-json --scope project command, or merge the JSON into .mcp.json at the repository root.