ontoloji-mcp
<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="./assets/hero-dark.png">
<source media="(prefers-color-scheme: light)" srcset="./assets/hero-light.png">
<img alt="ontoloji-mcp — Enterprise AI Ontology & MCP Reference Server" src="./assets/hero-dark.png" width="100%">
</picture>
</p>
<p align="center">
<a href="https://glama.ai/mcp/connectors/org.ontoloji/ontology-reference"><img src="https://glama.ai/mcp/connectors/org.ontoloji/ontology-reference/badges/score.svg" alt="Glama MCP Score"></a>
<a href="https://registry.modelcontextprotocol.io/v0/servers?search=ontoloji"><img src="https://img.shields.io/badge/MCP_Registry-org.ontoloji%2Fontology--reference-141414" alt="Official MCP Registry"></a>
<a href="https://github.com/naditu-org/ontoloji-mcp/actions/workflows/ci.yml"><img src="https://github.com/naditu-org/ontoloji-mcp/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
<a href="./LICENSE"><img src="https://img.shields.io/badge/Code-MIT-16a34a" alt="License: MIT"></a>
<a href="https://ontoloji.org/en"><img src="https://img.shields.io/badge/Corpus-CC_BY_4.0-ea580c" alt="Reference Corpus: CC BY 4.0"></a>
</p>
Zero-dependency **Model Context Protocol (MCP)** server for **[Ontoloji.org](https://ontoloji.org/en)** — the open, bilingual (English & Turkish) CC BY 4.0 **Enterprise AI Ontology Reference** covering **20 `DefinedTerm` glossary specifications** and **26 ERP, CRM, MES, SQL chasm-trap, and MCP governance architecture guides**.
---
## Architecture & Dual-Transport Topology
<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="./assets/architecture-dark.svg">
<source media="(prefers-color-scheme: light)" srcset="./assets/architecture-light.svg">
<img alt="ontoloji-mcp dual-transport architecture diagram" src="./assets/architecture-dark.svg" width="100%">
</picture>
</p>
1. **Zero-Install Remote Streamable HTTP (`https://ontoloji.org/mcp`)** — Connect any Streamable-HTTP MCP host directly with zero API keys, zero registration, and stateless read-only execution.
2. **Local `stdio` or Docker MCP Server (`npx -y github:naditu-org/ontoloji-mcp`)** — Embeds static `initialize`, `tools/list`, and `resources/list` schemas for instant offline startup and container inspection while proxying live corpus queries upstream.
### Live Query Preview
<p align="center">
<img alt="ontoloji-mcp terminal search_ontology_reference preview" src="./assets/demo-terminal.svg" width="100%">
</p>
---
## Quickstart
Ready-to-copy client config files are also provided in [`./examples/`](./examples/).
### Option A — Remote Streamable HTTP (Zero Install)
**Claude Code**
```bash
claude mcp add --transport http ontoloji https://ontoloji.org/mcp
```
**Cursor / VS Code / MCP Clients ([`examples/cursor_mcp.json`](./examples/cursor_mcp.json))**
```json
{
"mcpServers": {
"ontoloji": {
"url": "https://ontoloji.org/mcp"
}
}
}
```
### Option B — Local `stdio` Package (`npx` / Node.js `>=20`)
For desktop clients that require `stdio` transport (such as Claude Desktop — see [`examples/claude_desktop_config.json`](./examples/claude_desktop_config.json)):
```json
{
"mcpServers": {
"ontoloji": {
"command": "npx",
"args": ["-y", "github:naditu-org/ontoloji-mcp"]
}
}
}
```
**Claude Code (`stdio`)**
```bash
claude mcp add ontoloji -- npx -y github:naditu-org/ontoloji-mcp
```
### Option C — Docker ([`examples/docker-compose.yml`](./examples/docker-compose.yml))
```bash
docker build -t ontoloji-mcp .
docker run -i --rm ontoloji-mcp
```
---
## Available MCP Tools (Read-Only)
All tools carry strict MCP safety annotations (`readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`).
| Tool | Description | Inputs |
| :--- | :--- | :--- |
| `search_ontology_reference` | Full-text search across all English and Turkish glossary definitions (`20×2`) and architecture guides (`26×2`), including ERP failure modes, SQL chasm-trap patterns, and comparison tables. | `query` *(required)*, `locale` (`"en"` \| `"tr"` \| `"all"`), `limit` (`1–25`, default `8`) |
| `get_glossary_term` | Fetches the complete specification for any of the 20 Enterprise AI Ontology & MCP glossary terms, including formal definitions, SQL/ERP failure modes without an ontology, and executable ontology contract solutions. | `slug` *(required)*, `locale` (`"en"` \| `"tr"`) |
| `get_architecture_guide` | Returns the complete Markdown text of any of the 26 architecture guides, including executive takeaways, GFM comparison tables, topologies, and technical FAQs. | `slug` *(required)*, `locale` (`"en"` \| `"tr"`) |
| `list_ontology_catalog` | Lists all 20 glossary slugs and all 26 architecture guide slugs with one-line summaries and canonical URLs. | `locale` (`"en"` \| `"tr"`, default `"en"`) |
---
## Available MCP Resources (`ontoloji://`)
| Resource URI | MIME Type | Contents |
| :--- | :--- | :--- |
| `ontoloji://llms/en` | `text/markdown` | Structured English index (`/en/llms.txt`) of core pillars, 26 guides, and 20 glossary terms. |
| `ontoloji://llms/tr` | `text/markdown` | Structured Turkish index (`/llms.txt`) of core pillars, 26 guides, and 20 glossary terms. |
| `ontoloji://glossary/en` | `text/markdown` | Complete English corpus of all 20 `DefinedTerm` entries with ERP failure modes. |
| `ontoloji://glossary/tr` | `text/markdown` | Complete Turkish corpus of all 20 `DefinedTerm` entries (`Kurumsal İş Ontolojisi Sözlüğü`). |
| `ontoloji://guides/en` | `text/markdown` | Complete English corpus of all 26 Enterprise AI Ontology & MCP architecture guides. |
| `ontoloji://guides/tr` | `text/markdown` | Complete Turkish corpus of all 26 Enterprise AI Ontology & MCP architecture guides. |
---
## Glama MCP Directory & Inspector
`ontoloji-mcp` (`org.ontoloji/ontology-reference`) is verified on Glama with a **Grade A** quality and security score:
- **Glama Connector Page**: [https://glama.ai/mcp/connectors/org.ontoloji/ontology-reference](https://glama.ai/mcp/connectors/org.ontoloji/ontology-reference)
- **Test Live in Browser**: Open the [Glama MCP Inspector](https://glama.ai/mcp/inspector) and connect to `https://ontoloji.org/mcp` to inspect tool schemas and run live queries interactively.
---
## Configuration & CLI Flags
| Flag / Env Var | Default | Description |
| :--- | :--- | :--- |
| *(default)* | `stdio` | Runs JSON-RPC 2.0 MCP server over `stdin`/`stdout`. |
| `--http` | `false` | Starts local Streamable-HTTP MCP server on `127.0.0.1:3100/mcp`. |
| `--port` / `PORT` | `3100` | Port used when `--http` is enabled. |
| `--url` / `ONTOLOJI_MCP_URL` | `https://ontoloji.org/mcp` | Upstream Ontoloji.org Streamable-HTTP endpoint for live corpus queries. |
| `ONTOLOJI_MCP_TIMEOUT_MS` | `15000` | Upstream HTTP request timeout in milliseconds. |
---
## Architecture Context & Maintainer
- **Open Reference Corpus (CC BY 4.0)**: [Ontoloji.org](https://ontoloji.org/en) — vendor-neutral definitions and reference patterns for enterprise business ontologies, deterministic semantic joins across ERP/CRM/MES schemas (`SAP S/4HANA`, `Logo Tiger`, `Netsis`, `Mikro`, `Oracle NetSuite`, `Dynamics 365`), and MCP governance.
- **Production Runtime Architecture**: Maintained by the engineering team at **[Naditu](https://naditu.com/ontology)** — see the [Naditu MCP Tools & Policy Reference](https://naditu.com/docs/mcp-tools), [Connectors Architecture](https://naditu.com/connectors), and [MCP Gateway vs. Enterprise AI Ontology Guide](https://ontoloji.org/en/guides/mcp-gateway-vs-enterprise-ai-ontology-architecture).
---
## Development, Security & License
- **Tests**: `npm test` (Node.js `>=20.0.0`, zero external npm packages)
- **Contributing**: See [CONTRIBUTING.md](./CONTRIBUTING.md)
- **Security Policy**: See [SECURITY.md](./SECURITY.md)
- **Server Code License**: **MIT License** ([LICENSE](./LICENSE))
- **Reference Corpus License**: **Creative Commons Attribution 4.0 International (CC BY 4.0)** ([Ontoloji.org](https://ontoloji.org/en))
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: full-text search across all content, catalog browsing, and targeted retrieval for each of the two content types (glossary terms vs. architecture guides). The search vs. list distinction is well articulated (query-driven ranking vs. complete slug enumeration), so an agent can pick correctly.
All four tools follow a consistent verb_noun pattern (search_ontology_reference, get_glossary_term, get_architecture_guide, list_ontology_catalog) with no camelCase or style mixing. The resource portion of each name maps cleanly to the content model.
Four tools is exactly right for a read-only reference server: discovery (search, list) plus retrieval per content type. No tool feels redundant or missing an obvious sibling.
The surface covers the full read lifecycle for the domain: browse the catalog, search everything, and fetch the complete record for either glossary terms or guides. For a static content reference site there are no obvious dead ends (no writes are needed).