Enables interaction with systemd-coredump functionality to access, manage, and analyze system core dumps. Provides tools for listing, extracting, and removing coredumps, as well as getting detailed information and stack traces from coredumps using GDB.
systemd-coredump MCP Server
A Model Context Protocol (MCP) server for interacting with systemd-coredump functionality. This enables MCP-capable applications to access, manage, and analyze system core dumps.
Features
- List all available coredumps in the system
- Get detailed information about specific coredumps
- Extract coredump files to a specified location
- Remove coredumps from the system
Prerequisites
- Node.js 18+ and npm
- systemd-coredump must be installed and configured on the system
coredumpctl
command-line utility must be available
Installation
From npm (recommended)
Global Installation
Local Installation
From Source
- Clone the repository or download the source code
- Install dependencies:
- Build the server:
Configuration
Add the server to your MCP settings configuration file:
If installed from npm globally:
If installed from npm locally:
If installed from source:
Usage
Available Tools
The server provides the following tools:
- list_coredumps: List all available coredumps in the system
- get_coredump_info: Get detailed information about a specific coredump
- extract_coredump: Extract a coredump to a file
- remove_coredump: Remove a coredump from the system
- get_coredump_config: Get the current core dump configuration of the systemThis tool returns information about the current core dump configuration, including:
- Whether core dumps are enabled
- The current core pattern
- The core size limit
- Whether systemd is handling the core dumps
- set_coredump_enabled: Enable or disable core dump generationSetting
enabled
totrue
will enable core dumps, whilefalse
will disable them. Note: This changes the ulimit settings for the current shell. For permanent system-wide changes, root privileges and modification of system configuration files would be required. - get_stacktrace: Get stack trace from a coredump using GDBThis tool uses GDB to extract a formatted stack trace from the coredump. Note: Requires the GDB debugger to be installed on the system.
Available Resources
The server exposes two types of resources:
- Coredump Information
- URI format:
coredump:///<id>
- Returns JSON with detailed coredump information
- URI format:
- Stack Traces
- URI format:
stacktrace:///<id>
- Returns a formatted stack trace from the coredump
- URI format:
Where <id>
is the unique identifier for a coredump in the format: <timestamp>-<pid>
.
For example:
Note on Permissions
Some operations may require elevated privileges, especially when extracting or removing coredumps. Ensure the user running the MCP server has appropriate permissions to access system coredumps.
License
MIT
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables MCP-capable applications to access, manage, and analyze system core dumps through integration with systemd-coredump functionality.
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that provides a comprehensive interface to Semgrep, enabling users to scan code for security vulnerabilities, create custom rules, and analyze scan results through the Model Context Protocol.Last updated -6226PythonMIT License
- -securityAlicense-qualityA MCP server for LLDB that allows automatic analyzing, debugging and disassembling of native apps.Last updated -50PythonBSD 2-Clause "Simplified" License
- AsecurityAlicenseAqualityA specialized MCP server that helps analyze and debug Model Context Protocol logs by providing Claude with direct access to log files across multiple platforms.Last updated -112TypeScriptMIT License
- -securityAlicense-qualityProvides MCP multi-cluster Kubernetes management and operations. It can be integrated as an SDK into your own project and includes nearly 50 built-in tools covering common DevOps and development scenarios. Supports both standard and CRD resources.Last updated -121GoMIT License