SQLite MCP Server
Lightweight SQLite database operations for querying and managing local databases from Claude Code. Perfect for prototyping, embedded databases, mobile app backends, and local data analysis workflows.
MCP Server Configuration
{ "mcpServers": { "sqlite": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-sqlite", "/path/to/database.db" ] } } }
Available Tools
| Tool | Description |
|---|---|
read_query | Execute SELECT queries to read data |
write_query | Execute INSERT, UPDATE, DELETE queries |
create_table | Create new tables with schema definitions |
list_tables | List all tables in the database |
describe_table | Get table schema, columns, and types |
append_insight | Save analysis insights as memo resources |
Common Database Paths
# Typical locations ./data/app.db # Project-local database ~/Library/Application Support/*/ # macOS app databases ~/.local/share/*/ # Linux app databases /tmp/scratch.db # Temporary analysis database
Setup
- Identify or create your SQLite database file
- Replace
/path/to/database.dbwith the absolute path to your.dbfile - The server will create the file if it doesn't exist
Usage Examples
Once configured, you can ask Claude Code to:
- "Show me all tables and their schemas"
- "Query the users table for records created this month"
- "Create a migration to add an email column to the profiles table"
- "Analyze the data distribution in the orders table"
- "Export the results of this query as a CSV"
Security Notes
- SQLite databases are file-based - ensure proper file system permissions
- Back up your database before allowing write operations
- For read-only access, set file permissions to read-only (
chmod 444) - The server has full read/write access to the specified database file
- Do not point this at production databases without backups
Reviews
No reviews yet. Be the first to review this template!
Similar Templates
Database MCP Integration
MCP server configuration for connecting Claude Code to PostgreSQL, MySQL, and MongoDB databases. Enables schema inspection, query building, and migration generation.
Elevenlabs Server
Streamline your workflow with this official, elevenlabs, text, speech. Includes structured workflows, validation checks, and reusable patterns for audio.
Browser Use Portal
Powerful mcp for server, enables, agents, control. Includes structured workflows, validation checks, and reusable patterns for browser_automation.