Logotipo de OWL (Web Ontology Language)

OWL (Web Ontology Language)

Organización
ai4curation

MCP server for OWL applications

Editorai4curation
Repositorioowl-mcp
IdiomaPython
Forks
7
Estrellas
19
Herramientas disponibles
19
Tipo de transportestdio
Categorías
Enlaces
  • Conecta herramientas a flujos de trabajo con IA

    OWL (Web Ontology Language) ofrece funciones MCP que pueden usar los clientes y agentes de IA compatibles.

  • 19 herramientas disponibles

    Explora a continuación las acciones que se pueden invocar, con sus nombres y descripciones cuando el servidor los proporcione.

  • Configuración lista para copiar

    Usa los ejemplos de instalación para configurar este servidor en tu cliente MCP preferido.

  • Indicadores de interés de la comunidad en el repositorio

    19 estrellas y 7 forks en el repositorio enlazado.

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

Instalación

TypingMind
Requisitos:

Node.js 18+

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

Herramientas disponibles

  • 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
    

Usa el MCP de OWL (Web Ontology Language) con varios modelos de IA

TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que, una vez conectado OWL (Web Ontology Language), puedes usarlo con distintos modelos de IA en TypingMind sin tener que configurarlo por separado para cada modelo. Esta integración MCP se ejecuta localmente en tu dispositivo a través del conector MCP de TypingMind.

Guía de configuración para usar el conector local

Usa esta opción si el servidor MCP necesita acceder a archivos locales, aplicaciones o recursos privados de tu ordenador.

1

Abre los ajustes de MCP

En TypingMind, ve a Ajustes, luego a Ajustes avanzados y a Model Context Protocol, y elige Configurar conector.

  1. Abre TypingMind en tu navegador.
  2. Haz clic en el icono de Ajustes.
  3. Ve a Ajustes avanzados.
  4. Abre la sección Model Context Protocol.
  5. Haz clic en Configurar conector y elige Este dispositivo.
Pantalla de configuración del conector MCP de TypingMind con «Este dispositivo» seleccionado
2

Ejecuta el comando del conector

Elige Este dispositivo, copia el comando de TypingMind y ejecútalo en Terminal. Mantén el proceso en ejecución mientras uses MCP.

  1. Copia el comando de configuración que muestra TypingMind.
  2. Abre Terminal en macOS o Windows Terminal en Windows.
  3. Pega y ejecuta el comando.
  4. Acepta la instalación del paquete si Terminal te pide confirmación para continuar.
  5. Mantén el proceso en ejecución en la ventana de Terminal mientras uses las herramientas MCP.
3

Añade OWL (Web Ontology Language) como servidor

Cuando el estado del conector sea «Listo», haz clic en «Editar servidores» y pega la configuración del servidor MCP.

  1. Espera hasta que el estado del conector indique «Listo».
  2. Haz clic en «Editar servidores».
  3. Pega la configuración del servidor MCP de OWL (Web Ontology Language).
  4. Guarda la lista de servidores.
  5. Actualiza si quieres comprobar que el conector sigue listo.
Ajustes de MCP de TypingMind con un servidor activo y el botón «Editar servidores»
{
  "mcpServers": {
    "owl-web-ontology-language": {
      "command": "npx",
      "args": [
        "-y",
        "owl-mcp"
      ]
    }
  }
}
4

Usa la conexión con distintos modelos

Guarda la lista de servidores, abre Plugins, activa las herramientas MCP de OWL (Web Ontology Language) y selecciona cualquier modelo de IA compatible en TypingMind para usar las herramientas en el chat o asignárselas a un agente de IA.

  1. Abre la página Plugins en TypingMind.
  2. Activa las herramientas MCP de OWL (Web Ontology Language).
  3. Inicia un chat y elige el modelo de IA que quieras usar.
  4. Usa las herramientas MCP en el chat o asígnalas a un agente de IA.
  5. Cambia a otro modelo de IA cuando lo necesites sin volver a conectar MCP.
Chat de TypingMind que usa herramientas MCP activadas con un modelo de IA seleccionado
¿Puedes usar OWL (Web Ontology Language) para ayudarme con esta tarea?
OWL (Web Ontology Language)
Claro. Lo he leído.
Esto es lo que he encontrado con OWL (Web Ontology Language).

Preguntas frecuentes

¿Para qué sirve el servidor MCP OWL (Web Ontology Language)?

OWL (Web Ontology Language) es un servidor MCP que permite a los clientes de IA compatibles conectarse a herramientas externas y acceder a información de contexto de fuentes externas. En TypingMind, basta con añadir este servidor MCP una vez para que sus herramientas estén disponibles en tu espacio de trabajo de IA.

¿Puedo usar el servidor MCP OWL (Web Ontology Language) con varios modelos de IA en TypingMind?

Sí. TypingMind conecta las herramientas MCP a nivel del espacio de trabajo, por lo que puedes usar OWL (Web Ontology Language) con distintos modelos de IA, como Claude, ChatGPT, Gemini u otros que hayas configurado en TypingMind, sin configurar el servidor MCP por separado para cada modelo.

¿Por qué usar el servidor MCP OWL (Web Ontology Language) con TypingMind?

TypingMind es una de las mejores interfaces de chat con LLM porque reúne varios modelos de IA, prompts, plugins, agentes de IA, claves API y herramientas MCP en un solo espacio de trabajo. Con OWL (Web Ontology Language) conectado, puedes usar sus herramientas MCP con tus modelos preferidos y mantener organizado tu trabajo con los chats en TypingMind.

¿Cómo conecto el servidor MCP OWL (Web Ontology Language) a TypingMind?

OWL (Web Ontology Language) funciona a través del conector MCP local de TypingMind. Es la mejor opción cuando el servidor MCP necesita acceder a archivos locales, aplicaciones de escritorio, herramientas de línea de comandos o recursos privados de tu ordenador.

¿Qué herramientas ofrece el servidor MCP OWL (Web Ontology Language) en TypingMind?

Número de herramientas MCP que ofrece OWL (Web Ontology Language): 19. Puedes activar estas herramientas desde la página Plugins de TypingMind y usarlas en el chat o asignarlas a agentes de IA.

¿Tengo que compartir mis claves API con TypingMind para usar el servidor MCP OWL (Web Ontology Language)?

No. TypingMind prioriza el funcionamiento local y te permite mantener el control de tus proveedores de modelos, claves API, prompts y configuración MCP. Si OWL (Web Ontology Language) requiere autenticación, añade las cabeceras, los ajustes de OAuth o la configuración local necesarios para ese servidor MCP al crear la conexión.

Servidores MCP relacionados

Ver el directorio

Crea ya tu propio espacio de trabajo con IA

Suscríbete a nuestro boletín para recibir avisos sobre nuevas funciones y próximos sorteos 👇