- Single-instance production apps
- Persistent development state
- Applications that need ACID transactions without a full database server
- Local deployments where Redis or Supabase would be unnecessary
Installation
SQLite support uses the optionalbetter-sqlite3 peer dependency:
Configuration
MCP_TS_STORAGE_TYPE is not set, the storage layer also auto-detects SQLite when MCP_TS_STORAGE_SQLITE_PATH is present.
Features
- Persistent single-file database
- Fast local reads and writes
- ACID compliant transactions
- No external service required
- Automatic database and table setup
Usage
Option 1: Automatic Detection (Recommended)
WhenMCP_TS_STORAGE_TYPE=sqlite or MCP_TS_STORAGE_SQLITE_PATH are present in your environment, the global sessions proxy automatically uses the SQLite backend.

