autopsy-mcp
Read-only MCP server that exposes Autopsy digital forensics case data as tools, enabling LLM clients like Cline to browse filesystems, query artifacts, and search keywords without modifying the case.
README
autopsy-mcp
Read-only MCP (Model Context Protocol) server that exposes the data of an Autopsy case as standard Tools, usable from the Cline chat in VS Code (or from any other MCP client). The server is fully LLM-agnostic: it receives JSON arguments from tool calls and returns case-database data — all calls to OpenAI, Anthropic, Ollama etc. remain entirely on Cline's side.
Requirements
- Python 3.10+
- An Autopsy case on disk (a folder containing
autopsy.db), or a multi-user PostgreSQL deployment - The Cline extension in VS Code
Installation
git clone https://github.com/th0r10293847/autopsy-mcp.git
cd autopsy-mcp
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt # Windows: .venv\Scripts\pip install -r requirements.txt
Alternatively, the start.sh (Linux/macOS) and start.bat (Windows) scripts create the venv and install dependencies automatically on first run.
Configuring the default cases directory
The server looks for cases in the directory pointed to by the AUTOPSY_CASES_DIR environment variable (default: ~/AutopsyCases). A "case" is any subfolder containing autopsy.db. You can set it in three ways, in order of precedence:
- As an argument to the start script:
./start.sh /path/to/cases - As an environment variable in your shell:
export AUTOPSY_CASES_DIR=/path/to/cases - In the
envblock ofcline_mcp_settings.json(recommended for use with Cline — see below)
You can always open a case outside the default directory by passing its full path to the set_active_case tool, or pass an alternative directory to list_cases.
PostgreSQL backend (multi-user cases)
For multi-user cases set AUTOPSY_DB_BACKEND=postgresql together with AUTOPSY_PG_HOST, AUTOPSY_PG_PORT, AUTOPSY_PG_USER, AUTOPSY_PG_PASSWORD, and install the driver: pip install psycopg2-binary. In this mode set_active_case accepts the database name of the case (visible in Autopsy under Case → Case Properties). The session is opened with default_transaction_read_only=on.
Connecting to Cline
In VS Code open: Cline icon → MCP Servers → Configure MCP Servers (the cline_mcp_settings.json file) and paste the content of the cline_mcp_settings.json included in this project, adjusting the two paths:
args: absolute path toserver.py(use the venv's Python ascommandif you prefer:.../autopsy-mcp/.venv/bin/pythonor...\\.venv\\Scripts\\python.exe)env.AUTOPSY_CASES_DIR: your cases directory
Cline will launch the server on stdio automatically; you don't need to keep it running yourself. autoApprove is optional and only includes pure read tools.
Exposed Tools
| Tool | Description |
|---|---|
list_cases |
Lists the cases (folders with autopsy.db) in the base directory |
set_active_case |
Sets the active case for the session |
get_case_summary |
Summary: creation date, examiner, data sources, file/artifact counts |
browse_filesystem |
Walks the tsk_files tree (roots → directories → files, with pagination) |
query_blackboard_artifacts |
Queries the Blackboard by type (web history, email, EXIF, chat…); without arguments it lists the available types with counts |
search_keywords |
Text search across file names and/or artifact content |
get_file_metadata |
Full metadata of a file by obj_id: hashes, MAC times, size, MIME, notable status |
Typical chat flow in Cline: "List the available cases" → "Open case XYZ" → "Give me a summary" → "Search for the word 'bitcoin' in the artifacts" → "Show me the web history".
Read-only guarantees (chain of custody)
- SQLite: connection opened with the URI
file:...?mode=ro. The driver rejects anyINSERT/UPDATE/DELETE/DDLat the engine level. - PostgreSQL: session with
default_transaction_read_only=on+set_session(readonly=True). - The code contains no write statements and never touches the files in the case folder; no tool accepts arbitrary SQL from the LLM — all queries are predefined and parameterized.
Note: for a repeatable examination it remains good practice to work on a copy of the case, and not on a case while Autopsy is running an ingest (the DB may be temporarily locked; in that situation the server returns a descriptive error and you can simply retry).
Error handling
All errors are returned as JSON {"error": "..."} with hints that enable LLM self-correction: for example, a non-existent artifact type returns the list of types available in the case, and a no such table error includes the list of tables actually present (useful across different Autopsy schema versions).
Quick test without Cline
export AUTOPSY_CASES_DIR=/path/to/cases
.venv/bin/python -c "import server; print(server.list_cases())"
Automated tests
The project ships with a pytest suite (tests/) that verifies: all 7 tools against a realistic synthetic case, the self-explanatory error messages, the driver-level rejection of INSERT/UPDATE/DELETE/DDL, the invariance of the SHA-256 hash of autopsy.db after running all the tools (chain of custody), and a real MCP session over stdio (the same protocol used by Cline).
pip install pytest pytest-asyncio
pytest -v
For a manual try without a real case, generate the demo case:
python tests/make_fixture.py ~/AutopsyCases/DemoCase
A GitHub Actions workflow is also included (.github/workflows/tests.yml) that runs the suite on Linux and Windows, Python 3.10 and 3.12, on every push.
Author: th0r10293847 — Copyright (c) 2026, released under the MIT License.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。