Token导航 LogoToken导航TokenDH.com
Crash MCP Server logo
开发工具未说明官方级别未说明来源级核验

Crash MCP Server

MCP Server

基于MCP协议的服务器,提供系统崩溃转储分析功能,集成Linux crash和drgn调试工具,支持远程分析和多传输模式。

工具数

9

提示词数

0

GitHub Stars

6

资源数

0
调试工具PythonClaudeClaude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

yup-21

提供方

yup-21

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

Crash MCP Server

A server based on MCP (Model Context Protocol), used for System crash dump analysis.

Integrated Linux crash Practical programs and drgn Programmable debugger, providing a unified analysis interface.

Features

  • Unified conversationSimultaneously supporting crash and drgn engine
  • Conversations to be repeatedAutomatically reuse existing sessions within the same vmcore
  • Command persistenceOutput automatic disk dropping, supporting pagination and search
  • remote analysisConnect to remote host via SSH without downloading vmcore
  • Multi transmission mode: Stdio (default)/SSE (HTTP)
  • Intelligent architecture recognitionAutomatically detect vmcore architecture and select the corresponding crash version
  • auto-compilationBuilt in crash tool compiler, supporting multiple architectures and compression formats

install

prerequisite

  • Python 3.10+
  • crash Tools (can be installed through built-in compiler)
  • python3-dev (Compiled PyKdump requires)
  • drgn Tools (automatically installed through pip)

Quick Installation

chmod +x install.sh && ./install.sh

Compile Crash Tool

# 激活虚拟环境
source venv/bin/activate

# 查看依赖安装说明
compile-crash --deps

# 编译 x86_64 版本
compile-crash

# 编译 ARM64 版本(在 x86_64 上分析 ARM64 vmcore)
compile-crash --arch ARM64

# 编译带 PyKdump 支持的版本
compile-crash --pykdump-from-source

use

Start the server

# Stdio 模式
crash-mcp

# SSE 模式
crash-mcp --transport sse --port 8000

MCP tool

ToolsInstructions
open_vmcore_sessionOpen the vmcore crash dump file for analysis
run_crash_commandExecute crash command, supports PyKdump extension
run_drgn_commandExecute drgn Python code
close_vmcore_sessionClose the current analysis session
get_command_outputPaging to obtain long command output
search_command_outputRegular search command output
run_analysis_scriptRun predefined analysis script (requires configuration) DRGN_SCRIPTS_PATH)
list_analysis_scriptsList available analysis scripts (requiring configuration) DRGN_SCRIPTS_PATH)
get_crash_infoObtain crash diagnosis report (requires configuration) GET_DUMPINFO_SCRIPT)

configuration

Environment VariablesDefault ValuesDescription
CRASH_EXTENSION_LOADtrueWhether to automatically load extensions
CRASH_MCP_TRUNCATE_LINES20Output truncated rows
CRASH_MCP_WORKDIR/tmp/crash-mcp-sessionsSession working directory
CRASH_MCP_CACHEtrueEnable command caching
LOG_LEVELINFOLog level
GET_DUMPINFO_SCRIPT(Empty)Automated diagnostic script command template (such as python3 script.py {vmcore} {vmlinux})
DRGN_SCRIPTS_PATH(Empty)External drgn script search path (colon separated)

Client configuration

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "crash-analysis": {
      "command": "/path/to/crash-mcp/venv/bin/crash-mcp"
    }
  }
}

example

# 本地分析
open_vmcore_session("/var/crash/vmcore", "/usr/lib/debug/vmlinux")
run_crash_command("bt")
run_crash_command("sys")
run_drgn_command("prog['init_task'].comm")

# 分页获取长输出
run_crash_command("ps")  # 返回 command_id
get_command_output("crash:ps", offset=20, limit=50)

# 搜索输出
search_command_output("crash:bt", "schedule")

# 远程分析
open_vmcore_session("/var/crash/vmcore", "/usr/lib/debug/vmlinux", 
              ssh_host="server-01", ssh_user="root")

Frequently Asked Questions

one no lzo compression support error

The vmcore file is compressed using LZO, but LZO support is not enabled during compilation by the crash tool.

sudo apt-get install liblzo2-dev
compile-crash --clean

2. Lack of GMP/MPFR library

sudo apt-get install libgmp-dev libmpfr-dev

3. View all compilation dependencies

compile-crash --deps

license

MIT License

目录标签

目录标签

调试工具PythonClaude崩溃转储分析本地部署远程分析多传输模式智能架构识别

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

session

部署方式(deploymentType,部署类型)

local-only

工具数量(toolCount,工具数)

9

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明sessionlocal-only

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP