Skip to content
VS Code

mcp obsidian cli for VS Code

io.github.stonematt/mcp-obsidian-cli

Save chat notes from Claude Desktop to your vault — MCP on Obsidian CLI. Keep what matters.

client:VS Code transport:stdio runtime:npm

Install mcp obsidian cli in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "obsidian-vault",
      "description": "OBSIDIAN_VAULT",
      "password": true
    },
    {
      "type": "promptString",
      "id": "obsidian-cli-path",
      "description": "OBSIDIAN_CLI_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "obsidian-timeout-ms",
      "description": "OBSIDIAN_TIMEOUT_MS",
      "password": true
    }
  ],
  "servers": {
    "mcp-obsidian-cli": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mcp-obsidian-cli"
      ],
      "env": {
        "OBSIDIAN_VAULT": "${input:obsidian-vault}",
        "OBSIDIAN_CLI_PATH": "${input:obsidian-cli-path}",
        "OBSIDIAN_TIMEOUT_MS": "${input:obsidian-timeout-ms}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

mcp obsidian cli in other clients