Skip to main content

Troubleshooting MCP Server

A Model Context Protocol (MCP) server that provides system troubleshooting and diagnostic tools for developers and system administrators.

Features

  • System Information: Get comprehensive system details including OS, hardware, and software versions
  • Resource Monitoring: Check CPU, memory, and disk usage
  • Log File Access: Read and tail log files from common system locations
  • Network Diagnostics: Test connectivity to hosts and services
  • Process Management: Check if processes are running and get detailed information
  • Environment Analysis: Inspect environment variables and development tool versions
  • Safe Command Execution: Run whitelisted diagnostic commands securely

Installation

Using uvx (recommended)

uvx troubleshooting-mcp-server

Using pip

pip install troubleshooting-mcp-server

From source

git clone https://github.com/yourusername/troubleshooting-mcp-server
cd troubleshooting-mcp-server
pip install -e .

Usage

As an MCP Server

Add to your MCP client configuration:

{
  "mcpServers": {
    "troubleshooting": {
      "command": "uvx",
      "args": ["troubleshooting-mcp-server"],
      "env": {}
    }
  }
}

Standalone Testing

python -m troubleshooting_mcp_server.server test

Available Tools

System Information

  • get_system_info(): Get OS, hardware, and software details
  • get_resource_usage(): Monitor CPU, memory, and disk usage
  • get_environment_info(): Check environment variables and tool versions

Log Management

  • read_log_file(file_path): Read complete log files (with size limits)
  • tail_log_file(file_path, lines=50): Get last N lines of a log file
  • find_log_files(app_name): Locate log files for specific applications

Network & Process Diagnostics

  • check_network_connectivity(url, timeout=5): Test network connections
  • check_process_status(process_name): Check if processes are running
  • run_diagnostic_command(command): Execute safe diagnostic commands

Security Features

  • Path Restrictions: Log file access limited to safe directories
  • Command Whitelist: Only approved diagnostic commands can be executed
  • File Size Limits: Large files require using tail function
  • Timeout Protection: Commands have execution time limits

Supported Platforms

  • macOS (primary support)
  • Linux (basic support)
  • Windows (limited support)

License

MIT License - see LICENSE file for details.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Support

For issues and questions, please use the GitHub issue tracker.

Metadata

Release files for troubleshooting-mcp-server 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for troubleshooting-mcp-server 1.0.2
File Size Uploaded
troubleshooting_mcp_server-1.0.2.tar.gz 9.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for troubleshooting-mcp-server 1.0.2
File Interpreter ABI Platform
troubleshooting_mcp_server-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 18.7 kB

Release files / troubleshooting_mcp_server-1.0.2.tar.gz

Download URL troubleshooting_mcp_server-1.0.2.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e63a88d12166dc18d33c0c547f7aaa276684ab5b1666f15f1a257c2ac8b0071b
BLAKE2b-256 checksum
How to use checksums
f3ca120fe5e0e329b58059fadb832d6cd1ca5dc9fc226abf82b51307b9e7eb5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release files / troubleshooting_mcp_server-1.0.2-py3-none-any.whl

Download URL troubleshooting_mcp_server-1.0.2-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2807e71550b03ced86fcb744ccced436b9c512f6178c474c359872dca85dd67
BLAKE2b-256 checksum
How to use checksums
6346d67d3c70104fc84ace2182cccbfc273381578a7b3e15d7a62e5b8857a2a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.0

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page