kObsidian

v0.2.1
io.github.bezata/kobsidian-mcp Checked 3 days ago Published 7 months ago

Filesystem-first MCP for Obsidian — an LLM-maintained wiki inspired by Karpathy's LLM Wiki.

Values you need

VariableWhat it is
OBSIDIAN_VAULT_PATHrequired Absolute path to the Obsidian vault this server should operate on.
OBSIDIAN_API_URLoptional Base URL of the Obsidian Local REST API plugin. Only required for workspace.* / commands.* / live dataview.query* tools. Default: https://127.0.0.1:27124
OBSIDIAN_API_VERIFY_TLSoptional Set to 'true' if you've trusted the Local REST API's self-signed certificate. Default: false
OBSIDIAN_REST_API_KEYoptional secret Bearer key for the Obsidian Local REST API plugin (only needed for REST-bridged tools).

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add kobsidian-mcp -e 'OBSIDIAN_VAULT_PATH=<OBSIDIAN_VAULT_PATH>' -- npx -y kobsidian-mcp@0.2.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "kobsidian-mcp": {
      "args": [
        "-y",
        "kobsidian-mcp@0.2.1"
      ],
      "command": "npx",
      "env": {
        "OBSIDIAN_VAULT_PATH": "<OBSIDIAN_VAULT_PATH>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "kobsidian-mcp": {
      "args": [
        "-y",
        "kobsidian-mcp@0.2.1"
      ],
      "command": "npx",
      "env": {
        "OBSIDIAN_VAULT_PATH": "<OBSIDIAN_VAULT_PATH>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "OBSIDIAN_VAULT_PATH",
      "id": "obsidian-vault-path",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "kobsidian-mcp": {
      "args": [
        "-y",
        "kobsidian-mcp@0.2.1"
      ],
      "command": "npx",
      "env": {
        "OBSIDIAN_VAULT_PATH": "${input:obsidian-vault-path}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.kobsidian-mcp]
command = "npx"
args = ["-y", "kobsidian-mcp@0.2.1"]
env = { "OBSIDIAN_VAULT_PATH" = "<OBSIDIAN_VAULT_PATH>" }

For AI agents

  1. Ask the user for: OBSIDIAN_VAULT_PATH. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: notes.read, notes.create, notes.update, notes.delete, notes.search, notes.searchByDate, notes.list, notes.listFolders, ….
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json