SQLite MCP server

SQLite MCP server

easy-sqlite-mcp•bychenkumi

A Model Context Protocol server that enables LLMs to interact directly with SQLite databases for querying, modifying data, and discovering schema.

License: MIT•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Provides read-only SELECT query and write/modification execution tools for SQLite.
  • •Offers schema discovery tools for tables, views, indexes, and triggers, plus table listing and table description.
  • •Supports manual mode where the agent opens and closes the database, and fixed mode where SQLITE_PATH auto-opens a database at startup.
  • •Runs over stdio and manages a single open SQLite connection at a time.

BEST FOR

  • •Letting LLM agents query and inspect a SQLite database's data and schema.
  • •Giving an agent a preconfigured fixed SQLite database at startup.
  • •Use inside MCP clients such as Claude Desktop, Codex, and OpenCode.

ABOUT EASY-SQLITE-MCP

SQLite MCP server is cataloged as an MCP server attributed to chenkumi. A Model Context Protocol server that enables LLMs to interact directly with SQLite databases for querying, modifying data, and discovering schema. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for SQLite MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does fixed mode differ from manual mode?

In fixed mode SQLITE_PATH is set and the server automatically opens that database at startup with connection switching disabled; manual mode requires the agent to call sqlite_open and sqlite_close.

Can more than one SQLite database be open at once?

No, only one SQLite database file can be open at a time; opening another file closes the previous connection first.

What should be called when unsure how to use the tools?

Call sqlite_manual first; it returns the built-in manual with safe usage rules and lifecycle notes.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 0b8e9b17fd53 · 采集于 2026-11-13 11:15:51 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

easy-sqlite-mcp

A Model Context Protocol (MCP) server implemented in Node.js and TypeScript, designed to enable LLMs to interact directly with SQLite databases.

This project uses Node.js, TypeScript, the official MCP SDK, and better-sqlite3. It runs over stdio, so it can be used directly by MCP clients such as Claude Desktop, Codex, and OpenCode.

Features

  • SQLite connection management for manual and fixed startup modes
  • Read-only query tool for data retrieval
  • Execute tool for data modification and schema statements
  • Schema discovery tools for tables, views, indexes, and triggers
  • Lightweight, synchronous SQLite access powered by better-sqlite3

better-sqlite3 in this project requires Node.js 22 or newer. Use Node.js 22 LTS for the most reliable prebuilt-binary availability on Windows.

Requirements

  • Node.js 22 or newer (Node.js 22 LTS recommended)
  • npm
  • A reachable SQLite database file

Installation

Run the server directly with npx:

npx -y easy-sqlite-mcp

For local development after cloning the repository:

cd easy-sqlite-mcp
npm install
npm run build

Configuration

Configure the server with environment variables in your MCP client configuration or shell environment.

VariableRequiredDefaultDescription
SQLITE_PATHNo-Absolute or relative path to a SQLite database file. When set, the server starts in fixed mode

Example shell configuration:

SQLITE_PATH=/absolute/path/to/database.sqlite npx -y easy-sqlite-mcp

In PowerShell:

$env:SQLITE_PATH = "C:\data\database.sqlite"
npx -y easy-sqlite-mcp

The server communicates over stdio and is normally launched by an MCP client rather than run manually.

If you are unsure how a tool should be used, or an operation fails, call sqlite_manual first. It returns the built-in manual with safe usage rules, placeholder guidance, and lifecycle notes.

Modes

Easy SQLite MCP supports two startup modes. The server description is generated at startup so MCP clients and agents can clearly understand which mode is active.

Manual Mode

Manual mode is used when SQLITE_PATH is not provided.

In this mode, the agent must explicitly open and close a database:

  1. Call sqlite_open(path) before using database tools.
  2. Use query, execute, and schema discovery tools.
  3. Call sqlite_close when finished.

Only one SQLite database file can be open at a time. Opening another file closes the previous connection first.

Server description:

Manual: This is a SQLite tool. Before using it, call sqlite_open(path) to open a database file. After use, call sqlite_close to close it. Only one database file can be open at a time.

Available tools in Manual mode:

  • sqlite_open
  • sqlite_close
  • sqlite_status
  • sqlite_query
  • sqlite_execute
  • sqlite_list_tables
  • sqlite_describe_table

Fixed Mode

Fixed mode is used when SQLITE_PATH is provided as an environment variable.

In this mode, the server automatically opens the configured SQLite database during startup. The agent does not need to call sqlite_open, and connection switching is disabled.

Server description:

Fixed: This is a SQLite tool connected to Path:<SQLITE_PATH>

Available tools in Fixed mode:

  • sqlite_status
  • sqlite_query
  • sqlite_execute
  • sqlite_list_tables
  • sqlite_describe_table

Claude Desktop Example

Manual mode:

{
  "mcpServers": {
    "easy-sqlite-mcp": {
      "command": "npx",
      "args": ["-y", "easy-sqlite-mcp"]
    }
  }
}

Fixed mode example:

{
  "mcpServers": {
    "easy-sqlite-mcp": {
      "command": "npx",
      "args": ["-y", "easy-sqlite-mcp"],
      "env": {
        "SQLITE_PATH": "/absolute/path/to/database.sqlite"
      }
    }
  }
}

Restart Claude Desktop after updating the configuration.

Codex config.toml Example

Manual mode:

[mcp_servers.easy-sqlite-mcp]
args = ["-y", "easy-sqlite-mcp"]
command = "npx"
enabled = true

Fixed mode example:

[mcp_servers.easy-sqlite-mcp]
args = ["-y", "easy-sqlite-mcp"]
command = "npx"
enabled = true

[mcp_servers.easy-sqlite-mcp.env]
SQLITE_PATH = "/absolute/path/to/database.sqlite"

OpenCode opencode.jsonc Example

Manual mode:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "easy-sqlite-mcp": {
      "type": "local",
      "command": ["npx", "-y", "easy-sqlite-mcp"],
      "enabled": true
    }
  }
}

Fixed mode example:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "easy-sqlite-mcp": {
      "type": "local",
      "command": ["npx", "-y", "easy-sqlite-mcp"],
      "enabled": true,
      "environment": {
        "SQLITE_PATH": "/absolute/path/to/database.sqlite"
      }
    }
  }
}

Available Tools

ToolDescription
sqlite_manualReturn the built-in manual. Use this first when you are unsure how to use SQLite tools or need help diagnosing an operation error
sqlite_openOpen a SQLite database file. Manual mode only
sqlite_closeClose the current database connection. Manual mode only
sqlite_statusReturn connection status and current database summary
sqlite_queryExecute a read-only SELECT query
sqlite_executeExecute a write or modification SQL statement
sqlite_list_tablesList all user tables in the database
sqlite_describe_tableDescribe the schema of a table

Manual Mode Notes

  • Use sqlite_open(path) before calling query or execute tools.
  • Use sqlite_close when finished.
  • Only one database file can be open at a time.
  • Use sqlite_manual when you need lifecycle or placeholder guidance.

Development

npm run build
npm run dev
npm test

License

MIT. See LICENSE.md.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for SQLite MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/easy-sqlite-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage