MCP server for querying, editing, saving, and reasoning over OWL, TTL, and RDF ontologies.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag — we're steadily working through the catalog.
💡 Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Owl MCP.
OWL MCP Server 是一个基于 Model Context Protocol (MCP) 的本体操作服务器。
它让 Claude、Cursor、WorkBuddy 等 AI 助手能够像操作普通文件一样,直接查询、修改、推理你的 OWL/TTL/RDF 本体文件 —— 无需手写 SPARQL,无需了解 OWL 语法细节,用自然语言对话即可完成复杂的知识图谱操作。
或使用 requirements.txt:
⚠️ 推理器依赖 Java:使用
run_reasoner(Pellet/HermiT)需要本地安装 JDK 8+
在 ~/.workbuddy/mcp.json 中添加:
💡 推荐:使用虚拟环境的 Python 绝对路径,避免依赖冲突:
在 claude_desktop_config.json 中添加:
在 .cursor/mcp.json 中添加同样的配置,重启 Cursor 后即可在 Agent 模式中使用。
在 WorkBuddy 连接器管理页面找到 owl,点击 Trust 启用,然后直接开始自然语言对话:
| 工具 | 说明 |
|---|---|
load_ontology | 加载本体文件(支持本地路径或 IRI,格式:TTL / OWL / RDF) |
get_ontology_info | 获取本体概览(类数、个体数、属性数、命名空间) |
list_classes | 列出所有类,支持前缀过滤与数量限制 |
list_individuals | 列出所有个体,支持按类过滤 |
list_properties | 列出对象属性 / 数据属性 |
describe_class | 详细描述类(父类、子类、限制、已知个体) |
describe_individual | 描述个体(所属类型、全部属性值) |
search_entity | 按关键词模糊搜索类 / 个体 / 属性 |
sparql_query | 执行 SPARQL 1.1 SELECT 查询 |
| 工具 | 说明 |
|---|---|
add_class | 添加新类(可指定父类、rdfs:label、rdfs:comment) |
add_individual | 添加新个体(可指定初始属性值) |
add_object_property_assertion | 添加对象属性三元组断言 |
save_ontology | 保存本体(支持 rdfxml / turtle / ntriples) |
| 工具 | 说明 |
|---|---|
run_reasoner | 运行推理器(Pellet 或 HermiT),检查一致性并推断隐含知识 |
注意:
add_*系列修改操作不会自动保存,需显式调用save_ontology。
| 组件 | 用途 |
|---|---|
| owlready2 | OWL 本体加载、修改、推理器调用 |
| rdflib | SPARQL 1.1 查询引擎 |
| mcp | Model Context Protocol SDK |
java 在系统 PATH 中list_* 系列操作请配合 limit 参数使用add_* 操作仅更新内存模型,需手动调用 save_ontologyOWL MCP Server 是我在业余时间独立开发和维护的开源项目,永久免费。
如果它帮你省下了哪怕半小时手写 SPARQL 的时间,可以考虑请我喝杯咖啡(¥9.9 就够 ☕)—— 你的每一份支持都会直接转化为新功能开发和 bug 修复的动力。
扫码赞赏时可以留言你最想要的功能,我会优先安排 😉
不方便赞赏? 给项目点个 ⭐ Star、提一个 Issue、或把它分享给需要的人,同样是巨大的支持!
Factual signals from GitHub, npm, and our automated checks — not a rating.
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/liftkkkk-owl-mcp)<a href="https://allmcps.com/mcp/liftkkkk-owl-mcp"><img src="https://allmcps.com/api/badge/liftkkkk-owl-mcp?style=directory" alt="Owl MCP on AllMCPs" /></a>