SQLite
OfficialMCP server for SQLite database access with business intelligence features.
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
anyquery
Query anything (GitHub, Notion, +40 more) with SQL and let LLMs (ChatGPT, Claude) connect to using MCP
statespace
Interactive web apps for AI agents
pgmcp
An MCP server to query any Postgres database in natural language.
turbular
A MCP server allowing LLM agents to easily connect and retrieve data from any database
mcp-sqlite
🐇 Model Context Protocol (MCP) server that provides comprehensive SQLite database interaction capabilities
metabase
Metabase MCP server provides integration with the Metabase API, enabling LLM with MCP capabilites to directly interact with your analytics data, this server acts as a bridge between your analytics platform and conversational AI.