Skip to content
MCP server

mcp-sqlite

MCP server giving AI assistants read and write access to SQLite databases

mcp-sqlite is an open-source MCP server for databases. It is available on CLI, VS Code and Self-hosted.

Pricing
Open source
Platforms
CLI, VS Code, Self-hosted
What it can do
Can delete data (1 tool)
GitHub stars
131
Last commit
Language
JavaScript

Similar MCP servers

About mcp-sqlite

Running as a local process, this server lets an MCP-compatible client inspect a SQLite file, list its tables and read their schemas, then create, read, update and delete rows. A database path is passed as a startup argument, so the assistant works against the file you point it at.

Beyond the standard record operations, it accepts raw SQL with optional parameter values, which covers queries that the simple filters cannot express. Setup is a short JSON entry in the editor's MCP settings that launches the package through npx.

It suits developers and analysts who want an assistant to explore or modify a local SQLite database during everyday work, without writing the queries by hand.

Tools this server provides (8)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 8 tools deletes data and 2 change data; 1 name doesn't say.

From the server's own tool labels and tool names; not verified by us.

db_info
Get detailed information about the connected database.
list_tablesName suggests: reads
List all tables in the database.
get_table_schemaName suggests: reads
Get detailed information about a table's schema.
create_recordName suggests: changes
Insert a new record into a table.
read_recordsName suggests: reads
Query records from a table with optional filtering.
update_recordsName suggests: changes
Update records in a table that match specified conditions.
delete_recordsName suggests: deletes
Delete records from a table that match specified conditions.
queryName suggests: reads
Execute a custom SQL query against the connected SQLite database.

What it does

Database introspection
Reports overall database details, lists tables and returns each table's schema.
Record CRUD operations
Inserts, queries, updates and deletes rows using key-value conditions.
Filtered reads with paging
Reads records with optional conditions, a row limit and an offset.
Custom SQL execution
Runs arbitrary SQL with bound parameter values for complex queries.
Simple editor setup
Connects to Cursor and VS Code through a short JSON server entry launched with npx.

Good for

  • Letting an assistant explore an unfamiliar SQLite file and summarise its tables
  • Adding, editing or removing rows in a local app database through chat
  • Running parameterised SQL queries against a development database
  • Checking a table's schema before writing code that depends on it

Pricing

Open source

Free and open source under the MIT licence.

Prices change. Check npmjs.com before you buy.

More servers for the same service

mcp-sqlite FAQ

How is the database specified?

The database path is provided as an argument when the server is started.

Which tools does the server expose?

It provides db_info, list_tables, get_table_schema, create_record, read_records, update_records, delete_records and query.

Which editors are shown in the setup examples?

The README gives configuration examples for Cursor and VS Code.

Is mcp-sqlite free to use?

It is published under the MIT licence and installed from npm.

What are the best alternatives to mcp-sqlite?

The closest alternatives to mcp-sqlite are Sqlite, MCP Sqlite Tools, sqlite-mcp-server, mcp-libsql and MCP Sqlite3.

Where this comes from

  • Description: written from the project's README.

How AIPoweredBot checks servers