# Vouch MCP server

> Gives AI agents a Git-backed knowledge base where writes are proposed, cited, and require human approval before becoming durable.

- Repository: https://github.com/vouchdev/vouch
- Page: https://hostedmcp.org/servers/vouchdev/vouch
- Transport: stdio
- Stars: 67
- License: MIT
- Latest version: 1.2.2

## Install

### Claude Code

```sh
claude mcp add vouch -- uvx vouch-kb
```

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

```json
{
  "mcpServers": {
    "vouch": {
      "command": "uvx",
      "args": [
        "vouch-kb"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "vouch": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "vouch-kb"
      ]
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "vouch": {
      "command": "uvx",
      "args": [
        "vouch-kb"
      ]
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.vouch]
command = "uvx"
args = ["vouch-kb"]
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "vouch": {
      "command": "uvx",
      "args": [
        "vouch-kb"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `VOUCH_KB_PATH` | no | no | Absolute path to the .vouch directory; if unset, vouch walks up from the cwd to find it. |

## FAQ

### How does Vouch keep agent-written knowledge trustworthy?

Agents only propose writes; nothing becomes durable knowledge until a human approves it. Each claim must cite a content-hashed source, and changes are recorded in an append-only audit log.

### Where does Vouch store its knowledge base?

Approved artifacts are plain YAML claims and markdown pages under a .vouch/ directory in your repository, so they can be reviewed and versioned like code.

### How do I connect Vouch to Claude Code?

Run `vouch install-mcp claude-code` in your project. It creates the KB if needed and wires the MCP tools, slash commands, and session hooks, then reload your editor window.

### Does Vouch need an LLM to work?

Only the compile step needs a model; you configure it with compile.llm_cmd in the config file. Session capture and rollup run mechanically without an LLM.

### Can I install Vouch globally for all projects?

Yes, `vouch install-mcp claude-code --global` wires user-level hooks and a user-scope server, while each folder still keeps its own .vouch/ data.
