Skip to main content
Glama
sqlite-mcp-server

sqlite-mcp-server

by mismi

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoHTTP port (loopback only). Defaults to 3000.3000
TRANSPORTNoSet to http for Streamable HTTP. Defaults to stdio.stdio
SQLITE_DB_PATHNoDatabase 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

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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:

  • "How many books are there?" -> SELECT COUNT(*) AS books FROM books

  • "Books by author 3" -> sql: SELECT title FROM books WHERE author_id = $author_id, params: {"author_id": 3}

  • "Top 5 orders" -> sql: SELECT * FROM orders ORDER BY total DESC LIMIT 5

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
sqlite-schemaCREATE statements for every table, view and index in the connected database

TDQS

A4.5/5.0

Scored across 5 tools

Disambiguation4/5

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.

Naming Consistency4/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues