# vaultguard

> vaultguard is an open-source MCP server. AI agents use your Obsidian secrets by name — values never reach their context. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/ashishrao-4/vaultguard
- **MCP Registry name:** io.github.ashishrao-4/vaultguard
- **Listing updated:** 2026-11-13

## About

AI agents use your Obsidian secrets by name — values never reach their context.

## Install

### Claude Code (Terminal)

```sh
claude mcp add vaultguard --env VAULTGUARD_PASSPHRASE='<VAULTGUARD_PASSPHRASE>' -- npx -y @ashishrao-4/vaultguard
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "vaultguard": {
      "command": "npx",
      "args": [
        "-y",
        "@ashishrao-4/vaultguard"
      ],
      "env": {
        "VAULTGUARD_PASSPHRASE": "<VAULTGUARD_PASSPHRASE>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "vaultguard": {
      "command": "npx",
      "args": [
        "-y",
        "@ashishrao-4/vaultguard"
      ],
      "env": {
        "VAULTGUARD_PASSPHRASE": "<VAULTGUARD_PASSPHRASE>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "vaultguard": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ashishrao-4/vaultguard"
      ],
      "env": {
        "VAULTGUARD_PASSPHRASE": "<VAULTGUARD_PASSPHRASE>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "vaultguard": {
      "command": "npx",
      "args": [
        "-y",
        "@ashishrao-4/vaultguard"
      ],
      "env": {
        "VAULTGUARD_PASSPHRASE": "<VAULTGUARD_PASSPHRASE>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "vaultguard": {
      "command": "npx",
      "args": [
        "-y",
        "@ashishrao-4/vaultguard"
      ],
      "env": {
        "VAULTGUARD_PASSPHRASE": "<VAULTGUARD_PASSPHRASE>"
      }
    }
  }
}
```

## FAQ

### Is vaultguard free?

Yes. vaultguard is open source, so you can use and self-host it for free.

### How do I add vaultguard to Claude Code?

Run this command in your terminal: claude mcp add vaultguard --env VAULTGUARD_PASSPHRASE='<VAULTGUARD_PASSPHRASE>' -- npx -y @ashishrao-4/vaultguard

---
Source: https://ai-powered.com/mcp/vaultguard-2
