Skip to content
MCP server

Database MCP Sqlite

SQLite MCP server for a local database file, read-only with row and time limits

Runs locally

Database MCP Sqlite is an open-source MCP server for databases. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
What it can do
Can change data (1 tool)
Version
0.5.0

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add database-mcp-sqlite --env SQLITE_PATH='<SQLITE_PATH>' -- npx -y @database-mcp/sqlite

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "database-mcp-sqlite": {
      "command": "npx",
      "args": [
        "-y",
        "@database-mcp/sqlite"
      ],
      "env": {
        "SQLITE_PATH": "<SQLITE_PATH>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "database-mcp-sqlite": {
      "command": "npx",
      "args": [
        "-y",
        "@database-mcp/sqlite"
      ],
      "env": {
        "SQLITE_PATH": "<SQLITE_PATH>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "database-mcp-sqlite": {
      "command": "npx",
      "args": [
        "-y",
        "@database-mcp/sqlite"
      ],
      "env": {
        "SQLITE_PATH": "<SQLITE_PATH>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "database-mcp-sqlite": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@database-mcp/sqlite"
      ],
      "env": {
        "SQLITE_PATH": "<SQLITE_PATH>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add database-mcp-sqlite --env SQLITE_PATH='<SQLITE_PATH>' -- npx -y @database-mcp/sqlite

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.database-mcp-sqlite]
command = "npx"
args = ["-y", "@database-mcp/sqlite"]
env = { SQLITE_PATH = "<SQLITE_PATH>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "database-mcp-sqlite": {
      "command": "npx",
      "args": [
        "-y",
        "@database-mcp/sqlite"
      ],
      "env": {
        "SQLITE_PATH": "<SQLITE_PATH>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "database-mcp-sqlite": {
          "command": "npx",
          "args": [
            "-y",
            "@database-mcp/sqlite"
          ],
          "env": {
            "SQLITE_PATH": "<SQLITE_PATH>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e SQLITE_PATH='<SQLITE_PATH>' database-mcp-sqlite npx -- -y @database-mcp/sqlite

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "database-mcp-sqlite": {
          "command": "npx",
          "args": [
            "-y",
            "@database-mcp/sqlite"
          ],
          "env": {
            "SQLITE_PATH": "<SQLITE_PATH>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "database-mcp-sqlite": {
          "command": "npx",
          "args": [
            "-y",
            "@database-mcp/sqlite"
          ],
          "env": {
            "SQLITE_PATH": "<SQLITE_PATH>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "database-mcp-sqlite": {
          "command": "npx",
          "args": [
            "-y",
            "@database-mcp/sqlite"
          ],
          "env": {
            "SQLITE_PATH": "<SQLITE_PATH>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "database-mcp-sqlite": {
          "command": "npx",
          "args": [
            "-y",
            "@database-mcp/sqlite"
          ],
          "env": {
            "SQLITE_PATH": "<SQLITE_PATH>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "database-mcp-sqlite": {
          "command": "npx",
          "args": [
            "-y",
            "@database-mcp/sqlite"
          ],
          "env": {
            "SQLITE_PATH": "<SQLITE_PATH>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "database-mcp-sqlite": {
          "command": "npx",
          "args": [
            "-y",
            "@database-mcp/sqlite"
          ],
          "env": {
            "SQLITE_PATH": "<SQLITE_PATH>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "database-mcp-sqlite": {
          "command": "npx",
          "args": [
            "-y",
            "@database-mcp/sqlite"
          ],
          "env": {
            "SQLITE_PATH": "<SQLITE_PATH>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • SQLITE_PATHPath to the SQLite database fileRequired
  • SQLITE_PATHPath to the SQLite database fileRequired
  • SQLITE_PATHPath to the SQLite database fileRequired

About Database MCP Sqlite

The simplest of the five variants: one required setting, SQLITE_PATH, points at the database file, or you pass --dsn with an absolute path in the client config as the README's quick start does. There are no network credentials to manage.

The search_objects tool reveals the schema step by step and execute_sql runs SQL with a read-only guard, a row cap of 1000 and a 30-second timeout by default. The README's example config launches it with npx and @database-mcp/sqlite, with equivalents for uvx and a cargo-installed binary.

All builds share one conformance suite run against real databases in CI and carry the MIT licence.

Tools this server provides (2)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 2 tools changes data.

From the server's own tool labels and tool names; not verified by us.

execute_sqlName suggests: changes
Run SQL against the database, read-only by default.
search_objectsName suggests: reads
List tables, or show columns, indexes and foreign keys for a table.

What it does

File-based setup
Needs only the path to a SQLite database file.
Schema discovery
search_objects lists tables then columns, indexes and foreign keys.
Read-only guard
execute_sql blocks writes by default.
Row and time caps
Defaults of 1000 rows and 30 seconds.
No runtime required
The Rust binary runs without Node or Python.
Registry listing
Published in the MCP Registry with npm, PyPI and cargo options.

Good for

  • Let an assistant inspect an app's local SQLite file
  • Query exported data without a database server
  • Check table structure while debugging
  • Prototype SQL against sample data

Pricing

Open source

MIT licensed

Database MCP Sqlite FAQ

What do I configure?

Set SQLITE_PATH, or pass --dsn with the file path.

Does Database MCP Sqlite support writes?

Not by default; it starts read-only.

Is Node required?

Not if you install the Rust binary with cargo; otherwise use npm or PyPI.

Where is the source?

The arifulislamat/database-mcp repository, MIT licensed.

Is Database MCP Sqlite free?

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

How do I add Database MCP Sqlite to Claude Code?

Run this command in your terminal: claude mcp add database-mcp-sqlite --env SQLITE_PATH='<SQLITE_PATH>' -- npx -y @database-mcp/sqlite

What are the best alternatives to Database MCP Sqlite?

The closest alternatives to Database MCP Sqlite are Midplane, Datatomcp, Gulliver, GaussDB Read-Only MCP and Zektor.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers