xlisp/sqllite-mcp-server
If you are the rightful owner of sqllite-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
The Sqllite MCP Server is a model context protocol server designed to facilitate interactions with SQLite databases through a standardized protocol.
๐๏ธ SQLite MCP Server
Query. Create. Analyze. Visualize.
A lightweight Python-based MCP server for interacting with SQLite databases.
Easily ask questions, create databases & tables, run queries, analyze data, and even visualize results directly through AI-powered workflows.
โจ Features
๐ Natural Querying & Analysis
- Ask free-form questions about your database.
- Automatically translate natural language queries into SQL.
- Summarize and analyze datasets.
๐ ๏ธ Database & Schema Management
- Create and manage new SQLite databases.
- Define tables and schemas interactively.
- Insert, update, and delete data with simple prompts.
๐ Data Exploration
- Perform SQL queries and get results instantly.
- Generate aggregated reports and summaries.
- Explore relationships across tables.
๐ Visualization (with Visualization MCP Server)
- Send query results to the visualization MCP server.
- Create charts, plots, and dashboards directly from SQL results.
- Supports interactive analysis with Claude or other MCP clients.
๐ Installation
Prerequisites
# Create and activate virtual environment
python3 -m venv .venv --upgrade-deps
source .venv/bin/activate
# Install MCP CLI and dependencies
pip install "mcp[cli]" httpx
# Optional: for generating mock data
pip install faker
โก Usage with Claude Desktop
Add the following to your claude_desktop_config.json
:
config path example: /Users/xlisp/Library/Application\ Support/Claude/claude_desktop_config.json
"sqlite-db": {
"command": "/Users/xlisp/PyPro/sqllite-mcp-server/.venv/bin/python",
"args": [
"/Users/xlisp/PyPro/sqllite-mcp-server/main.py"
]
},
"visualization": {
"command": "/Users/yourname/Desktop/visualization-mcp-server/.venv/bin/python",
"args": [
"/Users/yourname/Desktop/visualization-mcp-server/visualization_mcp_server.py"
]
}
Then restart Claude Desktop, and youโll be able to interact with SQLite directly:
- Ask questions like โWhat are the top 10 users by score?โ
- Create tables with โMake a table for products with name, price, and category.โ
- Analyze data with โSummarize average order values by month.โ
- Visualize results with โPlot a bar chart of sales by category.โ
๐ ๏ธ Development
sqlite_mcp_server.py
is the main entry point.- Extend commands to support custom SQL operations or integrations.
- Combine with visualization-mcp-server for richer workflows.
- Contributions are welcome โ PRs and issues encouraged!
๐ License
MIT License.