Nft Log Analyser

MCP开发工具

提供方 mashish

开发工具 未标注 API Key 社区 / 第三方 Claude DesktopClaudeCursorCodex
查看接入方式

CP Log Analyzer automatically triages your log files using a local AI model.

一句话选型结论

按资料字段整理

Nft Log Analyser 属于开发工具类 MCP 服务器,传输方式未标注,API Key,可直接接入 Claude Desktop、Claude、Cursor 等,有可直接执行的安装命令。接入前先确认权限范围;涉及写入、删除或付款的操作,建议先在测试环境验证。

分类开发工具 传输方式未标注 鉴权API Key 部署方式未标注
GitHub 星标 未标注 仓库热度,无公开仓库时显示未标注
工具数 未标注 暴露给模型的工具数量
资源 / 提示词 0 / 0 资源与提示词模板数量
维护方 社区 / 第三方 核验等级 仅资料核对

工具与能力

开发工具
数量来自来源目录的标注,具体工具清单以官方文档为准
工具数量未标注暴露给模型可调用的工具个数
资源数量0可读取的资源条目
提示词数量0内置提示词模板数量

能力标签

mcp mcp server log analysis ollama local llm crewai devtools python

支持客户端

适用场景

mcpmcp serverlog analysis

安装与配置

未标注 API Key
上游未给出传输方式
/path/to/mcp-log-analyzer/.venv/bin/python /path/to/mcp-log-analyzer/mcp_server/server.py

这条命令只是入口,具体启动参数请按官方文档补齐,不要直接照搬到别的服务器。

  1. 1
    准备运行环境

    按官方文档确认运行环境(常见为 Node.js 或 Python),装好后再执行安装命令。

  2. 2
    安装服务

    复制上面的安装命令执行;命令里带占位符的位置,换成自己的密钥或路径。

  3. 3
    写入客户端配置

    在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4
    验证是否可用

    连接成功后随便调一个只读工具,确认能返回结果,再接入正式流程。

典型使用场景

3 类
按分类与标签整理的常见用法,具体以官方文档为准
代码与仓库操作

在对话里直接查代码、提 issue、走 PR,省掉来回切工具。

本地命令与脚本

把构建、测试、格式化这类重复命令交给模型执行。

接口联调与测试

让模型调你的接口、跑一遍用例,快速定位问题。

选择建议

选之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 已适配 Claude Desktop、Claude、Cursor,换客户端不用重新研究配置。

先想清楚的地方

  • 使用前要准备好API Key对应的凭据,并按最小权限配置。
  • 资料没标注工具数量,实际能力要装好后确认。
  • 版本更新与行为细节以官方仓库为准。

更适合

  • 需要在开发工具场景里让模型直接调用外部能力的人。
  • 已经在用 Claude Desktop、Claude 的用户,接入路径最短。
  • 想先快速试一下、能接受在本地或自有环境跑服务的人。

不太适合

  • 不方便管理密钥或第三方授权的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
MCP 服务器工具数传输方式部署方式安装命令最后核验
Nft Log Analyser当前 未标注 未标注 未标注 有 未标注
Git 838e2ec1 12 stdio · 本地进程 本地部署 有 2026-05-17
Markitdown MCP 2c653a5f 1 stdio · 本地进程 本地部署 有 2026-05-17
JavaGuide 未标注 stdio · 本地进程 本地部署 有 2026-04-11
awesome-claude-skills 未标注 stdio · 本地进程 本地部署 有 2026-04-26
Context7 831acf40 未标注 stdio · 本地进程 本地部署 有 2026-05-17

服务器档案

开发工具
字段来自项目仓库与公开索引,中文说明由本站标注
提供方mashish上游标注的维护方 mashish
分类开发工具本站按上游分类展示
连接方式未标注上游未给出传输方式
鉴权方式API Key远程服务建议用最小权限凭据
维护方社区 / 第三方核验等级 仅资料核对
包名 / 运行时未标注 · Cross-platform本地安装时用到的包标识与运行时
部署类型未标注上游给出的部署形态
最近核验未标注上游最后核验时间

详细介绍

8.5 KB
来自项目仓库与上游目录的原文,未做删改

🔍 NFT Log Analyzer

> AI-powered log analysis that automatically files GitHub Issues — 100% local via Ollama, zero data leaves your machine.


What It Does

Point it at any log file and it will:

  1. Scan 500MB+ files in seconds using ripgrep
  2. Parse error patterns, deduplicate repeated events
  3. Analyse using local LLM (Ollama + deepseek-r1:14b) via CrewAI agents
  4. Compose structured GitHub Issues with root cause and suggested fixes
  5. File Issues automatically to your repo — skipping duplicates

All processing happens locally on your machine. Raw log content never leaves your system.


