Skip to main content
Glama
MCP-based Knowledge Graph Construction System

MCP-based Knowledge Graph Construction System

by turambar928

MCP 知识图谱项目

项目包含知识图谱构建与修复代码、两篇论文,以及对应的实验记录。论文当前入口如下。

要做什么

打开哪里

修改、阅读 Paper1 当前稿

paper1 merge/

修改、阅读 Paper2 当前稿

paper2/

下载 Paper1 完整 Overleaf 项目

paper1_merge_overleaf.zip

下载 Paper2 完整 Overleaf 项目

paper2_overleaf.zip

阅读 Paper1 完整中文译文

main_zh.pdf

看老师的原稿、合并前的 Paper1

paper1/

找文件、了解本次整理

目录说明与迁移清单

目录怎么分

目录或文件

用途

paper1 merge/、paper2/

两篇论文的当前源码、PDF 和 Overleaf 交付包

paper1/

合并前 Paper1 的压缩归档、老师原稿,以及实验使用的画图样式文件

content_enhancement/、evaluate_kg/

图谱检查、修复和评价代码

exps/

实验代码、冻结配置、输出和评分结果;实验索引

data/

数据集、图谱 CSV 和规则测试数据

scripts/、rule_generate_scripts/

数据转换、数据准备、监控和规则工具

tests/

离线验证和原有测试

docs/

使用说明、方法解释和目录说明

archive/

旧论文、旧导出包、历史文档和运行日志

outputs/

程序生成的图谱等输出

kg_server*.py、kg_client*.py 等根目录 Python 文件

原有程序入口和模块;保留路径以便现有命令和实验继续使用

Related MCP server: Universal Ontology MCP

论文目录里的文件都需要吗

  • main.tex、sections/、figure/、文献、模板和字体:当前论文的编译输入。

  • main.pdf:当前阅读版。Paper1 的 main_zh.pdf 是完整中文译文。

  • overleaf/ 和 ZIP:从当前源码生成的交付副本。日常修改根目录源码,下载时用 ZIP。

  • docs/:数学与实验导读、进度、合并说明和投稿材料;不参与论文编译。

  • tools/、validation/:构建工具和核对记录;不需要上传到 Overleaf。

  • archive/:历史版本和旧材料,已退出当前编译流程,保留以便追溯。

上传 Overleaf 时选择完整 ZIP,主文件选 main.tex,编译器选 XeLaTeX。

更新约定:每次修改并完成相应验证后,提交并推送到 origin/main。论文源码、PDF 和 Overleaf 交付包同步更新。老师的 paper1/zt/ 原稿继续仅保留在本地。

运行程序

在仓库根目录执行:

uv sync
uv run kg_server.py

API 配置保存在本地 .env 或 apis。配置示例是 .env.example、apis.example。

详细使用方法见 中文说明、英文说明。本次目录整理保留实验、数据和运行模块的内容,不调用模型或重跑实验。

Available Tools

1 tool
build_knowledge_graphC

全自动构建知识图谱:自动评估数据质量、补全知识、构建图谱并生成可视化

NameRequiredDescriptionDefault
textYes要处理的文本数据
output_fileNo可视化输出文件名(可选)knowledge_graph.html

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions the tool's automated processes but fails to disclose critical traits like required permissions, rate limits, whether it's read-only or destructive, or what happens on failure. For a complex tool with no annotation coverage, this is a significant gap in transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is highly concise and front-loaded, using a single sentence that efficiently outlines the tool's multi-step process. Every phrase ('自动评估数据质量、补全知识、构建图谱并生成可视化') earns its place by specifying key actions without redundancy or waste.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (automated knowledge graph construction) and lack of annotations or output schema, the description is incomplete. It doesn't cover behavioral aspects, error handling, or output details, leaving gaps that could hinder an AI agent's effective use. The description should provide more context to compensate for missing structured data.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both parameters ('text' and 'output_file'). The description adds no additional meaning beyond the schema—it doesn't explain parameter interactions, formats, or constraints. Baseline 3 is appropriate when the schema handles parameter documentation adequately.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: '全自动构建知识图谱' (fully automatic knowledge graph construction) with specific verbs like '评估数据质量' (assess data quality), '补全知识' (complete knowledge), '构建图谱' (build graph), and '生成可视化' (generate visualization). It distinguishes the tool's comprehensive automated workflow. However, without sibling tools, we cannot assess differentiation from alternatives, preventing a perfect score.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives, prerequisites, or exclusions. It simply lists what the tool does without context for application. This lack of usage instructions limits its utility for an AI agent in decision-making.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev0.1.0
    • First observedbuild_knowledge_graph

TDQS

B3/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool 'build_knowledge_graph' has a clearly defined and distinct purpose for constructing knowledge graphs.

Naming Consistency5/5

Since there is only one tool, naming consistency is inherently perfect. The tool name 'build_knowledge_graph' follows a clear verb_noun pattern, and there are no other tools to compare it against for inconsistency.

Tool Count2/5

A single tool for a 'Knowledge Graph Construction System' is too few for the apparent scope. The domain suggests needs for operations like querying, updating, or analyzing graphs, but only construction is covered, making the set feel thin and incomplete.

Completeness1/5

The tool set is severely incomplete for a knowledge graph system. It only provides construction with visualization, lacking essential operations such as querying, updating, deleting, or analyzing the graph, which are critical for agent workflows in this domain.

Maintenance

ActivityActive
ResponsivenessSyncing

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    A temporal knowledge graph system that enables users to record and query architectural decisions, implementation patterns, and project failures. It integrates with Claude to provide hybrid search, timeline tracking, and automated knowledge gap detection using graph analysis.
    4
    MIT
  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables AI assistants to navigate and populate complex ontologies by transforming unstructured data into structured, SHACL-validated knowledge graphs. It features semantic hybrid search and proactive schema guidance to help users build deeply linked, reasoning-ready data.
    -
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables extraction of structured data from messy text with multi-model verification and human-in-the-loop review, surfacing only high-confidence results or flagging uncertain fields for confirmation.
    1
    MIT