MCP server exposing sqlite3 library functionality
pip install mcp-sqlite3from mcp_sqlite3 import mcp_server
mcp_server.run()mcp-sqlite3 --helpExposes complete sqlite3 functionality as MCP tools.
connect_database- Open a database connectionclose_connection- Close a database connectioncommit/rollback- Transaction control
execute_query- Execute a query and return resultsexecute_many- Execute with multiple parameter setsexecute_script- Execute a SQL script
list_tables- List all tablesget_table_info- Get table schemacreate_table/drop_table- DDL operations
insert_row/update_rows/delete_rows/select_rows
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-name: io.github.daedalus/mcp-sqlite3