mcp-sqlite
Provides safe, read-only access to a SQLite database, allowing users to list tables and views, inspect table schemas, and run SELECT/WITH/EXPLAIN queries with results capped at 200 rows.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-sqliteWhat tables are in this database and what columns does each have?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-sqlite
A Model Context Protocol server that gives Claude safe, read-only access to a SQLite database.
Point it at a .db file and you can ask, in plain language:
"What tables are in this database, and how many orders did we ship in July?"
Claude lists the tables, reads the schema, writes the SQL itself, and runs it — but it cannot write, drop, or attach. Every query is checked, so the worst it can do is read.
Why read-only matters
Handing a model a live database is one keystroke away from DELETE FROM users. This server closes that off at the door: the connection is opened read-only, and the query tool rejects anything that isn't a SELECT / WITH / EXPLAIN. You get the usefulness of "ask your database in English" without the "please don't drop the table" anxiety.
Related MCP server: SQLite MCP Server
Tools
Tool | Input | Does |
| — | Lists tables and views (hides SQLite internals) |
|
| Columns, types, PKs, nullability (validated identifier) |
|
| Runs a read-only query; caps results at 200 rows |
Install
Needs Node ≥ 22.5 (it uses the built-in node:sqlite — no native build step, nothing to compile).
npm install
npm run buildClaude Desktop — claude_desktop_config.json:
{
"mcpServers": {
"sqlite": {
"command": "node",
"args": ["/absolute/path/to/mcp-sqlite/dist/index.js", "/absolute/path/to/your.db"]
}
}
}Claude Code:
claude mcp add sqlite node /absolute/path/to/mcp-sqlite/dist/index.js /absolute/path/to/your.dbRestart the client, then ask it about your data.
How it's built
TypeScript, ESM, the official
@modelcontextprotocol/sdk, andzodfor tool schemas.Zero database dependencies — Node's built-in
node:sqlitedoes the work.Safety is layered: read-only connection + a query allow-list + identifier validation on table names, so a bad prompt can't turn into a bad write.
License
MIT © Sa'ood Williams
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Explore, query, and inspect SQLite databases with ease. List tables, preview results, and view det…
Query 40 databases from Claude, ChatGPT, or Cursor — on any device. Read-only, encrypted, audited.
Query PostgreSQL databases in plain English — LLM-generated, safety-validated SQL.
Query your warehouse or a CSV with Claude/ChatGPT over MCP, governed by table-level ACL + audit.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides database access capabilities to Claude with support for both SQLite and SQL Server databases. It enables users to manage schemas, execute SQL queries, and export results through natural language interaction.806MIT
- AlicenseNot gradedqualityDmaintenanceEnables natural language interaction with local SQLite databases through Claude Desktop, translating plain English queries into SQL for data analysis and exploration.3MIT
- AlicenseAqualityCmaintenanceProvides Claude with read-only access to local development databases (Postgres, MySQL, SQLite) to inspect schemas, run SELECT queries, and explain query plans without leaving the conversation.5MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude to query and manage databases (SQLite, SQL Server, PostgreSQL, MySQL) through natural language, supporting read/write operations and schema management.806MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/CACTUSCASH/mcp-sqlite'
If you have feedback or need assistance with the MCP directory API, please join our Discord server