Architecture```

Claude Desktop / Cursor / LangChain
↓ MCP (stdio or HTTP+SSE)
MCP Log Analyzer Server
↓
ripgrep pre-filter (2-4s on 500MB)
↓
mmap streaming parser + deduplicator
↓
CrewAI agents → Ollama (local LLM)
↓
GitHub Issues API


---

## Requirements

| Requirement | Version | Notes |
|---|---|---|
| Python | 3.11+ | 3.14 not supported |
| Ollama | Latest | `brew install ollama` |
| deepseek-r1:14b | — | ~9GB download |
| ripgrep | Latest | `brew install ripgrep` |
| RAM | 16GB min | 32GB recommended |
| macOS | Ventura 13+ | Apple Silicon recommended |

---

## Quick Start

### 1. Install system dependencies```bash
brew install ollama ripgrep
brew services start ollama
ollama pull deepseek-r1:14b   # ~9GB — start this first

2. Clone and set up Python environment```bash

git clone https://github.com/YOUR_ORG/mcp-log-analyzer
cd mcp-log-analyzer

/opt/homebrew/bin/python3.11 -m venv .venv
source .venv/bin/activate

pip install --upgrade pip
pip install mcp "crewai>=0.80.0" crewai-tools langchain-ollama \
litellm fastapi uvicorn httpx httpx-sse \
structlog loguru pydantic python-dotenv \
tenacity rich typer


### 3. Configure environment```bash
cp .env.example .env
nano .env   # fill in your values
``````env
GITHUB_PAT=ghp_your_token_here
GITHUB_REPO_OWNER=your-username
GITHUB_REPO_NAME=your-repo
OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_MODEL=deepseek-r1:14b
CREWAI_TELEMETRY_OPT_OUT=true
OTEL_SDK_DISABLED=true
OLLAMA_KEEP_ALIVE=-1

4. Create a GitHub PAT

Go to: github.com → Settings → Developer settings → Personal access tokens → Tokens (classic)

Enable scope: repo (full)

5. Register with Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:```json
{
"mcpServers": {
"mcp-log-analyzer": {
"command": "/path/to/mcp-log-analyzer/.venv/bin/python",
"args": ["/path/to/mcp-log-analyzer/mcp_server/server.py"],
"env": {
"GITHUB_PAT": "ghp_your_token",
"GITHUB_REPO_OWNER": "your-username",
"GITHUB_REPO_NAME": "your-repo",
"OLLAMA_BASE_URL": "http://localhost:11434",
"OLLAMA_MODEL": "deepseek-r1:14b"
}
}
}
}


Restart Claude Desktop. You should see the 🔨 tools icon appear.

---

## Usage

### Via Claude Desktop (natural language)```
analyze the log file at /var/log/app.log and file GitHub issues for any errors
``````
use analyze_log_file with path="/var/log/app.log" dry_run=true
``````
check status of job abc12345

Via Python CLI```bash

source .venv/bin/activate

python3 -c "
from dotenv import load_dotenv
load_dotenv()
from mcp_server.tools.analyze_tool import analyze_log_file
import asyncio, json

result = asyncio.run(analyze_log_file({
'path': '/var/log/app.log',
'severity': 'ERROR',
'dry_run': False
}))
print(result[0].text)
"


---

## MCP Tools Reference

### `ping`
Health check — verifies the server and Ollama are running.```json
{}

Returns: "mcp-log-analyzer online — Ollama: deepseek-r1:14b"


analyze_log_file

Start async log analysis. Returns a job ID immediately — pipeline runs in background.

Parameter Type Required Default Description
path string ✅ — Absolute path to log file
severity string — ERROR Minimum severity: WARN, ERROR, CRITICAL
dry_run boolean — false Preview issues without filing to GitHub

Returns:```json
{
"job_id": "abc12345",
"status": "started",
"message": "Analysis started. Check progress with get_job_status('abc12345')."
}


---

### `get_job_status`
Check the status of a running analysis job.

| Parameter | Type | Required | Description |
|---|---|---|---|
| `job_id` | string | ✅ | Job ID returned by analyze_log_file |

**Returns (running):**```json
{
  "status": "running",
  "job_id": "abc12345",
  "lines_filtered": 487,
  "chunks": 1
}

Returns (done):```json
{
"status": "done",
"job_id": "abc12345",
"lines_filtered": 487,
"unique_events": 4,
"chunks": 1,
"issues_filed": 2,
"github_issues": [
{
"title": "[CRITICAL][minting-service] DB connection pool exhausted (x117)",
"url": "https://github.com/your-org/your-repo/issues/42",
"number": 42
}
]
}


---

## Compatible MCP Clients

| Client | Transport | Config |
|---|---|---|
| Claude Desktop | stdio | `claude_desktop_config.json` |
| Claude Code CLI | stdio | `.mcp.json` in project root |
| Cursor | stdio or HTTP+SSE | `.cursor/mcp.json` |
| LangChain | HTTP+SSE | `url: http://localhost:8000/sse` |
| n8n | HTTP+SSE | HTTP Request node → SSE |

