Cover image
Try Now
2025-04-01

MCP服务器读取MCP日志直接在客户端内部调试

3 years

Works with Finder

1

Github Watches

0

Github Forks

8

Github Stars

MCP Server: Analyze & Debug MCP Logs




🔍 Read logs from standard locations across all platforms

🔎 Filter, paginate, and analyze large log collections

🎯 Overview

MCP Log Reader is a specialized MCP server that helps you analyze and debug Model Context Protocol logs. It provides Claude with direct access to log files, making it easy to troubleshoot MCP integrations and understand how Claude interacts with your tools.

  • Multi-platform Support: Works on macOS, Windows, and Linux with platform-specific log paths
  • Smart Filtering: Find specific log entries with case-insensitive text search
  • Paginated Browsing: Navigate large log collections efficiently
  • Size Management: Handles large log files with intelligent truncation
  • Seamless Claude Integration: Works directly with Claude Desktop

🚀 Quick Start

Install directly from GitHub:

# Clone the repository
git clone https://github.com/klara-research/MCP-Analyzer.git
cd MCP-Analyzer

# Install dependencies
npm i

Build and run:

# Compile TypeScript
npx tsc

🔌 Connecting to Claude

Add the server to your Claude Desktop configuration:

{
  "mcpServers": {
    "log-reader": {
      "command": "node",
      "args": [
        "/absolute/path/MCP-Analyzer/build"
      ]
    }
  }
}

Then restart Claude Desktop.

📋 Available Parameters

The log reader supports these parameters:

Parameter Description Default
lines Number of lines to read from each log file 100
filter Text to filter log entries by (case-insensitive) ""
customPath Custom path to log directory OS-specific
fileLimit Maximum number of files to read per page 5
page Page number for pagination 1

💡 Example Usage

Ask Claude to use the log reader tool:

Can you check my MCP logs for any connection errors in the last day?

Or with specific parameters:

Can you look through MCP logs with filter="error" and lines=50 to find initialization issues?

⚙️ How It Works

  1. The server automatically detects your OS and finds the appropriate log directory
  2. It locates all MCP log files and sorts them by modification time (newest first)
  3. The requested page of log files is retrieved based on pagination settings
  4. Files are processed with size limits to prevent overwhelming responses
  5. Filtered content is returned in a structured format with pagination details

📄 License

MIT License

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Yasir Eryilmaz
  • AI scriptwriting assistant for short, engaging video content.

  • Lists Tailwind CSS classes in monospaced font

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • HiveNexus
  • 一个适用于中小型团队的AI聊天机器人,支持DeepSeek,Open AI,Claude和Gemini等车型。 专为中小团队设计的ai聊天应用,支持deepSeek,打开ai,claude,双子座等模型。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

    Reviews

    4 (1)
    Avatar
    user_WXyxM8oO
    2025-04-15

    I've been using Contentful MCP Server for a while now and it has significantly streamlined my content management process. The server's performance is top-notch, and it's incredibly reliable. Miguel Tejeda has done a fantastic job with this product, ensuring it's both user-friendly and efficient. Definitely recommend checking it out for anyone looking to optimize their content workflows!