databasesdeveloper-tools

SQLite (Node.js)

by johnnyoshika

Use SQLite (Node.js) to easily implement SQLite databases in your Node.js applications for efficient data management.

Implements SQLite functionality in Node.js.

github stars

16

Node.js alternative to Python versionWorks via npx without installation

best for

  • / Data analysis and exploration
  • / Local application development
  • / Environments where Python is unavailable

capabilities

  • / Execute SQL queries on SQLite databases
  • / Create and modify database tables
  • / Insert and update database records
  • / Read database schemas and metadata
  • / Perform database transactions

what it does

Provides SQLite database access through Node.js, allowing you to query and manipulate SQLite databases directly from Claude Desktop.

about

SQLite (Node.js) is a community-built MCP server published by johnnyoshika that provides AI assistants with tools and capabilities via the Model Context Protocol. Use SQLite (Node.js) to easily implement SQLite databases in your Node.js applications for efficient data management. It is categorized under databases, developer tools.

how to install

You can install SQLite (Node.js) in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

license

MIT

SQLite (Node.js) is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

readme

MCP SQLite Server

smithery badge MseeP.ai Security Assessment Badge

A Node.js implementation of the Model Context Protocol SQLite server, based on the official Python reference. This version provides an npx-based alternative for environments where Python's UVX runner is not available, such as LibreChat.

Use with Claude Desktop

Installing Manually

Add the following to claude_desktop_config.json:

{
  "mcpServers": {
    "sqlite": {
      "command": "/absolute/path/to/npx",
      "args": [
        "-y",
        "mcp-server-sqlite-npx",
        "/absolute/path/to/database.db"
      ],
      "env": {
        "PATH": "/absolute/path/to/executables",
        "NODE_PATH": "/absolute/path/to/node_modules"
      }
    }
  }
}

Full example when using nvm on macoS:

~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "sqlite": {
      "command": "/Users/{username}/.nvm/versions/node/v22.12.0/bin/npx",
      "args": [
        "-y",
        "mcp-server-sqlite-npx",
        "/Users/{username}/projects/database.db"
      ],
      "env": {
        "PATH": "/Users/{username}/.nvm/versions/node/v22.12.0/bin:/usr/local/bin:/usr/bin:/bin",
        "NODE_PATH": "/Users/{username}/.nvm/versions/node/v22.12.0/lib/node_modules"
      }
    }
  }
}

Full example when using nvm on Windows:

%APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "sqlite": {
      "command": "C:\Program Files\
odejs\
px.cmd",
      "args": [
        "-y",
        "mcp-server-sqlite-npx",
        "C:\Users\{username}\projects\database.db"
      ],
      "env": {
        "PATH": "C:\Program Files\
odejs;%PATH%",
        "NODE_PATH": "C:\Program Files\
odejs\
ode_modules"
      }
    }
  }
}

Installing via Smithery

To install MCP SQLite Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install mcp-server-sqlite-npx --client claude

Development

  1. Install dependencies:
npm ci
  1. Build the TypeScript code:
npm run build

Testing with MCP Inspector

You can test the server using the MCP Inspector tool:

npx @modelcontextprotocol/inspector node dist/index.js /absolute/path/to/database.db

Connect and go to Tools to start using the server.

Testing with Claude Desktop

Add the following to claude_desktop_config.json:

{
  "mcpServers": {
    "sqlite": {
      "command": "/absolute/path/to/node",
      "args": [
        "/absolute/path/to/dist/index.js",
        "/absolute/path/to/database.db"
      ]
    }
  }
}

Examples:

  • /absolute/path/to/node: /Users/{username}/.nvm/versions/node/v20.18.1/bin/node
  • /absolute/path/to/index.js: /Users/{username}/projects/mcp-server-sqlite-npx/dist/index.js
  • /absolute/path/to/database.db: /Users/{username}/projects/database.db

Publish

  • Bump version in package.json
  • npm install
  • Commit with message: Release {version, e.g. 0.1.6}