### HTTP+SSE Transport (for Cursor, LangChain, n8n)```bash
python mcp_server/server.py --transport sse --port 8000

Customising with Skills

Skills are plain English .md files that teach the agents your stack's error patterns. Three built-in skills ship with the project:

Skill Purpose
skills/nft-app-errors.skill.md NFT/blockchain error classification
skills/infrastructure-errors.skill.md Infrastructure error classification
skills/bug-composition.skill.md GitHub Issue format rules

Writing your own skill

Create skills/my-stack-errors.skill.md:```markdown

My Stack Error Classification

CRITICAL — file bug immediately

  • "FATAL: database connection refused" = service down
  • "out of memory" = process crash imminent

HIGH — file bug, non-urgent

  • "connection timeout" on external API = degraded performance

IGNORE — known false positives

  • "reconnecting..." during deploys = expected

Then load it in `agents/crew.py`:```python
_load_skill("my-stack-errors.skill.md")

Pipeline Internals```

500MB log file
↓ ripgrep (2-4 seconds)
↓ Filters: ERROR|FATAL|CRITICAL|WARN|Exception|Traceback
~5MB of error lines
↓ mmap streaming parser
↓ LogEvent objects with timestamp, level, component, message
↓ Deduplicator (fingerprints strip req_id, numbers, hex)
4-20 unique error patterns
↓ Chunker (10 events per chunk, CRITICAL first)
1-3 chunks
↓ Single CrewAI agent → Ollama (local)
↓ Structured bug reports in markdown
↓ Title extractor + label classifier
↓ Duplicate check via GitHub search API
GitHub Issues filed
```


Performance

Tested on Apple Silicon (M2, 32GB):

File size Filter time Analysis time Total
10MB <1s 3-5 min ~5 min
100MB 1-2s 3-5 min ~7 min
500MB 3-5s 5-10 min ~15 min

Analysis time depends on number of unique error patterns found (not file size).


Troubleshooting

Symptom Fix
ollama ps shows empty Run ollama run deepseek-r1:14b then /bye to warm the model
MCP server disconnected in Claude Desktop Check ~/Library/Logs/Claude/mcp-server-*.log for Python errors
Issues filed: 0 Verify GITHUB_PAT in claude_desktop_config.json is a real token, not placeholder
Timeout after 600s Add OLLAMA_KEEP_ALIVE=-1 to .env and restart Ollama
crewai install fails Requires Python 3.11 — not compatible with 3.13/3.14
Permission denied on /usr/local/bin Use /opt/homebrew/bin/ instead on Apple Silicon

Roadmap

v1 (current)

  • Local filesystem log ingestion
  • ripgrep + mmap pipeline
  • Single-agent CrewAI analysis
  • GitHub Issues filing with dedup
  • Claude Desktop + stdio MCP transport

v2 (planned)

  • Datadog MCP integration
  • Splunk MCP integration
  • HTTP+SSE transport (Cursor, LangChain, n8n)
  • Scheduled analysis triggers
  • Parallel chunk processing
  • Web dashboard for job history

Contributing

Contributions welcome — especially new skill files for different stacks.

  1. Fork the repo
  2. Create skills/your-stack-errors.skill.md
  3. Test it against a real log file
  4. Open a PR with example output

License

MIT — see LICENSE

常见问题

7 问
答案由本站依据条目字段整理,不引用上游原文
Nft Log Analyser 怎么安装?

在客户端按下面的安装命令接入:/path/to/mcp-log-analyzer/.venv/bin/python /path/to/mcp-log-analyzer/mcp_server/server.py。装完在客户端配置里引用同一个包或端点。

Nft Log Analyser 怎么在 Claude Desktop、Claude、Cursor 里配置?

它的传输方式未标注,在客户端的 MCP 配置里填好启动命令和参数,保存后完全退出客户端再打开,配置才会生效。

Nft Log Analyser 收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Nft Log Analyser 需要 API Key 吗?

资料标注需要API Key认证,使用前准备好对应凭据,并按最小权限配置。

Nft Log Analyser 支持哪些客户端?

资料标注支持 Claude Desktop、Claude、Cursor、Codex、Zed;其他客户端只要能配置 MCP Server,也能用同样的命令或地址接入。

Nft Log Analyser 能提供哪些能力?

资料显示能力标签包括 mcp、mcp server、log analysis、ollama、local llm、crewai。具体工具清单以官方文档为准。

Nft Log Analyser 需要什么运行环境?

运行时为 Cross-platform。

热门专题

按标签挑服务器
全部专题 →

服务器信息以作者仓库与官方文档为准;分类、传输方式与鉴权方式的中文说明为中文整理,最近核验 未标注。