sqllite-mcp-server

xlisp/sqllite-mcp-server

3.3

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.