S
Sqlite MCP Server
by @ljxiong313
MCP server by ljxiong313
Created 3/13/2026
Updated about 7 hours ago
README
Repository documentation and setup instructions
SQLite MCP Server
A Model Context Protocol (MCP) server for SQLite databases.
Features
- Read Query: Execute SELECT queries
- Write Query: Execute INSERT, UPDATE, DELETE queries
- Create Table: Create new tables
- List Tables: List all tables in the database
- Explain Query: Explain query execution plans
Configuration
The server can be configured using environment variables or a .env file:
DB_PATH: Path to the SQLite database file (default:./data.db)SERVER_MODE: Server mode, eitherstdio(default),sse, orstreamableHttp
Usage
- Clone the repository
- Install dependencies:
go mod tidy - Run the server:
go run .
Tools
read_query: Execute a SELECT queryquery: The SQL query string
write_query: Execute an INSERT/UPDATE/DELETE queryquery: The SQL query string
create_table: Create a new tableschema: The CREATE TABLE statement
list_tables: List all tablesexplain_query: Explain a query planquery: The SQL query to explain
Quick Setup
Installation guide for this server
Installation Command (package not published)
git clone https://github.com/ljxiong313/sqlite-mcp-server
Manual Installation: Please check the README for detailed setup instructions and any additional dependencies required.
Cursor configuration (mcp.json)
{
"mcpServers": {
"ljxiong313-sqlite-mcp-server": {
"command": "git",
"args": [
"clone",
"https://github.com/ljxiong313/sqlite-mcp-server"
]
}
}
}