Skip to main content
Glama
Business Ontology MCP

Business Ontology MCP

by muh-haris

business-ontology-mcp

Open-source business ontology semantic layer with knowledge graph adapters and MCP integration for AI agents.

Business Ontology MCP

An open-source Python semantic layer for defining business concepts, building knowledge graphs, and exposing graph queries to AI agents through MCP.

Planned Components

  • YAML ontology definitions

  • Pydantic schema validation

  • NetworkX graph prototype

  • Omnigraph graph adapter

  • MCP tools and resources

  • Automated tests

Related MCP server: agentic-ops-builder

Architecture

See Architecture Design.

References

Status

ONT-01: Architecture and reference analysis. Implementation begins in ONT-02.

ONT-02

Business Ontology Schema

The initial ontology is defined in ontology/business.yaml.

It contains four entity types:

  • Customer

  • Product

  • Order

  • Invoice

Relationships:

  • Customer PLACES Order

  • Order CONTAINS Product

  • Order HAS_INVOICE Invoice

It also declares a paid-invoice amount metric grouped by currency.

Installation

Create and activate a Python virtual environment, then run:

python -m pip install -r requirements.txt

Load the ontology

python -m src.schema

Run tests

python -m pytest -v

Current scope

ONT-02 provides typed ontology definitions, YAML loading, structural validation and basic reference checking.

Full business-record validation and graph construction are implemented in later tasks.

ONT-03

Business Record Validation

The ontology validator checks business records and relationships against the declared schema.

Supported checks:

  • Required and unknown properties

  • Property data types

  • Unique entity identifiers

  • Referential integrity

  • Relationship cardinality

  • Duplicate relationships

Run demonstration

python check_validation.py

Test invalid data

python check_validation.py --invalid

Run automated tests

python -m pytest -v

For implementation details, see: docs/ont03-record-validation.md

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Turns warehouse/lakehouse tables into a governed entity-relationship knowledge graph exposed through MCP, enabling AI agents to answer multi-table business questions without hard-coded SQL or large schema prompts.
      Apache 2.0
    • A
      license
      Not graded
      quality
      A
      maintenance
      Enables natural language querying of SQL databases and REST APIs through the MCP protocol, grounded in a semantic layer.
      1
      AGPL 3.0
    • F
      license
      A
      quality
      C
      maintenance
      Enables AI agents to discover and query enterprise knowledge documents and business metrics through standardized MCP tools, supporting retrieval, structured sales/order analysis, anomaly scanning, and data lineage lookups.
      12
      -