Listed from the MCP registry; nobody on Odel publishes it.
Aviation accident report parsing and prompt generation service under the SHELL framework.
Runs on your machine from its package; the steps are below.
At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
uvx aviation-accident-analysis
MCP client config
{
"mcpServers": {
"aviation-accident-analysis-mcp": {
"command": "uvx",
"args": [
"aviation-accident-analysis"
]
}
}
}本项目基于 Microsoft GraphRAG 框架 ,旨在自动从航空事故报告中抽取实体与因果关系,并构建符合“人-机-环-管”框架的知识图谱。
data/: 原始数据与地标数据。input/: GraphRAG 输入目录(清洗后的文本)。output/: GraphRAG 输出结果(Parquet, GraphML 等)。prompts/: 自定义的 GraphRAG 提取提示词。src/:
ingest.py: PDF/DOCX 解析与文本清洗。evaluate.py: 提取准确率与 F1 分数评测脚本。run.sh: 一键运行脚本。settings.yaml: GraphRAG 配置文件。settings.yaml 中的 api_base 是否配置正确。在某些 Docker 或受限环境中,建议将 localhost 修改为 127.0.0.1。prompts/extract_graph.txt 中的抽取示例进行了优化,通过引入复杂场景示例,提升了在航空事故报告中的实体抽取表现。针对航空事故报告的复杂性,对 prompts/extract_graph.txt 进行了多轮手动迭代优化:
few_shot_data.csv 中的高质量航空事故致因链示例,引导模型识别长程因果关系。[因素] -> [事件] -> [结果] 的链条要求。通过 scripts/run_automated_evaluation.py 运行自动化评估,对比 data/ground_truth.json 得到以下指标:
| 指标 | 实体 (Entities) | 关系 (Relationships) |
|---|---|---|
| 精确率 (Precision) | 0.4348 | 0.0556 |
| 召回率 (Recall) | 0.7143 | 0.0909 |
| F1 分数 (F1 Score) | 0.5405 | 0.0690 |
结论:实体抽取的精确率和 F1 分数相比基准版本有显著提升。关系抽取受限于本地模型的指令遵循能力,仍有优化空间。
本项目提供了一个 MCP 服务,方便通过 MCP 客户端(如 Claude Desktop)直接调用文档解析与提示词生成功能。
uv run mcp_server.py
upload_and_generate_prompt:
file_path: 文档路径。template_name: prompts/ 目录下的模板名(默认 extract_entities)。list_available_templates: 列出所有可用的提示词模板。如果你想快速启动整个分析环境(包含 Neo4j 数据库和 MCP 服务),可以使用 Docker Compose:
docker-compose up -d
启动后:
neo4j, 密码: password)data/input_reports。bash run.sh
在 settings.yaml 中修改 completion_models 和 embedding_models:
completion_models:
default_completion_model:
model_provider: openai
api_base: http://localhost:6006/v1
model: llama3 # 或其他模型
api_key: ollama # 占位符
注意:GraphRAG 对本地模型的支持取决于模型的遵循指令能力。
src/export_to_neo4j.py 脚本完成导入。