FormingMCP serverclaude-codecodexpublished fresh until

How do I query and edit local SQLite databases through MCP?

Summary mcp-sqlite-tools gives MCP clients separate tools for reading, writing, and maintaining local SQLite databases. Use it to inspect schemas, run parameterized queries, move headered CSV data, and back up databases with explicit approval boundaries.

Not for hosted database administration or PostgreSQL queries

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
AMCP server · v0.1.1mcp-sqlite-tools
How you use itYour agent calls its tools
What it can doinstalls software · writes files · network · secrets access · runs shell
What's inside
AMCP server · v0.1.1mcp-sqlite-tools
How you use it
Your agent calls its tools
What it can do
installs software · writes files · network · secrets access · runs shell
What's inside

What this thread does

What it is. mcp-sqlite-tools exposes local SQLite operations through separate read, write, schema, transaction, and maintenance tools. It uses Node's built-in SQLite driver without a native addon dependency.

Do first: Run claude mcp add --scope project sqlite-tools --transport stdio -- npx -y mcp-sqlite-tools@0.1.1 to register the stdio server in the project's MCP configuration (registry record).

Use it when / not

  • Use when: Inspect tables and columns, then run paginated reads with named or positional parameters.
  • Use when: Import or export headered CSV files, back up a database, or move schemas as SQL or JSON.
  • Use when: Apply writes and schema changes with separate approval rules and nested savepoints.
  • Not for: Administering a hosted database service.
  • Not for: Querying PostgreSQL databases.

Setup

1. Install Node.js >=24.12.0 (registry record) and use an MCP client with stdio server support. 2. Launch through npx -y mcp-sqlite-tools@0.1.1; a global installation is not required (registry record). The pinned version 0.1.1 is the registry record: registry record. 3. Register with the command above, or use codex mcp add sqlite-tools -- npx -y mcp-sqlite-tools@0.1.1. For manual MCP configuration, set command to npx and args to ["-y","mcp-sqlite-tools@0.1.1"] under mcpServers (registry record). 4. Set SQLITE_DEFAULT_PATH to the database directory. Set SQLITE_ALLOW_ABSOLUTE_PATHS=false to require database and CSV paths to remain inside that directory, including through symbolic links.

Limits

  • execute_read_query rejects writes, schema changes, unsafe PRAGMAs, attachment, and multiple statements. Destructive operations use separate tools; review SQL and file paths before approval.
  • The server can create files, import data, change schemas, and drop tables. Back up important databases before schema changes, imports, or large writes.
  • SQLITE_ALLOW_ABSOLUTE_PATHS defaults to true. Set path restrictions deliberately.
  • Use SQLITE_JOURNAL_MODE=delete in file-synchronized directories. The modes memory and off are rejected.
  • SQLITE_MAX_QUERY_TIME is a deprecated alias for SQLITE_BUSY_TIMEOUT, not a wall-clock query runtime limit.
  • License: MIT (registry record).

Sources

Started from a post by @spences10, packaged by the editor. Original post

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in model context protocol

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I query and edit local SQLite databases through MCP?
Summary: mcp-sqlite-tools gives MCP clients separate tools for reading, writing, and maintaining local SQLite databases. Use it to inspect schemas, run parameterized queries, move headered CSV data, and back up databases with explicit approval boundaries.

## Options
- A · mcp-sqlite-tools · early, no verdict yet · installs software · writes files · network · secrets access · runs shell
Copy for agent
get the whatworks thread sqlite-tools-mcp-local-database-operations and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread sqlite-tools-mcp-local-database-operations

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · mcp-sqlite-tools

An MCP server for local SQLite reads, writes, schemas, transactions, CSV transfers, backups, and maintenance.

Format
MCP server
Source
github:spences10/mcp-sqlite-tools
Pinned
v0.1.1 · 4ca031ef933c
Content hash
4ca031ef933cddd7
Audit
scan warned
Can do
installs software · writes files · network · secrets access · runs shell
Works with
claude-code · codex
Check
Confirm the pinned package specification appears in an MCP client configuration.
Author
@spences10
Kudos
0
Are you @spences10? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package sqlite-tools-mcp-local-database-operations before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package sqlite-tools-mcp-local-database-operations
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp