Tools for connecting your AI coding assistant to a VibeSQL database.
Two options: MCP Server (recommended) or Slash Commands.
An MCP server that gives your AI coding tool direct database access. 9 tools: query, list tables, describe, browse data, create tables, insert rows, and help.
npx vibesql-micro # start database on :5173
npx vibesql-mcp # start MCP serverAdd .mcp.json to your project root:
{
"mcpServers": {
"vibesql": {
"command": "npx",
"args": ["--yes", "vibesql-mcp"]
}
}
}Windows — wrap with cmd /c:
{
"mcpServers": {
"vibesql": {
"command": "cmd",
"args": ["/c", "npx", "--yes", "vibesql-mcp"]
}
}
}With a custom URL:
{
"mcpServers": {
"vibesql": {
"command": "npx",
"args": ["--yes", "vibesql-mcp", "--url", "http://10.0.0.5:5173"]
}
}
}| Tool | Description |
|---|---|
query |
Execute any SQL (DDL + DML) |
list_tables |
List all tables in the database |
describe_table |
Column schema for a table |
table_data |
Browse rows with pagination |
create_table |
Create a table (DDL validated, no semicolons) |
insert_row |
Insert a row from JSON column-value pairs |
help |
Help on a VibeSQL topic |
help_products |
Product family overview |
help_architecture |
Architecture patterns |
The query tool is intentionally unrestricted — it can execute any valid SQL including DROP, DELETE, and TRUNCATE. This is a local development tool.
Set VIBESQL_URL to override the default http://localhost:5173. The --url flag takes precedence.
A slash command that translates natural language to PostgreSQL queries.
Works with Claude Code, OpenCode, and Codex CLI.
Start vibesql-micro first:
npx vibesql-micro # starts on http://localhost:5173Then copy the skill for your platform:
Claude Code:
cp -r claude/vibe-sql ~/.claude/skills/vibe-sqlOpenCode:
cp -r opencode/vibe-sql ~/.opencode/skills/vibe-sqlCodex CLI:
cp -r codex/vibe-sql ~/.agents/skills/vibe-sql/vibe-sql show me all tables
/vibe-sql create a products table with name, price, and description
/vibe-sql add a row: name=Widget, price=9.99
/vibe-sql what's the average price
/vibe-sql add a category column to products
- Translates natural language to PostgreSQL 16.1 SQL
- Executes against
POST /v1/queryon your local vibesql-micro - Presents results as readable tables
- Knows JSONB operators, DDL, CRUD, aggregation, pagination
- Confirms before destructive operations (DROP, TRUNCATE)
- Requires WHERE on UPDATE/DELETE
claude-mcp/ # vibesql-mcp — MCP server (npm package)
claude/vibe-sql/SKILL.md # Claude Code slash command
claude/vibe-mail/SKILL.md # Claude Code agent mail skill
opencode/vibe-sql/SKILL.md # OpenCode slash command
opencode/vibe-mail/SKILL.md # OpenCode agent mail skill
codex/vibe-sql/SKILL.md # Codex CLI slash command
codex/vibe-mail/SKILL.md # Codex CLI agent mail skill
Apache-2.0