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 ServersOfficial Registry0 stars0 forks● C#MITUpdated 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.
Use cases

MCP Servers overview

<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).

What people ask about LogCarver.Mcp

What is caiderek/LogCarver.Mcp?

+

caiderek/LogCarver.Mcp is mcp servers for the Claude AI ecosystem. Read-only MCP server that recovers deleted SQL Server rows from the transaction log (fn_dblog), built on LogCarver It has 0 GitHub stars and its last recorded update is dated 2026-10-12.

How do I install LogCarver.Mcp?

+

You can install LogCarver.Mcp by cloning the repository (https://github.com/caiderek/LogCarver.Mcp) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is caiderek/LogCarver.Mcp safe to use?

+

Our security agent has analyzed caiderek/LogCarver.Mcp and assigned a Trust Score of 87/100 (tier: Trusted). See the full breakdown of passed checks and flags on this page.

Who maintains caiderek/LogCarver.Mcp?

+

caiderek/LogCarver.Mcp is maintained by caiderek. The last recorded GitHub activity is dated 2026-10-12, with 0 open issues.

Are there alternatives to LogCarver.Mcp?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy LogCarver.Mcp to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

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>

More MCP Servers

LogCarver.Mcp alternatives