🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@database-mcp/sqlite

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@database-mcp/sqlite

MCP server for SQLite with read-only guardrails, row caps, and statement timeouts

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
100
-17.36%
Maintainers
1
Weekly downloads
 
Created
Source

@database-mcp/sqlite

MCP server giving AI clients safe, structured access to a SQLite database. Two tools, guardrails on by default.

Quick start (Claude Desktop / Claude Code / Cursor)

{
  "mcpServers": {
    "sqlite": {
      "command": "npx",
      "args": ["-y", "@database-mcp/sqlite", "--dsn", "/absolute/path/to/database.db"]
    }
  }
}

Or with environment variables instead of flags: set SQLITE_PATH.

Tools

  • execute_sql { sql } — run a single SQL statement. Returns a summary line (N rows / truncated to N rows / OK (N affected)) followed by compact JSON {columns, rows}.
  • search_objects { table? } — without arguments, lists tables with estimated row counts; with a table name, returns its columns, indexes, and foreign keys.

Guardrails (defaults)

GuardrailDefaultOverride
Read-onlyon--allow-write / ALLOW_WRITE
Row cap1000--max-rows / MAX_ROWS
Query timeout30000 ms--query-timeout-ms / QUERY_TIMEOUT_MS

Read-only is enforced in two layers: a conservative SQL guard, plus the database file opened read-only with PRAGMA query_only=ON — so writes smuggled through CTEs are blocked too.

Part of database-mcp

One package per engine, identical tool contract, shared conformance suite: github.com/arifulislamat/database-mcp

License

MIT

Keywords

mcp

FAQs

Package last updated on 11 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts