Litescope logo

Litescope

by croc100

Safely inspect, compare, migrate, monitor, back up, and repair SQLite, Cloudflare D1, and Turso databases over MCP.

Install Litescope

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "croc100-litescope": {
      "command": "npx",
      "args": [
        "-y",
        "litescope",
        "mcp"
      ],
      "env": {
        "CLOUDFLARE_API_TOKEN": "YOUR_VALUE_HERE",
        "CLOUDFLARE_ACCOUNT_ID": "YOUR_VALUE_HERE",
        "LITESCOPE_MCP_TOKEN": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env CLOUDFLARE_API_TOKEN=YOUR_VALUE_HERE --env CLOUDFLARE_ACCOUNT_ID=YOUR_VALUE_HERE --env LITESCOPE_MCP_TOKEN=YOUR_VALUE_HERE --transport stdio croc100-litescope -- npx -y litescope mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 14 tools correctly ().

Overview

The croc100/Litescope MCP server gives AI agents read-only-by-default operations for local SQLite files and Cloudflare D1, with Turso support. It exposes database inspection, health checks, schema and row-count diffs, migration planning, fleet diagnostics, snapshots, and controlled write operations through MCP. Writes require an opt-in flag, begin with a dry run, and capture an undo point before applying changes. Reach for it when an agent needs to diagnose or modify SQLite-based production data while retaining rollback and blast-radius information.

Use cases

  • Inspect a local SQLite schema through an MCP client
  • Compare a development database with a Cloudflare D1 database
  • Plan a migration with blast-radius analysis
  • Diagnose locks, WAL growth, or fragmentation
  • Rewind an applied write using its recovery token

Key features

  • Read-only-by-default SQLite and D1 operations
  • Dry-run writes with blast-radius reporting
  • Automatic snapshots or D1 Time Travel bookmarks
  • Schema, row-count, health, and fleet diagnostics
  • stdio and Streamable HTTP transports
  • MCP prompts and subscribable database resources

Tools14

What Litescope lets your agent do. Expand a tool for its parameters.

Verified live~2.7k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 118d

What it can do

From the 14 tools this server returned when we ran it; 14 declare their own safety hints.

Makes changes · 1Handles credentials · 1Makes network requests · 8Read-only tools · 13
Network at startup3 connections
Files written at startupNone
Install scriptspostinstall
npm provenanceNot published
Package age157 days
Maintainers1

Observed 2026-12-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · litescope (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
npm downloads373Package downloads in the last 30 days.
Last commit2mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed14Callable tools this server registers over MCP.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Litescope works

What croc100/Litescope MCP server does

The croc100/Litescope MCP server connects MCP clients to local SQLite files and Cloudflare D1 databases, with support for Turso described by the project. It is intended for operational work rather than simple query execution: agents can inspect schemas, check database health, compare sources, plan migrations, investigate locks, and analyze performance issues.

The default posture is read-only. Write operations are unavailable unless the server starts with --allow-writes. Even then, mutating SQL and migrations are dry-run first, report affected rows and blast-radius information, and capture a recovery point before applying changes. Local databases use snapshots, while D1 uses a Time Travel bookmark. The resulting rewind_token can be passed to the undo operation.

How it works

By default, litescope mcp communicates over stdio, so it can be configured as a local MCP server in Claude Desktop, Claude Code, Cursor, Windsurf, or another MCP client. A database can be supplied when starting the server, such as litescope mcp ./app.db. The server also provides database-oriented MCP resources for schemas, data dictionaries, health, and lock diagnosis, along with prompts for workflows including migration review and locked-database diagnosis.

For remote or multi-client deployments, the server can use Streamable HTTP with --http. An HTTP token can require bearer authentication, and an origin allowlist helps protect the endpoint from DNS-rebinding risks. Without an HTTP token, the endpoint is open and emits a warning.

Query results include controls for maximum rows, selected columns, and truncation reporting. These limits help keep large result sets within an agent's context window. The implementation also exposes structured output, tool annotations, argument completion, resource subscriptions, and server logging under MCP 2025-06-18.

Setup and configuration

Install and start the server with npx -y litescope mcp for the standard stdio mode. Read-only use does not require the Cloudflare credentials shown in the project examples when working with local files. D1 access uses CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID; these are supplied in the MCP client's environment when needed.

Enable mutating operations by adding --allow-writes. This flag does not remove the dry-run and recovery-point behavior. To expose the service over HTTP, use the --http option and optionally set --http-token or LITESCOPE_MCP_TOKEN.

Tools and capabilities

Read-only capabilities include listing D1 databases, running SELECT statements, inspecting schemas, checking corruption and WAL or fragmentation conditions, comparing schemas and row counts, generating migration SQL, advising on indexes and scans, verifying backups, fingerprinting fleets, checking fleet health, diagnosing locks, and listing local snapshots.

Opt-in write capabilities include mutating SQL, applying migrations, optimization actions such as ANALYZE, index creation, and VACUUM, local snapshots and restores, D1 rewind operations, D1 pulls, and D1 database creation or deletion. The D1 deletion operation is irreversible according to the project documentation.

Limitations and notes

The safety workflow reduces accidental changes but does not make every operation reversible: D1 deletion is explicitly irreversible, and write access still requires deliberate server configuration. HTTP deployments need their own access controls; the documentation warns that an endpoint without a token is open. Cloudflare credentials are needed for the related D1 operations, while local SQLite work can be configured without them.

The project is distributed under AGPL-3.0. Its hosted dashboard is separate from the free, open-source command-line and MCP functionality described here.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Litescope

Run `npx -y litescope mcp` for the default stdio server mode.

Yes. The README provides a Claude Desktop configuration using the `litescope` command and `mcp` argument.

Yes, but write tools are disabled by default. Start the server with `--allow-writes`; writes still dry-run first and capture an undo point before applying.

D1 examples use `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID`.

Yes. Use the Streamable HTTP mode with `--http`; `--http-token` or `LITESCOPE_MCP_TOKEN` can require bearer authentication.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLitescope AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/croc100-litescope?style=directory)](https://allmcps.com/mcp/croc100-litescope)
HTML Embed
<a href="https://allmcps.com/mcp/croc100-litescope"><img src="https://allmcps.com/api/badge/croc100-litescope?style=directory" alt="Litescope on AllMCPs" /></a>