# Claix

The Claix MCP server for Claude Code controls an agent’s access to SQL data. Retrieve limits reads to configured tables and columns, while Guard approves or rejects proposed writes.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: claix-dev
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/claix-dev/claix-mcp
- Updated: 2026-11-10
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/claix

## What it does

Claix connects an AI agent to a SQL database through a hosted MCP server. Retrieve answers questions using only permitted tables and columns. Guard returns an allow or deny decision for proposed `INSERT`, `UPDATE`, or `DELETE` statements; it does not run the SQL.

An API key is required, and Claix charges for usage. Send the key in the `x-api-key` header. Supported databases include PostgreSQL, MySQL, and MariaDB, along with services compatible with PostgreSQL such as Supabase.

The secondary Ingest feature turns documents into JSON or Markdown. The server accepts Streamable HTTP and legacy SSE connections.

## Requirements
- Remote server: `https://www.claix.dev/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http claix https://www.claix.dev/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add claix --url https://www.claix.dev/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "claix": {
            "url": "https://www.claix.dev/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "claix": {
            "type": "http",
            "url": "https://www.claix.dev/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http claix https://www.claix.dev/mcp
```

## When to use it
- restrict an agent’s reads to selected tables and columns
- check a proposed database change before the app runs it
- answer questions with typed results from database records
- extract structured JSON or Markdown from a document

## Example prompts
- Set up Retrieve to read the orders tables and count records for this period.
- Check this `UPDATE` with Guard and return the decision and reason.
- Extract data from this PDF as JSON using the configured schema.

## Similar
- [mysql-patterns](https://affpapa.org/en/nevibecode/skills/mysql-patterns.md) — skill · 6400 installs
- [rds-oss](https://affpapa.org/en/nevibecode/skills/rds-oss.md) — skill · 5900 installs
- [DB Explorer](https://affpapa.org/en/nevibecode/mcp/db-explorer.md) — MCP server · ★ 8 repo stars
- [quarry](https://affpapa.org/en/nevibecode/mcp/quarry.md) — MCP server · ★ 5 repo stars
- [sql-code-review](https://affpapa.org/en/nevibecode/skills/sql-code-review.md) — skill · 14060 installs
- [database-optimizer](https://affpapa.org/en/nevibecode/skills/httpsgithubcomjeffallan-database-optimizer.md) — skill · 6500 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
