mcp_log_analyzer

mcp_log_analyzer

Enables AI models to analyze log files from the Chuangyu Shield cloud defense platform, including retrieving file info, reading log lines, searching logs, and analyzing attack types and IP statistics.

Category
Visit Server

README

MCP Log Analyzer

创宇盾云防御平台日志分析MCP服务器用于AI大模型调用分析被防护网站的日志文件。

MCP工具

该MCP服务器提供以下工具调用:

  1. get_file_info - 获取日志文件信息
  2. read_log_lines - 读取指定范围的日志行
  3. search_logs - 搜索包含关键词的日志条目
  4. analyze_attack_types - 分析攻击类型统计
  5. analyze_ip_stats - 分析IP访问统计

支持的 MCP 客户端

🔧 完全兼容领先的 MCP 环境:

  • 爱派 Aipy
  • Claude Desktop
  • Cursor
  • Windsurf
  • Cline
  • Continue
  • Zed
  • Cherry Studio
  • Chatbox

如何使用

环境准备

你需要安装Python 3.10 或更高版本的 Python 环境

安装

使用 pip

pip install mcp-log-analyzer

安装后,您可以使用以下命令将其作为脚本运行

python -m mcp_log_analyzer.cli

使用 uv

uv 是一个用 Rust 编写的快速 Python 软件包安装程序和解析器。它是 pip 的现代替代品,性能显著提升。

安装 uv
# Install uv using curl (macOS/Linux)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Or using PowerShell (Windows)
irm https://astral.sh/uv/install.ps1 | iex

# Or using Homebrew (macOS)
brew install uv

安装 mcp-log-analyzer

使用 uv 安装 mcp-log-analyzer:

uv pip install mcp-log-analyzer

配置使用

Cherry Studio 配置

  1. 打开 Cherry Studio,选择“设置”。
  2. 在左侧导航栏中,选择“MCP 服务器”。
  3. 点击 “添加服务器” 选择 “从 JSON”导入
  4. 粘贴下面配置后确定
{
  "mcpServers": {
    "日志分析": {
      "command": "python3",
      "args": [
        "-m",
        "mcp_log_analyzer.cli"
      ]
    }
  }
}

CherryStudio 5. 在 MCP 服务器配置中启用 “日志分析” MCP服务器即可使用

Trae 配置

  1. 打开 Trae,选择“设置”。
  2. 在右侧导航栏中,选择“MCP”。
  3. 点击 “添加” 选择 “手动添加”
  4. 粘贴下面配置后确定
{
  "mcpServers": {
    "日志分析": {
      "command": "python3",
      "args": [
        "-m",
        "mcp_log_analyzer.cli"
      ]
    }
  }
}

Trae

  1. 在 Trae 中使用 “Builder with MCP” 即可使用

许可证

MIT License

贡献

欢迎提交Issue和Pull Request!

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured