S
Sqlite MCP Server
作者 @ljxiong313
MCP server by ljxiong313
创建于 3/13/2026
更新于 about 15 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
快速设置
此服务器的安装指南
安装命令 (包未发布)
git clone https://github.com/ljxiong313/sqlite-mcp-server
手动安装: 请查看 README 获取详细的设置说明和所需的其他依赖项。
Cursor 配置 (mcp.json)
{
"mcpServers": {
"ljxiong313-sqlite-mcp-server": {
"command": "git",
"args": [
"clone",
"https://github.com/ljxiong313/sqlite-mcp-server"
]
}
}
}