sqlite-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | HTTP port (loopback only). Defaults to 3000. | 3000 |
| TRANSPORT | No | Set to http for Streamable HTTP. Defaults to stdio. | stdio |
| SQLITE_DB_PATH | No | Database file to open. Relative paths resolve against the working directory; prefer an absolute path. Defaults to data/demo.db next to this package. | data/demo.db |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| sqlite_list_tablesA | List the tables and views in the connected SQLite database, with row and column counts. Start here when you do not know the schema, then use sqlite_describe_table for columns and keys and sqlite_query to read rows. Returns one page at a time; when more exist, the result includes next_offset to pass back as offset. Example: "What data is in this database?" -> no arguments. |
| sqlite_describe_tableA | Describe one table or view: columns and types, primary key, foreign keys, indexes, and the CREATE statement. Use this before writing a query or an insert so column names, types and keys are correct. To find table names, call sqlite_list_tables. Example: {"table": "books"} -> every column of books plus its foreign keys. |
| sqlite_queryA | Run one read-only SQL statement (SELECT or WITH) against the SQLite database. Results are paged at the SQL level: pass limit/offset rather than writing your own LIMIT when you need to page through many rows. Use named placeholders ($name) and params for values instead of interpolating them into the SQL. Examples:
SQLite errors come back as tool errors naming the available tables or columns. This tool cannot modify data; use sqlite_execute or sqlite_insert_row for that. |
| sqlite_insert_rowA | Insert one row into a table and return the row as SQLite stored it. Prefer this over hand-written INSERT SQL: column names are validated against the table, so typos come back as a clear error. Omit auto-increment primary keys and let SQLite assign them. Example: {"table": "books", "values": {"title": "Dune", "author_id": 3, "price": 9.99}} -> the inserted row with its new id. Call sqlite_describe_table first when you are unsure of column names. |
| sqlite_executeA | Run one modifying SQL statement: INSERT, UPDATE, DELETE, REPLACE, CREATE, ALTER or DROP. Use this for updates, deletes and schema changes. For a single INSERT prefer sqlite_insert_row, which validates columns and returns the new row. For reads use sqlite_query. One statement per call: a batch would be silently truncated by SQLite, so extra statements are rejected. Use named placeholders ($name) with params instead of interpolating values. Example: {"sql": "UPDATE books SET stock = stock - $n WHERE id = $id", "params": {"n": 2, "id": 5}} -> {"changes": 1}. A result of 0 changes means the WHERE clause matched nothing; call sqlite_query first to confirm the rows exist. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| sqlite-schema | CREATE statements for every table, view and index in the connected database |
TDQS
Scored across 5 tools
The tools have mostly distinct roles: list tables, describe a table, read via query, insert one row, and execute modifying SQL. The main overlap is sqlite_insert_row versus sqlite_execute, since INSERT can be done through either, but the descriptions clearly recommend insert_row for single inserts and execute for other modifications.
All names use snake_case with a consistent sqlite_ prefix, making the set predictable. Most names follow a verb_noun pattern (list_tables, describe_table, insert_row), though sqlite_query and sqlite_execute are verb-only names rather than verb_noun.
Five tools is well-scoped for a SQLite MCP server, covering schema discovery, reading, inserting, and general SQL execution without bloat. Each tool has a clear place in a compact workflow.
The surface covers schema inspection, reads, inserts, updates, deletes, and DDL through sqlite_execute, giving broad CRUD and lifecycle coverage. Minor gaps include no explicit transaction or multi-statement support, but agents can work around this for typical SQLite tasks.