A lightweight Model Context Protocol (MCP) server that enables Large Language Models (LLMs) to autonomously interact with SQLite databases.
sqlite-mcp has 8 tools with basic descriptions and visible schemas, but significant quality gaps. Tool names follow verb_noun convention (good), but descriptions are generic and lack context for LLM selection. Parameters have type annotations but many lack descriptions or constraints. No output schemas documented. Error handling returns raw exceptions without recovery guidance. SQL injection risks in table/column name construction despite parameterized queries for values. No pagination, no result limits, no idempotency guarantees.
Create a new row in a specified table
Create a new table in the database
Delete a row from a specified table
Execute a SQL query on the database
Retrieve all rows from a specified table in the database
Returns a list of all table names in the database
Retrieve a single row from a specified table
SQL injection via table and column names. Code constructs queries like f"SELECT * FROM {table_name} WHERE {column} = ?", table_name and column are not parameterized. Malicious input (e.g., table_name='users; DROP TABLE users;--') bypasses parameterization.
No output schemas documented. LLMs cannot predict response structure. execute_query returns {success, results|message|error} but structure varies by query type. get_all_items has no documented return format.
No pagination or result limits. get_all_items and get_all_tables can return unbounded results, exhausting context windows. No limit parameter, no offset/cursor, no total count.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 45 | <=2025-11-25 | v2 |
Update an existing row in a specified table
Generic error messages without recovery guidance. Errors return raw exception strings (e.g., 'database is locked'). No actionable next steps for LLM. No error classification (retryable vs fatal).
Descriptions lack context for LLM selection. 'Execute a SQL query on the database' does not explain when to use execute_query vs get_item vs get_all_items. No dependency hints or prerequisites. Descriptions average ~40 chars; baseline is 194 chars.