Feedback

OWL (Web Ontology Language) MCP Server

@ai4curation Claim

Basic information

Runtime
Python
Version
1.0.0
Category
License
MIT
Transports
stdio
Author
ai4curation
Submitted by
Community
Quality
35
Stars
17

About OWL (Web Ontology Language) MCP Server

OWL (Web Ontology Language) lets AI systems manage ontologies by adding, removing, or finding axioms with functional syntax.

OWL (Web Ontology Language) is a MCP server in the File Systems category listed in the AddMCP.net directory, published by ai4curation. It exposes 19 tools, including add_axiom, add_axioms, remove_axiom, find_axioms and more. Supported transport: stdio. Runtime: Python. License: MIT. The repository has 17 GitHub stars. Source code is hosted on github.com. Related topics: ai, community, developer-tools, file-systems, mcp.

Setup

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

OWL (Web Ontology Language) MCP Server config

Add this server to your MCP-compatible client using the configuration below.

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

OWL (Web Ontology Language) MCP Server 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

Overview

What is OWL (Web Ontology Language)?

OWL‑MCP is a Model‑Context‑Protocol (MCP) server for working with Web Ontology Language (OWL) ontologies. It lets AI assistants—via any MCP‑enabled host—add, find, or remove OWL axioms stored on disk, keeping an in‑memory model in sync with the file.

How to use OWL (Web Ontology Language)?

Install an MCP‑enabled host such as Goose (desktop or CLI), then add OWL‑MCP as an extension using uvx owl-mcp. After configuration, you can ask the AI to create an ontology or add axioms; each operation references a local OWL file path. Any format supported by py‑horned‑owl is accepted, and OWL functional syntax is used for the API calls.

Key features of OWL (Web Ontology Language)

  • MCP integration for AI‑assisted ontology editing
  • Thread‑safe operations for multi‑user environments
  • Automatic file synchronization with disk
  • Event‑based notifications via registered observers
  • Simple string‑based API using OWL functional syntax
  • Configuration system for frequently‑used ontologies
  • Human‑readable labels for entities (OBO‑style support)

Use cases of OWL (Web Ontology Language)

  • Create a new OWL ontology entirely through natural‑language prompts
  • Add or remove axioms interactively while working in tools like Protégé
  • Maintain OBO‑style ontologies with label comments after opaque IDs
  • Automate ontology updates from a multi‑user AI workflow
  • Synchronise changes between an AI assistant and a shared OWL file on disk

Frequently asked questions

1 What does OWL-MCP do?

It provides MCP function calls for finding, adding, or removing OWL axioms in a local ontology file, keeping an in‑memory model synced with the disk.

2 What dependencies or runtime are required?

OWL‑MCP requires uvx to run and any MCP‑enabled AI host (e.g., Goose). It uses the py‑horned‑owl library under the hood to parse and write OWL files in any supported format.

3 Where is the ontology data stored?

The ontology data lives in a local OWL file on your disk. All CRUD operations read from and write to that file, and the server syncs the in‑memory model automatically.

4 Can I use OWL-MCP with Protégé?

Yes. Because the server synchronises changes to disk, Protégé—if pointed at the same file—will automatically see updates.

5 What syntax does OWL-MCP use for OWL axioms?

The API works with OWL axioms as strings written in OWL functional syntax, which is also the recommended source format following OBO guidelines.

Comments

No comments yet

Be the first to share feedback about this listing. Sign in to leave a comment.

Sign In

Feedback 💬