Logo vun OWL (Web Ontology Language)

OWL (Web Ontology Language)

Organisatioun
ai4curation

MCP server for OWL applications

Editeurai4curation
Repositoryowl-mcp
SproochPython
Forks
7
Stären
19
Disponibel Tools
19
Transporttypstdio
Kategorien
Linken
  • Tools mat KI-Workflows verbannen

    OWL (Web Ontology Language) stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 19 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    19 Stären an 7 Forks aus dem verlinkte Repository.

OWL-MCP

OWL-MCP is a Model-Context-Protocol (MCP) server for working with Web Ontology Language (OWL) ontologies.

img img

Quick Start

This walks you through using owl-mcp with Goose, but any MCP-enabled AI host will work.

Install Goose

You can use either the Desktop or CLI version of Goose from here:

Follow the instructions for setting up an LLM provider (Anthropic recommended)

Install OWL-MCP extension

You can either install directly from this link:

Or to do this manually, in the Extension section of Goose, add a new entry for owlmcp:

uvx owl-mcp

This video shows how to do this manually:

configuration

Try it out

You can ask to create an ontology, and add axioms to an ontology:

editing

How this works

The MCP server provides function calls for finding, adding, or removing OWL axioms, using OWL functional syntax. Each function call is accompanied by the file path of the OWL file on your disk. Any format supported by py-horned-owl is accepted (we following OBO guidelines and recommend functional syntax for source).

The server takes care of keeping an instance of the ontology in memory and syncing it with disk. Any CRUD operation simultaneously updates the in-memory model and syncs this with disk. If you have Protege running, Protege will also sync with local disk, and show updates.

The server is well adapted for working with OBO-style ontologies - when OWL strings are sent back to the client, labels for opaque IDs are included after #s comments, as is common for obo-format.

Key Features

  • MCP Server Integration: Connect AI assistants directly to OWL ontologies using the standardized Model-Context-Protocol
  • Thread-safe operations: All ontology operations are thread-safe, making it suitable for multi-user environments
  • File synchronization: Changes to the ontology file on disk are automatically detected and synchronized
  • Event-based notifications: Register observers to be notified of changes to the ontology
  • Simple string-based API: Work with OWL axioms as strings in functional syntax without dealing with complex object models
  • Configuration system: Store and manage settings for frequently-used ontologies
  • Label support: Access human-readable labels for entities with configurable annotation properties

Installatioun

TypingMind
Viraussetzungen:

Node.js 18+

{
  "mcpServers": {
    "owl-mcp": {
      "command": "uvx",
      "args": [
        "owl-mcp"
      ]
    }
  }
}

