# Vaultbase

> Vaultbase is an open-source MCP server for databases. Give AI agents scoped access to a self-hosted Vaultbase backend's data and logs. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** self-hosted, CLI
- **Website:** https://docs.vaultbase.dev/concepts/mcp/
- **Repository:** https://github.com/vaultbase-sh/mcp
- **MCP Registry name:** io.github.vaultbase-sh/vaultbase
- **Categories:** databases, developer tools
- **Listing updated:** 2026-11-14

## About

Access is gated by API token scopes, and every tool call is recorded in the audit log. A token minted with the mcp:read scope is enough to read data, and tokens come from the admin UI or vaultbase token mint with a time to live such as one year.

The server can browse collections and schemas, query, create, update and delete records, and read logs and the audit trail, with inspecting users, hooks and settings and running admin tasks marked as a later phase. The admin page at /_/mcp gives copy-paste connection snippets, a list of live connected clients and a catalog of every tool, resource and prompt.

There are two routes. vaultbase mcp runs over stdio on the machine that holds the data and needs VAULTBASE_DATA_DIR, while the npm bridge @vaultbase/mcp talks over HTTP and SSE to a running server using VAULTBASE_URL and VAULTBASE_MCP_TOKEN, needing Node 18+ and Vaultbase 0.10 or later.

## Features

- **Scoped tokens:** Token scopes such as mcp:read limit what an agent can do.
- **Audit logging:** Every tool call is recorded.
- **Record access:** Query, create, update and delete records.
- **Schema and logs:** Browse collections, read logs and the audit trail.
- **Admin page:** Snippets, live clients and a tool catalog at /_/mcp.
- **Stdio bridge:** An npm package connects clients to a remote server.

## Good for

- Ask how many records a collection holds
- Review failed logins in the last hour
- Inspect a collection schema
- Connect an agent to a remote deployment without installing the binary

## Install

### Claude Code (Terminal)

```sh
claude mcp add vaultbase --env VAULTBASE_URL='<VAULTBASE_URL>' --env VAULTBASE_MCP_TOKEN='<VAULTBASE_MCP_TOKEN>' -- npx -y @vaultbase/mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "vaultbase": {
      "command": "npx",
      "args": [
        "-y",
        "@vaultbase/mcp"
      ],
      "env": {
        "VAULTBASE_URL": "<VAULTBASE_URL>",
        "VAULTBASE_MCP_TOKEN": "<VAULTBASE_MCP_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "vaultbase": {
      "command": "npx",
      "args": [
        "-y",
        "@vaultbase/mcp"
      ],
      "env": {
        "VAULTBASE_URL": "<VAULTBASE_URL>",
        "VAULTBASE_MCP_TOKEN": "<VAULTBASE_MCP_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "vaultbase": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@vaultbase/mcp"
      ],
      "env": {
        "VAULTBASE_URL": "<VAULTBASE_URL>",
        "VAULTBASE_MCP_TOKEN": "<VAULTBASE_MCP_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "vaultbase": {
      "command": "npx",
      "args": [
        "-y",
        "@vaultbase/mcp"
      ],
      "env": {
        "VAULTBASE_URL": "<VAULTBASE_URL>",
        "VAULTBASE_MCP_TOKEN": "<VAULTBASE_MCP_TOKEN>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "vaultbase": {
      "command": "npx",
      "args": [
        "-y",
        "@vaultbase/mcp"
      ],
      "env": {
        "VAULTBASE_URL": "<VAULTBASE_URL>",
        "VAULTBASE_MCP_TOKEN": "<VAULTBASE_MCP_TOKEN>"
      }
    }
  }
}
```

## FAQ

### What token scope do I need?

mcp:read is enough to read data.

### Do calls get logged?

Yes, in the audit log.

### Do I need the binary on my machine?

Not with the npm bridge, which talks to a running server over HTTP.

### Which server version is required for the bridge?

Vaultbase 0.10 or later.

### Is Vaultbase free?

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

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

Run this command in your terminal: claude mcp add vaultbase --env VAULTBASE_URL='<VAULTBASE_URL>' --env VAULTBASE_MCP_TOKEN='<VAULTBASE_MCP_TOKEN>' -- npx -y @vaultbase/mcp

### What are the best alternatives to Vaultbase?

The closest alternatives to Vaultbase are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

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