Skip to content

MCP Server Guide

Andrew Paolucci edited this page Nov 26, 2026 · 2 revisions

MCP Server Guide (chrome2rust-mcp)

chrome2rust embeds a read-only JSON-RPC 2.0 stdio Model Context Protocol (MCP) server (protocolVersion: "2024-11-05"), launched via chrome2rust mcp or the standalone chrome2rust-mcp binary.


1. Client Configuration (mcp.json & smithery.yaml)

{
  "mcpServers": {
    "chrome2rust": {
      "command": "chrome2rust",
      "args": ["mcp"],
      "env": {
        "RUST_LOG": "warn"
      }
    }
  }
}

Inspect tool JSON schemas from the terminal:

chrome2rust mcp --tools
# or standalone binary
chrome2rust-mcp --tools

2. Supported JSON-RPC 2.0 Methods

  • initialize — Returns protocolVersion: "2024-11-05", capabilities: { "tools": {} }, and serverInfo (chrome2rust-mcp v0.2.2).
  • ping — Health check returning {}.
  • notifications/* (notifications/initialized, notifications/cancelled) — Handled silently with no response frame.
  • tools/list — Returns JSON Schema definitions for all 29 tools.
  • tools/call — Executes read-only cache/forensic tools and returns content: [{ "type": "text", "text": "..." }] with isError.

3. Exposed MCP Tools (29 Total — Read-Only Safe)

Core Chromium Cache & User Data Tools (8)

Tool Name Required Inputs Optional Inputs Description
chrome2rust_profiles (None) — Discover local Chromium-family browsers, User Data directories, profiles, and HTTP caches.
chrome2rust_sniff path — Identify Chrome artifact format, magic bytes, and missing/mismatched file extensions.
chrome2rust_cache_list path url, content_type, filter, no_zero_length, hashes, limit Scan Simple Cache / Blockfile entries and return structured JSON metadata.
chrome2rust_cache_inspect path url, preview Inspect HTTP headers, TLS/ALPN metadata, X.509 certificates, SHA-256 digest, and optional UTF-8 preview.
chrome2rust_cache_extract path, output_dir url, content_type, website_dirs, prefer_detected_ext Extract cached payloads into output_dir with decompression and extension recovery.
chrome2rust_analyze path decrypt, hashes Run full read-only User Data forensics (history, downloads, cookies, logins, extensions, sessions, storage, timeline).
chrome2rust_report path, output format (html|json|markdown|all), decrypt Generate standalone HTML, JSON, Markdown, or bundled forensic reports.
chrome2rust_custody path output_manifest Compute deterministic SHA-256 artifact digests and balanced Merkle root manifest.

Multi-Browser, Unified & Media-Carving Tools (v0.2.2, 21 Read-Only Tools)

All 21 multi-browser and carving tools carry readOnlyHint: true:

Family Tool Names
Firefox (fx, 8) chrome2rust_fx_cache, chrome2rust_fx_history, chrome2rust_fx_cookies, chrome2rust_fx_bookmarks, chrome2rust_fx_downloads, chrome2rust_fx_formhistory, chrome2rust_fx_addons, chrome2rust_fx_sessions
Opera (2) chrome2rust_opera_cache, chrome2rust_opera_history
Safari (3) chrome2rust_safari_cache, chrome2rust_safari_history, chrome2rust_safari_bookmarks
Unified (5) chrome2rust_unified_history, chrome2rust_unified_downloads, chrome2rust_unified_addons, chrome2rust_unified_bookmarks, chrome2rust_unified_autofill
Search & Carving (3) chrome2rust_search_queries, chrome2rust_carve_images, chrome2rust_carve_video

Note

Destructive cache deletion (chrome2rust cache delete) is intentionally not exposed to MCP agents.

Clone this wiki locally