MCP SQLite Server (npx)

0.8.0 · active · verified Tue Apr 21

This package provides a Node.js implementation of the Model Context Protocol (MCP) SQLite server, currently at version `0.8.0`. It serves as an npx-based alternative to the official Python reference implementation, specifically designed for environments where the Python UVX runner is unavailable or impractical, such as certain Node.js-centric applications like LibreChat. The server allows applications to interact with an SQLite database via the MCP protocol. Its release cadence appears to be driven by feature development and integration needs, rather than a fixed schedule. A key differentiator is its enablement of MCP SQLite functionality within Node.js ecosystems without requiring Python installations, making it suitable for environments where only Node.js is readily available.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to run the `mcp-server-sqlite-npx` server using the `npx @modelcontextprotocol/inspector` tool for local testing and interaction via its CLI interface.

// First, ensure you have Node.js and npm/npx installed.
// Create a SQLite database file, e.g., 'my_database.db', or use an existing one.
// Replace '/absolute/path/to/my_database.db' with your actual database file path.

// To test the server using the MCP Inspector tool, run the following command in your terminal:
// This command will install the inspector temporarily via npx, then use it to launch
// and connect to the mcp-server-sqlite-npx instance.

// If you have cloned the mcp-server-sqlite-npx repository and built it (npm ci && npm run build):
// npx @modelcontextprotocol/inspector node dist/index.js /absolute/path/to/my_database.db

// If you are using the published npm package directly, and assuming mcp-server-sqlite-npx
// is in your node_modules (e.g. from a prior `npm i mcp-server-sqlite-npx` or `npx ...` call):
console.log("Starting MCP SQLite server via npx and connecting with Inspector...");
console.log("Run this command in your terminal:");
console.log("\nnpx @modelcontextprotocol/inspector npx mcp-server-sqlite-npx /absolute/path/to/my_database.db\n");
console.log("Replace '/absolute/path/to/my_database.db' with the actual path to your SQLite file.");
console.log("After launching, connect and go to the 'Tools' tab in the Inspector to interact with the server.");

view raw JSON →