Read-only MCP server that recovers deleted SQL Server rows from the transaction log (fn_dblog), built on LogCarver
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Documented (README)
git clone https://github.com/caiderek/LogCarver.McpResumen 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.
[](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
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
Reverse engineer anything with agents, from app behavior down to native binaries.
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev