Open-source status page, incident response and uptime monitoring
TypeScript alertingincident-managementmcpmcp-servermonitoringmonitoring-as-codeobservabilityon-callopen-sourcesrestatus-pagestatuspagesynthetic-monitoringterraformtinybirdtursouptimeuptime-checkeruptime-monitor
Read-Only Turso MCP for Claude
Goal
Connect Claude to a read-only replica of the prod database via Turso MCP, so Claude can answer product analytics and debugging questions without any risk to prod.
Architecture
Prod Turso DB → (one-shot sync) → ~/.openstatus/replica.db → Turso MCP → Claude
(chmod 444, scrubbed) (execute_query only)
Steps
1. Sync script — packages/db/src/sync-replica.mts
- Loads
DATABASE_URL+DATABASE_AUTH_TOKENfrompackages/db/.env - Creates
~/.openstatus/directory if needed - Uses
@libsql/clientembedded replica:file:///Users/<user>/.openstatus/replica.dbwithsyncUrlpointing to prod - Calls
.sync()once, then:- Scrubs sensitive tables:
DELETE FROM apiKey; DELETE FROM session; - Sets file permissions to
chmod 444(read-only)
- Scrubs sensitive tables:
- Exits
2. Package.json script
- Add
"sync-replica"topackages/db/package.jsonso it can be run withpnpm sync-replica
3. MCP registration
claude mcp add turso --tool execute_query -- turso mcp ~/.openstatus/replica.db
--tool execute_queryrestricts Claude to read-only SELECT queries only- Exact
turso mcpargs to be confirmed viaturso mcp --help
4. Gitignore
- Ensure
replica.dbis not committable (should already be covered by*.dbpatterns, verify)
Usage
- Run
cd packages/db && pnpm sync-replicato get a fresh snapshot - Claude can now query the replica via the MCP tool
- Re-run the sync script whenever you need fresher data
Safety layers
- Network isolation — local
.dbfile, no network path back to prod - Tool filtering — Claude only sees
execute_query(SELECT-only), not insert/update/delete/schema tools - File permissions —
chmod 444prevents writes at the OS level - Credential scrub —
apiKeyandsessiontables are deleted after sync