Bridge SQLite and LLMs with an MCP server for local data
mcp-sqlite, from Rusq (Anton Ageev), is an MCP server that exposes local SQLite databases to LLM-driven assistants. It implements MCP tools such as sqlite_get_catalog and sqlite_execute so agents can discover schema, run SQL, and return structured results the agent can act on. Metadata via YAML or JSON, canned queries, and Datasette-compatible descriptions help annotate and limit operations. Developers and analysts use it to integrate local data into AI workflows while keeping files on-premises.
What tasks can you actually use it for?
The tool connects LLM-driven assistants to local relational files so agents can inspect schemas and run queries against SQLite databases. It exposes two MCP tools, sqlite_get_catalog for full table and column listings, and sqlite_execute for running SQL statements. Administrators can also register canned queries as dedicated tools, letting agents trigger predefined operations instead of composing raw queries. Datasette-compatible metadata allows the same descriptions to serve both humans and agents.
How reliable are its query results for agent workflows?
Query reliability reflects the underlying database contents and the SQL submitted by the agent. sqlite_execute runs the statement against the connected file and returns the raw result set, so correctness depends on query logic and source data integrity. Turning frequently used statements into canned queries produces more predictable outputs because the SQL is predefined. Agents that read schema descriptions reduce malformed queries before execution, improving practical reliability for routine tasks.
What inputs and configuration does it require?
Installation requires a system with the Go runtime and an MCP-compatible client; the project supports installation via the Go toolchain or prebuilt binaries. Databases are standard SQLite files, and optional YAML or JSON metadata files provide table and column descriptions. The metadata format matches Datasette, which lets human reviewers open the same catalog. Typical client integrations include Claude Desktop, Cursor, and VS Code across desktop operating systems.
Does it keep local data local and fit developer workflows?
The server offers local data access, giving agents access to files without routing queries through external services, which supports in-house workflows that require data locality. Its Go-based design has minimal dependencies, making it deployable on developer machines and CI environments. Exposing canned queries as tools allows operators to limit the operations agents can perform. Integration through an mcp.json client configuration positions it as a developer-focused component rather than an end-user product.
Practical choice for engineers who accept SQL responsibility
The tool is a practical option for developers and analysts who need agents to query local relational stores and integrate into MCP workflows. It requires operator oversight and SQL competence because agents can run arbitrary statements, and it depends on an MCP-compatible client and local setup. For engineering teams comfortable with SQL and local deployments, the tool adds predictable agent access to internal data and fits into code-centric workflows.





