独立运营 · 不出售排名位置  · 我们怎么评估工具 →
Anclum 提交收录
A

Aderali06/sqlite-mcp-server

A lightweight Model Context Protocol (MCP) server for inspecting and querying local SQLite databases safely.

装之前:没有可直接复制的命令 · 许可证 MIT · 站点拦截自动检测

第一步:这条暂时没有可执行的下一步,可先看原仓库 https://github.com/Aderali06/sqlite-mcp-server

无 SECURITY.md
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · 自动访问被拒(HTTP 429),状态未能确认

我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →

★ 数取值
0 ★ · Aderali06/sqlite-mcp-server · 取自 GitHub 搜索 API · (2026-11-13 20:00:50 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-23 · 最近见到 2026-11-14 · 共见到 26 次 · 被 23 个来源列出
评分构成
综合分 2,300 · 23 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 Aderali06/sqlite-mcp-server;我们收录于 2026-10-23;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。

# sqlite-mcp-server

以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →

An open-source Model Context Protocol (MCP) server connecting LLM assistants (such as Claude Desktop and Cursor) to local SQLite databases with strict read-only security, context overflow protection, and structured AI error handling.
## 🌟 Key Features
Automated Schema Discovery: Automatically inspect table lists, object types (tables/views), row count estimates, columns, primary keys, foreign keys, and complete DDL definitions.
Strict Read-Only Query Security:
Parser-Level Validation: Rejects all mutation statements (INSERT, UPDATE, DELETE, DROP, ALTER, CREATE, ATTACH, VACUUM, REINDEX, etc.).
Statement Chaining Prevention: Blocks execution of multiple chained statements separated by ;.
Restricted PRAGMAs: Prohibits dangerous PRAGMAs (writableschema, permissions, and configuration mutation).
Engine-Level Enforcement: SQLite connections are opened using read-only URI mode (file:path?mode=ro) with PRAGMA queryonly = ON;.
Context Overflow Protection (maxrows): Safely truncates large query results with an informative warning advising AI models to use LIMIT and OFFSET clauses.
Structured Error Handling for AI: Returns standardized JSON error envelopes (errortype, message, query, and suggestion) to allow AI models to self-correct queries without hallucinations.
Full MCP Capabilities: Exposes Tools, direct Resources (sqlite://schema, sqlite://tables), and guided Prompts (schemaanalysis, safequeryassistant).
Flexible Configuration: Set the database path via CLI argument (--db-path), environment variable (SQLITEDBPATH), or dynamically per tool invocation (dbpath).
## 🛠️ MCP Tools
| Tool Name | Description | Key Arguments |
| listtables | Lists all tables and views in the database with estimated row counts. | dbpath (optional) |
| describetable | Retrieves column definitions, data types, nullability, default values, primary keys, foreign keys, and indexes for a specific table. | tablename (required), dbpath (optional) |
| getdatabaseschema | Returns the complete DDL schema definition for all tables, views, and indexes. | dbpath (optional) |
| readquery | Safely executes a read-only SELECT or EXPLAIN query and returns structured row records. | query (required), params (optional), maxrows (optional, default: 1000), dbpath (optional) |
## 📦 MCP Resources & Prompts
### MCP Resources (Direct Context Access)
Clients that support MCP Resources can inspect the database context directly without invoking a tool:
sqlite://schema: Returns the full formatted SQL DDL schema of the database.
sqlite://tables: Returns a concise list of all tables, views, and their respective row counts.
### MCP Prompts (Interactive Assistant Guides)
schemaanalysis: Prompts the AI model to inspect database structure, relationships, normalization, and optimization opportunities.
safequeryassistant(usergoal): Guides the AI model in formulating an optimized, safe SELECT query tailored to the user's objective.
## 📋 Structured Error Format
When a syntax or validation error occurs, the server responds with a structured JSON object designed for LLM consumption:
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[![Listed on Anclum](https://anclum.com/badge/listed.svg)](https://anclum.com/zh/s/aderali06-sqlite-mcp-server/)
来源
awesome · https://github.com/Aderali06/sqlite-mcp-server
按领域浏览
MCP 服务
收录来源
23 个独立来源
收录于
今天
安全策略
我们没在该仓库根目录找到 SECURITY.md(这不代表不安全)

同类推荐

全部 6,229 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引