# Kaval

> Kaval is an open-source MCP server. Verify the facts an agent's action depends on before it acts — ALLOW, REVIEW, or BLOCK. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Website:** https://usekaval.com
- **Repository:** https://github.com/lufemc/kaval-clients/tree/HEAD/packages/mcp
- **MCP Registry name:** io.github.LufeMC/kaval
- **Listing updated:** 2026-11-13

## About

Verify the facts an agent's action depends on before it acts — ALLOW, REVIEW, or BLOCK.

## Install

### Claude Code (Terminal)

```sh
claude mcp add kaval --env KAVAL_API_KEY='<KAVAL_API_KEY>' -- npx -y @usekaval/mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "kaval": {
      "command": "npx",
      "args": [
        "-y",
        "@usekaval/mcp"
      ],
      "env": {
        "KAVAL_API_KEY": "<KAVAL_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "kaval": {
      "command": "npx",
      "args": [
        "-y",
        "@usekaval/mcp"
      ],
      "env": {
        "KAVAL_API_KEY": "<KAVAL_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "kaval": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@usekaval/mcp"
      ],
      "env": {
        "KAVAL_API_KEY": "<KAVAL_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "kaval": {
      "command": "npx",
      "args": [
        "-y",
        "@usekaval/mcp"
      ],
      "env": {
        "KAVAL_API_KEY": "<KAVAL_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "kaval": {
      "command": "npx",
      "args": [
        "-y",
        "@usekaval/mcp"
      ],
      "env": {
        "KAVAL_API_KEY": "<KAVAL_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is Kaval free?

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

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

Run this command in your terminal: claude mcp add kaval --env KAVAL_API_KEY='<KAVAL_API_KEY>' -- npx -y @usekaval/mcp

---
Source: https://ai-powered.com/mcp/kaval
