Mcp Server Sqlite — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Mcp Server Sqlite (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
A comprehensive Model Context Protocol (MCP) server for SQLite database operations. This server enables AI assistants to interact with SQLite databases through a standardized interface, providing safe and efficient database operations.
Install globally:
npm install -g mcp-server-sqliteOr use with npx (no installation required):
npx mcp-server-sqlite --helpFor local development and testing:
git clone https://github.com/madnh/mcp-server-sqlite.git
cd mcp-server-sqlitenpm install
npm run buildnpm linkmcp-server-sqlite --db ./database.db
mcp-server-sqlite --helpnpm unlink -g mcp-server-sqlitenpm run dev # Development mode
npm run build && npm start # Production mode#### Via npm/npx (Recommended)
# Basic usage (creates database.db if not exists)
npx mcp-server-sqlite
# Specify database path
npx mcp-server-sqlite --db ./my-database.db
# Using long form
npx mcp-server-sqlite --database /path/to/production.db
# Get help
npx mcp-server-sqlite --help
# Check version
npx mcp-server-sqlite --version#### Via environment variable
export SQLITE_DB_PATH=./my-database.db
npx mcp-server-sqlite#### Development mode (from source)
npm run dev#### Production mode (from source)
npm run build
npm startCreate a .env file based on .env.example:
cp .env.example .envConfigure your database path:
SQLITE_DB_PATH=./your-database.dbCreate a sample database with test data:
node examples/setup-database.jsThis creates example.db with sample tables and data for testing.
#### Option 1: Using npx (Recommended)
Add to your Claude Desktop configuration (claude_desktop_config.json):
{
"mcpServers": {
"sqlite": {
"command": "npx",
"args": ["mcp-server-sqlite", "--db", "/path/to/your/database.db"]
}
}
}#### Option 2: Using global installation
If you installed globally with npm install -g mcp-server-sqlite:
{
"mcpServers": {
"sqlite": {
"command": "mcp-server-sqlite",
"args": ["--database", "/path/to/your/database.db"]
}
}
}#### Option 3: Using environment variables
{
"mcpServers": {
"sqlite": {
"command": "npx",
"args": ["mcp-server-sqlite"],
"env": {
"SQLITE_DB_PATH": "/path/to/your/database.db"
}
}
}
}#### Option 4: From source (development)
{
"mcpServers": {
"sqlite": {
"command": "node",
"args": ["/path/to/mcp-server-sqlite/dist/cli.js"],
"env": {
"SQLITE_DB_PATH": "/path/to/your/database.db"
}
}
}
}#### schema://database
Returns the complete database schema including all tables and their SQL definitions.
#### tables://list
Returns a JSON list of all table names in the database.
#### table-info://{tableName}
Returns detailed information about a specific table including:
#### query
Execute read-only SQL queries.
{
sql: string; // SELECT query to execute
}#### execute
Execute write operations.
{
sql: string; // INSERT, UPDATE, DELETE, CREATE, or DROP statement
}#### create-table
Create a new table with structured column definitions.
{
name: string,
columns: Array<{
name: string,
type: string, // TEXT, INTEGER, REAL, BLOB
primaryKey?: boolean,
notNull?: boolean,
unique?: boolean,
defaultValue?: string
}>,
ifNotExists?: boolean
}#### insert-record
Insert a new record into a table.
{
table: string,
data: Record<string, any> // Column-value pairs
}#### update-record
Update existing records.
{
table: string,
data: Record<string, any>, // Column-value pairs to update
where: string // WHERE clause
}#### delete-record
Delete records from a table.
{
table: string,
where: string // WHERE clause
}#### transaction
Execute multiple statements atomically.
{
statements: string[] // Array of SQL statements
}#### analyze-schema
Generate comprehensive database analysis.
{
includeData?: boolean // Include sample data in analysis
}#### generate-query
Generate SQL queries from natural language requirements.
{
requirement: string, // What you want to query
tables?: string[] // Specific tables to focus on
}#### optimize-query
Get query optimization suggestions.
{
query: string, // SQL query to optimize
executionContext?: string // Additional context
}SELECT u.username, COUNT(o.id) as order_count, SUM(o.total_amount) as total_spent
FROM users u
LEFT JOIN orders o ON u.id = o.user_id
GROUP BY u.id, u.username
ORDER BY total_spent DESC;{
"name": "customers",
"columns": [
{"name": "id", "type": "INTEGER", "primaryKey": true},
{"name": "name", "type": "TEXT", "notNull": true},
{"name": "email", "type": "TEXT", "unique": true},
{"name": "created_at", "type": "DATETIME", "defaultValue": "CURRENT_TIMESTAMP"}
]
}{
"table": "customers",
"data": {
"name": "John Doe",
"email": "[email protected]"
}
}{
"statements": [
"BEGIN TRANSACTION",
"INSERT INTO orders (user_id, total_amount) VALUES (1, 99.99)",
"INSERT INTO order_items (order_id, product_id, quantity, price) VALUES (last_insert_rowid(), 1, 2, 49.99)",
"UPDATE products SET stock_quantity = stock_quantity - 2 WHERE id = 1",
"COMMIT"
]
}The recommended way to develop and test locally:
# Setup for development
npm install
npm run build
npm link
# Now test your changes globally
mcp-server-sqlite --db ./example.db
# After making changes, rebuild and test
npm run build
mcp-server-sqlite --version
# Clean up when done
npm unlink -g mcp-server-sqlitenpm run build: Build TypeScript to JavaScriptnpm run dev: Run in development mode with auto-reloadnpm start: Run the compiled servernpm run stdio: Run server with stdio transportnpm link: Link package globally for development testingnpm pack --dry-run: Preview what will be publishedmcp-server-sqlite/
├── src/
│ └── index.ts # Main server implementation
├── examples/
│ ├── sample-data.sql # Sample database schema and data
│ └── setup-database.js # Database setup script
├── dist/ # Compiled JavaScript (after build)
├── package.json
├── tsconfig.json
├── README.md
└── .env.exampleThe server provides comprehensive error handling:
MIT License - see LICENSE file for details.
For issues and questions:
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.