Skip to main content
ClaudeWave

Read-only MCP server that recovers deleted SQL Server rows from the transaction log (fn_dblog), built on LogCarver

MCP ServersRegistry oficial0 estrellas0 forks● C#MITActualizado today
ClaudeWave Trust Score
87/100
✓ Trusted
Passed
  • ✓Open-source license (MIT)
  • ✓Actively maintained (<30d)
  • ✓Clear description
  • ✓Documented (README)
Last scanned: 10/12/2026
Install in Claude Code / Claude Desktop
Method: Manual
Claude Code CLI
git clone https://github.com/caiderek/LogCarver.Mcp
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
💡 Clone https://github.com/caiderek/LogCarver.Mcp and follow its README for install instructions.
Casos de uso

Resumen de MCP Servers

<p align="center"><img src="https://raw.githubusercontent.com/caiderek/LogCarver/master/docs/assets/logo.png" width="96" alt="LogCarver logo"></p>

<!-- mcp-name: io.github.caiderek/logcarver-mcp -->

# LogCarver.Mcp

**English | [繁體中文](https://github.com/caiderek/LogCarver.Mcp/blob/master/README.zh-TW.md)**

A read-only [MCP](https://modelcontextprotocol.io) server that lets an AI assistant answer "what rows were just deleted from this SQL Server table?" by reading the database's transaction log (`fn_dblog`). No Audit, CDC or Change Tracking needs to be enabled beforehand.

It is a thin wrapper over the decoding engine from [LogCarver](https://github.com/caiderek/LogCarver) (MIT). Everything runs on your machine and nothing is sent anywhere.

> **Status:** early (v0.1). On [NuGet](https://www.nuget.org/packages/LogCarver.Mcp) and in the official MCP registry as `io.github.caiderek/logcarver-mcp`.

## What it does

One tool, `find_deleted_rows`. It only runs `SELECT`s. It never changes data, and the optional undo SQL is plain text that the tool never executes.

| Parameter | Meaning |
|---|---|
| `table` (required) | Schema-qualified, e.g. `dbo.Orders` |
| `database` | Defaults to the database in the connection string. Any other database is refused unless listed in `LOGCARVER_MCP_ALLOWED_DATABASES` |
| `operations` | `delete` (default), `update`, `insert`, `all` |
| `from`, `to` | ISO 8601 time window, server-local time, no zone conversion |
| `key` | `Column=Value`, return one row's history only. Column name is case-insensitive; dates, bit, decimals and hex binary match as you would write them |
| `maxRows` | Default 20, max 500, `0` = counts only. The most recent events are kept |
| `includeUndoSql` | Also return suggested SQL that would reverse each event |

The result is JSON: a `summary` (counts, truncation, warnings and notes) and `events` (kind, timestamp, LSN, transaction id, before/after column values, note). Binary values are hex strings and decimals are strings, so nothing is silently rounded.

## Requirements and limits

- The connection's login must be **sysadmin** (`fn_dblog` requires it).
- You only see what is still in the **active log**. If the log space has been reused the result is empty, and that is not a bug. The paid LogCarverOffline tool can often recover that case by reading the raw `.ldf`.
- `TRUNCATE` and `DROP` cannot be recovered.
- Compressed tables are refused. `time` and `xml` columns and off-row LOB values are refused or flagged `needsManualReview`; they are never guessed.
- Validated on SQL Server 2025, 2022, 2019 and 2016 (SP2). Other versions return a warning in `notes`.
- Scanning a large active log can take a minute or more.

## Configure

The connection string comes from an environment variable, so credentials never pass through the AI conversation:

```
LOGCARVER_MCP_CONNECTION_STRING=Server=localhost;Database=MyDb;Integrated Security=true;TrustServerCertificate=true
```

Or point `LOGCARVER_MCP_CONNECTION_STRING_FILE` at a file that contains it.

The login is sysadmin and the caller is an AI, so the tool may only read the connection string's database. To let it read others, list them (comma or semicolon separated):

```
LOGCARVER_MCP_ALLOWED_DATABASES=Sales;HR
```

Row values come straight from the database. They are data, not instructions, and the tool description tells the model so.

### Install

Needs the .NET 10 SDK or runtime.

```
dotnet tool install -g LogCarver.Mcp
```

Or run it without installing, through `dnx`:

```
dotnet dnx LogCarver.Mcp --yes
```

### Claude Code

```
claude mcp add logcarver --env LOGCARVER_MCP_CONNECTION_STRING="Server=localhost;Database=MyDb;Integrated Security=true;TrustServerCertificate=true" -- logcarver-mcp
```

With `dnx` instead of a global tool, end the command with `-- dotnet dnx LogCarver.Mcp --yes`.

### From source

```
git clone --recurse-submodules https://github.com/caiderek/LogCarver.Mcp
dotnet build
dotnet run --project src/LogCarver.Mcp
```

## Tests

```
dotnet test tests/LogCarver.Mcp.Tests
dotnet test tests/LogCarver.Mcp.IntegrationTests
```

The integration tests need a local SQL Server and a sysadmin Windows login. They create and drop their own sandbox database, `LogCarver_McpTests`.

## License

MIT, see [LICENSE](https://github.com/caiderek/LogCarver.Mcp/blob/master/LICENSE).

Lo que la gente pregunta sobre LogCarver.Mcp

¿Qué es caiderek/LogCarver.Mcp?

+

caiderek/LogCarver.Mcp es mcp servers para el ecosistema de Claude AI. Read-only MCP server that recovers deleted SQL Server rows from the transaction log (fn_dblog), built on LogCarver Tiene 0 estrellas en GitHub y su última actualización registrada es del 2026-10-12.

¿Cómo se instala LogCarver.Mcp?

+

Puedes instalar LogCarver.Mcp clonando el repositorio (https://github.com/caiderek/LogCarver.Mcp) o siguiendo las instrucciones del README en GitHub. ClaudeWave también te ofrece bloques de instalación rápida en esta misma página.

¿Es seguro usar caiderek/LogCarver.Mcp?

+

Nuestro agente de seguridad ha analizado caiderek/LogCarver.Mcp y le ha asignado un Trust Score de 87/100 (tier: Trusted). Revisa el desglose completo de comprobaciones superadas y flags en esta página.

¿Quién mantiene caiderek/LogCarver.Mcp?

+

caiderek/LogCarver.Mcp es mantenido por caiderek. La última actividad registrada en GitHub es del 2026-10-12, con 0 issues abiertos.

¿Hay alternativas a LogCarver.Mcp?

+

Sí. En ClaudeWave puedes explorar mcp servers similares en /categories/mcp, ordenados por popularidad o actividad reciente.

Despliega LogCarver.Mcp en tu cloud

Lleva este repo a producción en minutos. Cada plataforma genera su propio entorno con variables de entorno editables.

¿Mantienes este repo? Añade un badge a tu README

Pega el badge en tu README de GitHub para mostrar que está auditado por ClaudeWave. Cada badge enlaza de vuelta a esta página y muestra el Trust Score actual.

Featured on ClaudeWave: caiderek/LogCarver.Mcp
[![Featured on ClaudeWave](https://claudewave.com/api/badge/caiderek-logcarver-mcp)](https://claudewave.com/repo/caiderek-logcarver-mcp)
<a href="https://claudewave.com/repo/caiderek-logcarver-mcp"><img src="https://claudewave.com/api/badge/caiderek-logcarver-mcp" alt="Featured on ClaudeWave: caiderek/LogCarver.Mcp" width="320" height="64" /></a>

Más MCP Servers

Alternativas a LogCarver.Mcp