Skip to main content
The sqlite MCP adapter reads and writes local .db files on the connector host. It provides read-only queries, optional mutating SQL (when allow_write is enabled), schema introspection, and row sampling. Use it for local analytics, embedded app data, prototyping, lightweight ETL, and schema exploration before promoting logic to Postgres or MySQL.

Prerequisites

  • A SQLite database file (.db) accessible to the connector runtime
  • Read access for reporting workflows; write access only when allow_write is enabled
  • database_path must resolve under data_root when that constraint is configured
  • project_contributor access

Connect in AgentRuntime

1

Configure the database path

On Connections, click New custom connection (or edit the MCP instance profile) and set:
  • default_database_path — absolute or relative path to your .db file (e.g. /data/app/metrics.db)
  • data_root — optional root directory; all database_path values must resolve under it
  • allow_write — set to true only if workflows need sqlite_execute or sqlite_execute_sql
2

Add sqlite MCP instance

Go to MCP, click Add instance for sqlite, set path and write settings on Instance config, then set the profile active.
3

Test with database info

Add a workflow with mcp_callsqlite_get_database_info. Run it to confirm the file path and SQLite version before queries.
4

Explore schema (optional)

Run mcp_callsqlite_list_tables and sqlite_describe_table on a known table to verify schema access.
See Authentication for binding connections to MCP instances.

What you can build

  • CSV ingest pipeline — Parse uploaded CSV → sqlite_execute bulk INSERT → sqlite_query validation report.
  • Local dashboard feed — Scheduled sqlite_query on metrics tables → LLM summary → Slack notification.
  • Schema explorationsqlite_list_tables + sqlite_describe_table → Autopilot answers questions with grounded SQL.
  • Prototype ETLsqlite_query extract → transform in Lua → sqlite_execute load into staging tables.

Tools

Example

Run a read-only report query:
Omit database_path to use sqlite_default_database_path from configuration.

Configuration

Troubleshooting