# mcp-sqlite

> mcp-sqlite is an open-source MCP server for databases. MCP server giving AI assistants read and write access to SQLite databases. It is available on CLI, VS Code and Self-hosted.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, VS Code, Self-hosted
- **Website:** https://www.npmjs.com/package/mcp-sqlite
- **Repository:** https://github.com/jparkerweb/mcp-sqlite
- **GitHub stars:** 131
- **License:** MIT
- **Categories:** [databases](https://ai-powered.com/categories/databases)
- **Listing updated:** 2026-12-01

## About

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.

## Features

- **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

## Tools

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_tables` (name suggests: reads): List all tables in the database.
- `get_table_schema` (name suggests: reads): Get detailed information about a table's schema.
- `create_record` (name suggests: changes): Insert a new record into a table.
- `read_records` (name suggests: reads): Query records from a table with optional filtering.
- `update_records` (name suggests: changes): Update records in a table that match specified conditions.
- `delete_records` (name suggests: deletes): Delete records from a table that match specified conditions.
- `query` (name suggests: reads): Execute a custom SQL query against the connected SQLite database.

## 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.

## Alternatives

- [Sqlite](https://ai-powered.com/mcp/sqlite): Sqlite is an open-source MCP server for databases.
- [MCP Sqlite Tools](https://ai-powered.com/mcp/mcp-sqlite-tools): MCP Sqlite Tools is an open-source MCP server for databases.
- [sqlite-mcp-server](https://ai-powered.com/mcp/sqlite-mcp-server-2): sqlite-mcp-server is an open-source MCP server for databases.
- [mcp-libsql](https://ai-powered.com/mcp/mcp-libsql): mcp-libsql is an open-source MCP server for databases.
- [MCP Sqlite3](https://ai-powered.com/mcp/mcp-sqlite3): MCP Sqlite3 is an open-source MCP server for databases.
- [sqlite-explorer-fastmcp-mcp-server](https://ai-powered.com/mcp/sqlite-explorer-fastmcp-mcp-server): sqlite-explorer-fastmcp-mcp-server is an open-source MCP server for databases.
- [db-mcp (SQLite MCP Server)](https://ai-powered.com/mcp/db-mcp-sqlite-mcp-server): db-mcp (SQLite MCP Server) is an open-source MCP server for databases.
- [mcp-sql](https://ai-powered.com/mcp/mcp-sql): mcp-sql is a free MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/mcp-sqlite-2
