Is the SQLite MCP server safe? What it can reach
What the SQLite MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.
The SQLite server is a reference server from the MCP project, now archived and no longer maintained. It runs locally on one database file you name and has no sign-in. Its write_query tool runs any SQL against that file, and there is no read-only flag. Point it at a copy of the database.
Who maintains it
| Implementation | Kind | Status |
|---|---|---|
| modelcontextprotocol/servers-archived, src/sqlite | Official | archived |
It runs as a local process on your machine.
How it signs in
No credential. The server opens the SQLite file at --db-path with the permissions of the account that runs it.
What its tools can do
| Kind | Tools |
|---|---|
| Read | read_query, list_tables, describe-table |
| Write | create_table, append_insight |
| Can’t be undone | write_query |
write_query takes INSERT, UPDATE and DELETE statements. append_insight adds to the memo://insights resource kept by the server.
Built-in limits
| Option | What it does |
|---|---|
--db-path | The only documented option. It selects which database file the server opens. |
Client-side tool rules | The docs name no read-only mode, so limit write_query in your MCP client. |
The risks
- write_query can run UPDATE and DELETE on the whole database file, and a deleted row can’t be recovered unless you have a copy.
- read_query can return every table in the file, so an injected instruction can pull private rows into the conversation.
- The server is archived, so no one will fix a flaw found in it.
- It has no sign-in, so anything that can start the process or reach its stdio can use the database.
Limit it in Claude Code
Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:
claude mcp add sqlite -- uvx mcp-server-sqlite --db-path /path/to/database.dbClaude Code names MCP tools mcp__sqlite__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:
{
"permissions": {
"deny": [
"mcp__sqlite__write_query"
],
"ask": [
"mcp__sqlite__create_table",
"mcp__sqlite__append_insight"
]
}
}Limit it in Codex
Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:
[mcp_servers.sqlite]
command = "uvx"
args = ["mcp-server-sqlite", "--db-path", "/path/to/database.db"]
disabled_tools = ["write_query"]Checklist
- Point --db-path at a copy of the database, not the original.
- Deny write_query unless you need to change data.
- Set the copy to read-only at the file level if you only need queries.
- Plan a move to a maintained SQLite server, since this one is archived.
Checked against the vendor documentation on November 25, 2026. Archived SQLite server README · servers-archived repo
What Excellent covers
Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server
Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing