Skip to main content

A MCP server for OWL ontology operations

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_ai4curation_owl_mcp-0.1.0.tar.gz (607.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iflow_mcp_ai4curation_owl_mcp-0.1.0-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

Details for the file iflow_mcp_ai4curation_owl_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: iflow_mcp_ai4curation_owl_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 607.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_ai4curation_owl_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f5a578361b323d440d4db29895056cdd265e91336e284ec804bda8c7df0512e1
MD5 4c1eb974988fdb324bcbaf042f9484e5
BLAKE2b-256 f20806d4379686ea0123158a45c0bc73addb40cf168f79a21a53e7b4c0777526

See more details on using hashes here.

File details

Details for the file iflow_mcp_ai4curation_owl_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: iflow_mcp_ai4curation_owl_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for iflow_mcp_ai4curation_owl_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7b3140990276ccf248e5949498b2d4633ba5a5377a3f5a747721edd61d83566
MD5 fcee4e212cb539fa4900605c24fc3da3
BLAKE2b-256 c32fc3839a70199e68fe72aae269a19d8e221130261efb0cee93d636e87aecf1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page