Skip to main content

MCP server for accessing OntoBoom ontologies via Model Context Protocol

Project description

OntoBoom MCP Server

Access your OntoBoom ontologies directly from Claude Desktop and other MCP-compatible AI assistants via the Model Context Protocol.

Features

  • List Projects & Ontologies - Browse your accessible projects and ontologies
  • Get Ontology Data - Retrieve classes, properties, and full ontology models
  • Export Formats - Export ontologies as Turtle, JSON-LD, RDF/XML, or JSON
  • Search - Search for classes across all your ontologies
  • Secure - Uses your OntoBoom API token for authentication

Installation

Using pip

pip install ontoboom-mcp

Using uvx (recommended for Claude Desktop)

No installation required - uvx runs directly:

uvx ontoboom-mcp

Setup

1. Generate an API Token

  1. Log in to OntoBoom
  2. Click your avatar → API Tokens
  3. Click Generate Token
  4. Enter a name (e.g., "Claude Desktop")
  5. Select the projects you want to access
  6. Copy the token (shown only once!)

2. Configure Claude Desktop

Edit your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the OntoBoom MCP server:

{
  "mcpServers": {
    "ontoboom": {
      "command": "uvx",
      "args": ["ontoboom-mcp"],
      "env": {
        "ONTOBOOM_API_TOKEN": "obt_your_token_here"
      }
    }
  }
}

Alternative using pip installation:

{
  "mcpServers": {
    "ontoboom": {
      "command": "ontoboom-mcp",
      "env": {
        "ONTOBOOM_API_TOKEN": "obt_your_token_here"
      }
    }
  }
}

3. Restart Claude Desktop

Close and reopen Claude Desktop to load the MCP server.

Usage

Once configured, you can ask Claude about your ontologies:

  • "What projects do I have in OntoBoom?"
  • "List the ontologies in my Research project"
  • "What classes are in the Medical Terms ontology?"
  • "Export my Product Catalog ontology as Turtle"
  • "Search for classes related to 'customer' across all my ontologies"

Available Tools

Tool Description
list_projects List all accessible projects
list_ontologies List ontologies in a project
get_ontology Get full ontology metadata and model
get_classes Get all classes from an ontology
get_properties Get object and data properties
export_ontology Export as Turtle, JSON-LD, XML, or JSON
search_classes Search classes across all ontologies

Available Resources

The server also exposes ontologies as MCP resources:

URI Pattern Description
ontoboom://ontology/{id} Full ontology model
ontoboom://ontology/{id}/classes Classes only
ontoboom://ontology/{id}/properties Properties only
ontoboom://ontology/{id}/turtle Turtle export

Environment Variables

Variable Required Description
ONTOBOOM_API_TOKEN Yes Your OntoBoom API token
ONTOBOOM_API_URL No API URL (default: https://api.ontoboom.com)

Development

Local Development

# Clone the repository
git clone https://github.com/bojannyc/ontoboom.git
cd ontoboom/mcp-server

# Create virtual environment
python -m venv venv
source venv/bin/activate  # or `venv\Scripts\activate` on Windows

# Install in development mode
pip install -e .

# Run the server
ONTOBOOM_API_TOKEN=obt_xxx ontoboom-mcp

Testing with MCP Inspector

npx @modelcontextprotocol/inspector uvx ontoboom-mcp

License

MIT License - see LICENSE for details.

Links

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

ontoboom_mcp-0.1.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

ontoboom_mcp-0.1.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file ontoboom_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: ontoboom_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for ontoboom_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9bac56d6e2fb680229622c5453d434c2a261e0103da08a625f32c4ee7a389dae
MD5 1d17f7f2bf5cf674fff5945209998ec3
BLAKE2b-256 7eeb9588d70f1915c6b3bad98a3a531ffeedf1893530d32f700aa2ed6da01a17

See more details on using hashes here.

File details

Details for the file ontoboom_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ontoboom_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.4

File hashes

Hashes for ontoboom_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae16ee32748ce103c34ecb0fa75e5ca7bb448f18d903dc65644a383d33de92b0
MD5 c15deb9c128ed2ec545051195de49653
BLAKE2b-256 0e1f625d86f8be26adc843e9b1e44f8b3660572e9a2f257fd2aac896de4c03d4

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