mcp-sqlite-server
These are MCP server implementations for accessing a SQLite database in your MCP client. There is both a SDIO and a SSE implementation.
Install / Use
claude mcp add prayanks -- npx -y github:prayanks/mcp-sqlite-serverIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Data & AnalyticsSupported Platforms
Our assessment of mcp-sqlite-server
mcp-sqlite-server scores 70/100 on our quality scale, 555th of 595 Data & Analytics skills we index.
Its MCP Server is 4.0 KB long, well organised into 14 sections with 10 code examples: a solid amount of guidance for an agent.
It has 10 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated about 1.6 years ago. Expect some instructions to reference tool versions or APIs that have since changed.
- Our last check on 2026-10-21 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 85/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
mcp-sqlite-server compared with similar skills
All 4 of these similar skills score higher than mcp-sqlite-server; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| mcp-sqlite-server (this skill)by prayanks | 70 | 10 | 19mo ago | MCP Server |
| claude-memby thedotmack | 100 | 113.5k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 109.2k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.9k | today | CLAUDE.md |
| CowAgentby zhayujie | 100 | 47.8k | today | CLAUDE.md |
Frequently asked questions
- How do I install mcp-sqlite-server?
- Run
claude mcp add prayanks -- npx -y github:prayanks/mcp-sqlite-server. The install tabs above show the steps for each supported agent. - Which AI agents does mcp-sqlite-server work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is mcp-sqlite-server safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 85/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is mcp-sqlite-server still maintained?
- The repository was last updated about 1.6 years ago. Expect some instructions to reference tool versions or APIs that have since changed.
Skill content
View source on GitHubSQLite MCP Server
This repository contains an MCP (Model Context Protocol) server written in Python that connects to a SQLite database containing startup funding data. The server exposes table schemas as resources, provides a read-only SQL query tool, and offers prompt templates for common data analysis tasks. It is designed to work with MCP clients and language models (LLMs) and communicates via the STDIO protocol.
Table of Contents
Overview
The MCP server uses the MCP Python SDK (with CLI extras) to implement a server that:
- Connects to a SQLite database (e.g., a database with startup funding information).
- Exposes table schemas as MCP resources.
- Provides a tool for executing read-only SQL queries.
- Offers prompt templates that help language models generate data analysis insights.
- Communicates via the STDIO protocol, reading JSON-RPC messages from standard input and writing responses to standard output.
Features
-
Resources
schema://sqlite/{table}: Returns the SQL schema for a specific table.schema://sqlite/all: Returns a JSON mapping of all table schemas.
-
Tools
sql_query: Executes read-only SQL queries. OnlySELECTstatements are permitted.
-
Prompts
analyze_table_prompt: Generates an analysis prompt for a specific table.describe_query_prompt: Generates a prompt explaining a SQL query.
-
STDIO Protocol
- Reads from
stdinand writes responses tostdout, making integration easy.
- Reads from
-
Logging
- Uses Python’s
loggingmodule to trace activity and debug errors.
- Uses Python’s
Setup and Installation
Creating the Sample SQLite Database
Save the following script as create_db.py:
<same as earlier>
Run with:
python create_db.py
Creating a Virtual Environment
python -m venv venv
Activate the environment:
-
macOS/Linux:
source venv/bin/activate -
Windows:
venv\Scripts\activate
Install dependencies:
pip install "mcp[cli]"
Running the MCP Server
- Save your server code as
sqlite_mcp_server.py. - Run the server:
python sqlite_mcp_server.py
Optional (using uv):
uv run sqlite_mcp_server.py
Installing into Claude Desktop
Save the following as install_to_claude.py and run it:
python install_to_claude.py
Update Claude Desktop config with:
{
"mcpServers": {
"sqlite_mcp_server": {
"command": "python",
"args": ["-u", "/absolute/path/to/sqlite_mcp_server.py"]
}
}
}
Restart Claude Desktop afterward.
Usage
- Access Resources:
schema://sqlite/all,schema://sqlite/startups - Invoke Tools:
SELECT * FROM startups WHERE funding_amount > 10000000; - Use Prompts: Generate SQL or explain queries.
Testing
Run the test script:
python sqlite_mcp_client_tests.py sqlite_mcp_server.py
This script tests:
- Listing resources
- Retrieving schemas
- Valid/invalid queries
- Prompt templates
Logging
Modify logging config:
logging.basicConfig(
filename='mcp_server.log',
level=logging.DEBUG,
format="[%(asctime)s] %(levelname)s - %(message)s",
datefmt="%Y-%m-%d %H:%M:%S"
)
Logs print to stderr by default.
License
This project is licensed under the MIT License. See the LICENSE file.
Additional Notes
- Adjust paths in installation/config scripts as needed.
- Ensure the SQLite database is created before running the server.
- Integrates with MCP Inspector or Claude Desktop.
Related Skills
claude-mem
113.5kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
109.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
78.9kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
CowAgent
47.8kOpen-source personal AI assistant & Agent Harness. Plans tasks, runs tools and skills, self-evolves with memory and knowledge. Multi-agent, multi-model, multi-channel. Lightweight, extensible, one-line install.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
