SQLite MCP Server
Provides read and write access to SQLite databases, supporting multi-database management, table discovery, schema inspection, and safe CRUD operations with parameterized queries and required WHERE clauses.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SQLite MCP ServerList all available databases"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SQLite MCP Server
A general-purpose Model Context Protocol (MCP) server for SQLite databases. This server provides read and write access to any SQLite database in the database folder through Claude Desktop and other MCP clients.
Features
Multi-Database Support: Work with multiple SQLite databases in a single server
Read Operations: Query tables, list databases, describe schemas
Write Operations: Insert, update, and delete data safely
Safety Features: Parameterized queries, validation, and required WHERE clauses for destructive operations
Related MCP server: SQLite MCP Server
Available Tools
Database Discovery
list_databases- List all available .db files in the database folderlist_tables- List all tables in a specific databasedescribe_table- Get detailed table structure (columns, types, constraints)
Read Operations
query_database- Execute SELECT queries with automatic LIMIT protection
Write Operations
insert_data- Insert new rows into tablesupdate_data- Update existing rows (requires WHERE clause)delete_data- Delete rows (requires WHERE clause)execute_raw_sql- Execute any SQL query (use with caution)
Installation
Prerequisites
Python 3.10 or higher
pip (Python package manager)
Setup
Clone or download this repository
Install dependencies:
pip install -r requirements.txtAdd your databases:
Place your SQLite
.dbfiles in thedatabase/folderThe server will work with any
.dbfile you add to this folderYou can add multiple databases and switch between them
Usage
Running Locally
Test the server locally:
python sqlite_mcp.pyClaude Desktop Integration
Add the server to your Claude Desktop configuration file:
Windows: %APPDATA%\Claude\claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
Option A: Using Python directly
{
"mcpServers": {
"sqlite-mcp-server": {
"command": "python",
"args": [
"C:/Users/YOUR_USERNAME/path/to/sqlite-mcp-server/sqlite_mcp.py"
]
}
}
}Option B: Using uv with fastmcp
{
"mcpServers": {
"sqlite-mcp-server": {
"command": "uv",
"args": [
"run",
"--with", "fastmcp",
"fastmcp", "run",
"C:/Users/YOUR_USERNAME/path/to/sqlite-mcp-server/sqlite_mcp.py"
]
}
}
}Replace C:/Users/YOUR_USERNAME/path/to/sqlite-mcp-server/ with your actual project path.
Restart Claude Desktop
After updating the configuration:
Completely quit Claude Desktop
Restart the application
The SQLite MCP Server should now be available
Example Usage in Claude
Once connected, you can interact with your databases through Claude:
"List all available databases"
"Show me the tables in ecommerce.db"
"Describe the structure of the users table in ecommerce.db"
"Query the top 10 products from the products table in ecommerce.db"
"Insert a new user with name 'John Doe' and email 'john@example.com' into ecommerce.db"Security Notes
The server uses parameterized queries to prevent SQL injection
Write operations require explicit WHERE clauses to prevent accidental mass updates/deletes
Query results are limited to 1000 rows by default
Project Structure
sqlite-mcp-server/
├── sqlite_mcp.py # Main MCP server
├── database/ # SQLite database files go here
│ └── *.db # Your database files
├── requirements.txt # Python dependencies
├── .gitignore # Git ignore rules
└── README.md This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/enesmanan/sqlite-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server