sqlite-mcp
0
SQLite MCP Server is a lightweight protocol server enabling large language models to interact with SQLite databases autonomously. It simplifies database operations for LLMs.
SQLite MCP Server
A lightweight Model Context Protocol (MCP) server that enables Large Language Models (LLMs) to autonomously interact with SQLite databases.
Showcases
Installation
- Clone the repository:
git clone https://github.com/dubydu/sqlite-mcp.git
cd sqlite-mcp
- Set up a virtual environment (recommended):
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
Usage
Basic Start
python src/entry.py --db-path /path/to/your/database.db
Command Line Options
--db-path
: Path to SQLite database file (default: "./db/database.db")
Available MCP Tools
For the full list of tools, see the
MCP CLients Configuration
- 5ire
{
"name": "SQLite",
"key": "sqlite",
"command": "/absolute/path/to/sqlite-mcp/.venv/bin/python",
"args": [
"/absolute/path/to/sqlite-mcp/src/entry.py",
"--db-path",
"/path/to/database.db"
]
}
# Example
{
"name": "SQLite",
"key": "sqlite",
"command": "/Users/dubydu/Desktop/mcp/sqlite-mcp/.venv/bin/python",
"args": [
"/Users/dubydu/Desktop/mcp/sqlite-mcp/src/entry.py",
"--db-path",
"/Users/dubydu/Desktop/retention.sqlite"
]
}
- Claude Desktop
{
"mcpServers": {
"sqlite-mcp": {
"command": "/absolute/path/to/sqlite-mcp/.venv/bin/python",
"args": [
"/absolute/path/to/sqlite-mcp/src/entry.py",
"--db-path",
"/path/to/database.db"
]
}
}
}