Disponibel Tools

  • add_axiom
    Add an axiom to the ontology using OWL functional syntax.
    
    Args:
        owl_file_path: Absolute path to the OWL file
        axiom_str: String representation of the axiom in OWL functional syntax
                 e.g., "SubClassOf(:Dog :Animal)"
    
    Returns:
        str: Success message or error
    
  • add_axioms
    Adds a list of axioms to the ontology, using OWL functional syntax.
    
    Args:
        owl_file_path: Absolute path to the OWL file
        axiom_strs: List of string representation of the axiom in OWL functional syntax
                 e.g., ["SubClassOf(:Dog :Animal)", ...]
    
    Returns:
        str: Success message or error
    
  • remove_axiom
    Remove an axiom from the ontology using OWL functional syntax.
    
    Args:
        owl_file_path: Absolute path to the OWL file
        axiom_str: String representation of the axiom in OWL functional syntax
    
    Returns:
        str: Success message or error
    
  • find_axioms
    Find axioms matching a pattern in the ontology.
    
    Args:
        owl_file_path: Absolute path to the OWL file
        pattern: A string pattern to match against axiom strings
                (simple substring matching)
        limit: (int) Maximum number of axioms to return (default: 100)
        include_labels: If True, include human-readable labels after ## in the output
        annotation_property: Optional annotation property IRI to use for labels 
                            (defaults to rdfs:label)
    
    Returns:
        list[str]: List of matching axiom strings
    
  • get_all_axioms
    Get all axioms in the ontology as strings.
    
    Args:
        owl_file_path: Absolute path to the OWL file
        limit: Maximum number of axioms to return (default: 100)
        include_labels: If True, include human-readable labels after ## in the output
        annotation_property: Optional annotation property IRI to use for labels 
                            (defaults to rdfs:label)
    
    Returns:
        list[str]: List of all axiom strings
    
  • add_prefix
    Add a prefix mapping to the ontology.
    
    Args:
        owl_file_path: Absolute path to the OWL file
        prefix: The prefix string (e.g., "ex")
        uri: The URI the prefix maps to (e.g., "http://example.org/")
    
    Note that usually an ontology will contain standard prefixes for rdf, rdfs, owl, xsd
    
    Returns:
        str: Success message
    
  • ontology_metadata
    Get metadata about the ontology.
    
    Args:
        owl_file_path: Absolute path to the OWL file
    
    Returns:
        list[str]: List of metadata items
    
  • list_configured_ontologies
    List all ontologies defined in the configuration.
    
    Returns:
        List[OntologyConfigInfo]: List of configured ontologies
    
  • configure_ontology
    Add or update an ontology in the configuration.
    
    Args:
        name: A unique name for the ontology
        path: Absolute path to the ontology file
        metadata_axioms: List of metadata axioms as strings
        readonly: Whether the ontology is read-only (default: False)
        description: Optional description
        preferred_serialization: Optional preferred serialization format
        annotation_property: Optional annotation property IRI for labels (default: rdfs:label)
    
    Returns:
        str: Success or error message
    
  • remove_ontology_config
    Remove an ontology from the configuration.
    
    Args:
        name: Name of the ontology to remove
    
    Returns:
        str: Success or error message
    
  • get_ontology_config
    Get configuration for a specific ontology.
    
    Args:
        name: Name of the ontology
    
    Returns:
        Optional[OntologyConfigInfo]: The ontology configuration or None if not found
    
  • register_ontology_in_config
    Register an existing ontology in the configuration system.
    
    This allows you to save preferences and metadata for frequently used ontologies,
    making them accessible by name in future sessions.
    
    Args:
        owl_file_path: Absolute path to the ontology file
        name: Optional custom name for the ontology (defaults to filename without extension)
        readonly: Whether the ontology should be read-only (defaults to current setting if loaded)
        description: Optional description for the ontology
        preferred_serialization: Optional preferred serialization format
        annotation_property: Optional annotation property IRI for labels (defaults to current setting if loaded)
    
    Returns:
        str: Name of the registered ontology
    
  • load_and_register_ontology
    Load an ontology and register it in the configuration system in one step.
    
    Args:
        owl_file_path: Absolute path to the ontology file
        name: Optional name for the ontology (defaults to filename stem)
        readonly: Whether the ontology should be read-only (default: False)
        create_if_not_exists: If True, create the file if it doesn't exist (default: True)
        description: Optional description of the ontology
        preferred_serialization: Optional preferred serialization format
        metadata_axioms: Optional list of metadata axioms to add to the ontology
        annotation_property: Optional annotation property IRI for labels (default: rdfs:label)
        
    Returns:
        str: Success message
    
  • add_axiom_by_name
    Add an axiom to a configured ontology using its name.
    
    Args:
        ontology_name: Name of the ontology as defined in configuration
        axiom_str: String representation of the axiom in OWL functional syntax
    
    Returns:
        str: Success message or error
    
  • remove_axiom_by_name
    Remove an axiom from a configured ontology using its name.
    
    Args:
        ontology_name: Name of the ontology as defined in configuration
        axiom_str: String representation of the axiom in OWL functional syntax
    
    Returns:
        str: Success message or error
    
  • find_axioms_by_name
    Find axioms matching a pattern in a configured ontology using its name.
    
    Args:
        ontology_name: Name of the ontology as defined in configuration
        pattern: A string pattern to match against axiom strings
        limit: Maximum number of axioms to return (default: 100)
        include_labels: If True, include human-readable labels after ## in the output
        annotation_property: Optional annotation property IRI to use for labels 
                            (defaults to rdfs:label)
    
    Returns:
        list[str]: List of matching axiom strings or empty list if ontology not found
    
  • add_prefix_by_name
    Add a prefix mapping to a configured ontology using its name.
    
    Args:
        ontology_name: Name of the ontology as defined in configuration
        prefix: The prefix string (e.g., "ex:")
        uri: The URI the prefix maps to (e.g., "http://example.org/")
    
    Returns:
        str: Success message or error
    
  • get_labels_for_iri
    Get all labels for a given IRI.
    
    Args:
        owl_file_path: Absolute path to the OWL file
        iri: The IRI to get labels for (as a string)
        annotation_property: Optional annotation property IRI to use for labels
                            (defaults to rdfs:label if None)
    
    Returns:
        List[str]: List of label strings
    
  • get_labels_for_iri_by_name
    Get all labels for a given IRI in a configured ontology.
    
    Args:
        ontology_name: Name of the ontology as defined in configuration
        iri: The IRI to get labels for (as a string)
        annotation_property: Optional annotation property IRI to use for labels
                            (defaults to rdfs:label if None)
    
    Returns:
        List[str]: List of label strings or empty list if ontology not found
    

OWL (Web Ontology Language) MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal OWL (Web Ontology Language) verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

OWL (Web Ontology Language) als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu OWL (Web Ontology Language) an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "owl-web-ontology-language": {
      "command": "npx",
      "args": [
        "-y",
        "owl-mcp"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu OWL (Web Ontology Language). Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu OWL (Web Ontology Language).
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat OWL (Web Ontology Language)?
OWL (Web Ontology Language)
Jo. Ech hunn et gelies.
Dat hunn ech mat OWL (Web Ontology Language) fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server OWL (Web Ontology Language) benotzt?

OWL (Web Ontology Language) ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech OWL (Web Ontology Language) MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir OWL (Web Ontology Language) mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat OWL (Web Ontology Language) MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann OWL (Web Ontology Language) verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech OWL (Web Ontology Language) MCP mat TypingMind?

OWL (Web Ontology Language) leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt OWL (Web Ontology Language) MCP an TypingMind zur Verfügung?

OWL (Web Ontology Language) stellt 19 MCP-Tools zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir OWL (Web Ontology Language) MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann OWL (Web Ontology Language) eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