Back to Home
spences10 icon

mcp-sqlite-tools

Verified Safe

by spences10

Overview

An MCP server enabling AI assistants to perform comprehensive, secure, and efficient SQLite database operations on local files, including data manipulation, schema changes, and transaction management.

Installation

Run Command
npx -y mcp-sqlite-tools

Environment Variables

  • SQLITE_DEFAULT_PATH
  • SQLITE_ALLOW_ABSOLUTE_PATHS
  • SQLITE_MAX_QUERY_TIME
  • SQLITE_BACKUP_PATH
  • DEBUG

Security Notes

The server explicitly prioritizes security with multiple layers: query classification (read-only, destructive, schema), strict path validation (preventing directory traversal, controlling absolute path access), and comprehensive input validation for all tool parameters using Valibot. Tools are categorized ('SAFE', 'DESTRUCTIVE', 'SCHEMA CHANGE', 'TRANSACTION') to enable fine-grained approval control by MCP clients. No direct 'eval' or unvalidated command injection vectors were identified. The use of 'better-sqlite3' relies on a native C++ module, which is generally secure, but its build process could expose supply chain risks if prebuilt binaries are not used or verified.

Similar Servers

Stats

Interest Score36
Security Score9
Cost ClassMedium
Avg Tokens2000
Stars6
Forks2
Last Update2025-12-03

Tags

MCPSQLiteDatabaseLLMAISQLData Management