Get the FREE Ultimate OpenClaw Setup Guide →

SQLite

Official

MCP server for SQLite database access with business intelligence features.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio modelcontextprotocol-server-sqlite npx -y @modelcontextprotocol/server-sqlite

How to use

The SQLite MCP server provides seamless access to SQLite databases while integrating powerful business intelligence features. This tool allows developers to execute complex queries, manage database schemas, and derive insights efficiently, making it an essential resource for data-driven applications.

Once connected to the SQLite MCP server, you can leverage its suite of tools to interact with your database. Use the read_query tool to execute SELECT statements for retrieving data, while write_query enables you to perform INSERT, UPDATE, or DELETE operations. You can also create new tables with create_table, list existing tables using list_tables, and examine a table's schema with describe_table. For business insights, the append_insight tool allows you to add valuable annotations to your data.

How to install

Prerequisites

  • Node.js (version 12.x or later)

Option A: Quick Start with npx

You can quickly get started by running the following command:

npx -y @modelcontextprotocol/server-sqlite

Option B: Global Install Alternative

If you prefer to install the package globally, use:

npm install -g @modelcontextprotocol/server-sqlite

Additional notes

When configuring the SQLite MCP server, ensure your database file is accessible and that you have the necessary permissions. Common environment variables include DB_PATH, which specifies the location of your SQLite database. Be aware that certain SQL commands may not behave as expected if the database is locked, so ensure that your queries are optimized for performance.

Available tools

read_query

Execute a SELECT query

write_query

Execute an INSERT/UPDATE/DELETE query

create_table

Create a new table

list_tables

List all tables

describe_table

Get table schema

append_insight

Add a business insight to memo

Related MCP Servers

Sponsor this space

Reach thousands of developers