About mcp-sqlite3
mcp-sqlite3 is an MCP server for using SQLite databases through the sqlite3 library. It provides tools for connections, SQL execution, schema operations, and CRUD workflows.
Key features
- 01Open and close database connections
- 02Commit and roll back transactions
- 03Run queries, batches, and scripts
- 04Inspect and modify table schemas
- 05Perform CRUD operations
Use cases
- 01Query an SQLite database and retrieve results
- 02Run parameterized statements across multiple inputs
- 03Inspect tables or change their schemas
- 04Insert, update, select, or delete rows
MCP support
Exposes sqlite3 functionality to MCP clients as tools for database connections, SQL execution, schema operations, and CRUD.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEmcp-sqlite3
MCP server exposing sqlite3 library functionality
Install
pip install mcp-sqlite3
Usage
from mcp_sqlite3 import mcp_server
mcp_server.run()
CLI
mcp-sqlite3 --help
API
Exposes complete sqlite3 functionality as MCP tools.
Connection Tools
connect_database- Open a database connectionclose_connection- Close a database connectioncommit/rollback- Transaction control
SQL Execution Tools
execute_query- Execute a query and return resultsexecute_many- Execute with multiple parameter setsexecute_script- Execute a SQL script
Schema Tools
list_tables- List all tablesget_table_info- Get table schemacreate_table/drop_table- DDL operations
CRUD Tools
insert_row/update_rows/delete_rows/select_rows
Development
git clone https://github.com/daedalus/mcp-sqlite3.git
cd mcp-sqlite3
pip install -e ".[test]"
# run tests
pytest
# format
ruff format src/ tests/
# lint
ruff check src/ tests/
# type check
mypy src/
MCP Server
mcp-name: io.github.daedalus/mcp-sqlite3
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.