mcp-sqlite-tools

v0.0.11
io.github.spences10/mcp-sqlite-tools Checked 2 hours ago Published 1 year ago

MCP server for local SQLite database operations

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

open_database ✓ SAFE: Open or create a SQLite database file

✓ SAFE: Open or create a SQLite database file

ParameterTypeDescription
path *string
createboolean

close_database ✓ SAFE: Close a database connection

✓ SAFE: Close a database connection

ParameterTypeDescription
databasestring

list_databases ✓ SAFE: List available database files in a directory

✓ SAFE: List available database files in a directory

ParameterTypeDescription
directorystring

database_info ✓ SAFE: Get information about a database (size, tables, etc.)

✓ SAFE: Get information about a database (size, tables, etc.)

ParameterTypeDescription
databasestring

list_tables ✓ SAFE: List all tables and views in a database

✓ SAFE: List all tables and views in a database

ParameterTypeDescription
databasestring

describe_table ✓ SAFE: Get schema information for a table

✓ SAFE: Get schema information for a table

ParameterTypeDescription
table *string
databasestring

create_table ⚠️ SCHEMA CHANGE: Create a new table with specified columns

⚠️ SCHEMA CHANGE: Create a new table with specified columns

ParameterTypeDescription
columns *array
name *string
databasestring

drop_table ⚠️ DESTRUCTIVE: Permanently delete a table and all its data

⚠️ DESTRUCTIVE: Permanently delete a table and all its data

ParameterTypeDescription
table *string
databasestring

backup_database ✓ SAFE: Create a backup copy of a database

✓ SAFE: Create a backup copy of a database

ParameterTypeDescription
backup_pathstring
source_databasestring

vacuum_database ✓ MAINTENANCE: Optimize database storage by reclaiming unused space

✓ MAINTENANCE: Optimize database storage by reclaiming unused space

ParameterTypeDescription
databasestring

execute_read_query ✓ SAFE: Execute read-only SQL queries (SELECT, PRAGMA, EXPLAIN)

✓ SAFE: Execute read-only SQL queries (SELECT, PRAGMA, EXPLAIN)

ParameterTypeDescription
query *string
databasestring
paramsobject

execute_write_query ⚠️ DESTRUCTIVE: Execute SQL that modifies data (INSERT, UPDATE, DELETE)

⚠️ DESTRUCTIVE: Execute SQL that modifies data (INSERT, UPDATE, DELETE)

ParameterTypeDescription
query *string
databasestring
paramsobject

execute_schema_query ⚠️ SCHEMA CHANGE: Execute DDL queries (CREATE, ALTER, DROP)

⚠️ SCHEMA CHANGE: Execute DDL queries (CREATE, ALTER, DROP)

ParameterTypeDescription
query *string
databasestring
paramsobject

bulk_insert ⚠️ DESTRUCTIVE: Insert multiple records efficiently in batches

⚠️ DESTRUCTIVE: Insert multiple records efficiently in batches

ParameterTypeDescription
data *array
table *string
batch_sizenumber
databasestring

begin_transaction ⚠️ TRANSACTION: Begin a database transaction

⚠️ TRANSACTION: Begin a database transaction

ParameterTypeDescription
databasestring

commit_transaction ✓ TRANSACTION: Commit the current database transaction

✓ TRANSACTION: Commit the current database transaction

ParameterTypeDescription
databasestring

rollback_transaction ⚠️ TRANSACTION: Rollback the current database transaction

⚠️ TRANSACTION: Rollback the current database transaction

ParameterTypeDescription
databasestring

export_schema ✓ SAFE: Export database schema as SQL or JSON

✓ SAFE: Export database schema as SQL or JSON

ParameterTypeDescription
databasestring
format
tablesarray

import_schema ⚠️ SCHEMA CHANGE: Import and execute schema from SQL or JSON

⚠️ SCHEMA CHANGE: Import and execute schema from SQL or JSON

ParameterTypeDescription
schema *string
databasestring
format