SuperAPIAI Directory

owl-mcp

github.com · AI developer platforms

Work with OWL/TTL/RDF ontologies: SPARQL queries, HermiT/Pellet reasoning and CRUD operations on knowledge graphs.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose

OWL MCP Server is an ontology operation server built on the Model Context Protocol (MCP). It enables AI assistants (such as Claude, Cursor, WorkBuddy) to directly query, modify, and reason over OWL / TTL / RDF ontology files just like ordinary files. Users no longer need to hand-write SPARQL or dive into the details of OWL syntax; complex knowledge graph operations can be completed through natural language conversation.

Main Capabilities

  • Query: Query ontologies using standard SPARQL 1.1, executed by the rdflib engine.
  • Modification: Provides add/delete/update tools (add_* etc.) for incremental modification of ontologies.
  • Reasoning: Through run_reasoner calls Pellet / HermiT for reasoning, supporting consistency checking.
  • Ontology structure exploration: With the help of list_* tools to browse the ontology structure.
  • CRUD operations: Create, read, update, and delete ontologies.

How to Use

  1. Install dependencies: Install project dependencies according to requirements.txt.
  2. Configure the MCP client:
    • WorkBuddy: Add to ~/.workbuddy/mcp.json, it is recommended to use the absolute path of the virtualenv Python to avoid dependency conflicts.
    • Claude Desktop: Add to claude_desktop_config.json.
    • Cursor: Add to .cursor/mcp.json, after restarting Cursor you can use it in Agent mode.
  3. Enable and converse: Find owl on the WorkBuddy connector management page, click Trust to enable it, and then use natural language chat to operate the ontology.

Applicable Scenarios

  • Finance: CRUD operations on bank statement and invoice ontologies.
  • Healthcare: Explore clinical knowledge graphs and perform reasoning.
  • Engineering: Manage and validate equipment and process ontologies.
  • Scientific research: Rapid prototyping and testing of OWL ontologies.

Compatible MCP Clients

  • Trae/Traw-work
  • Cursor (Agent mode)
  • Any AI client conforming to the MCP specification

Limitations and Notes

  • The reasoner requires Java: Pellet / HermiT depends on JDK 8+ and ensure that java is in the system PATH.
  • Large ontologies: When exceeding about 100,000 triples, use the list_* tool's limit parameter.
  • Changes are not saved automatically: All add_* operations only update the in-memory model, and save_ontology must be explicitly called to save.
  • SPARQL syntax: Use standard SPARQL 1.1, executed by the rdflib engine.

Additional Notes

This project is an open-source project. The author states that it will be permanently free, accepts voluntary donations (starting from ¥9.9), and support can also be given through Star, submitting Issues, or sharing.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools