Model Context Protocol Ontology
type: Ontology
description: Ontology for describing Model Context Protocol concepts and relationships
created: 2024-03-01
preferred namespace prefix: mcp
version info: 1.0.0

Server
type: Class
comment: An MCP server implementation

Client
type: Class
comment: An MCP client implementation

Resource
type: Class
comment: A resource accessible via MCP

Tool
type: Class
comment: A tool callable via MCP

Prompt
type: Class
comment: A prompt template provided by an MCP server

Message
type: Class
comment: A message in an MCP conversation

Content
type: Class
comment: Content of an MCP message

Text Content
type: Class
subclass of: Content
comment: Text content in an MCP message

Image Content
type: Class
subclass of: Content
comment: Image content in an MCP message

Role
type: Class
comment: Role of a participant in MCP communication

Capability
type: Class
comment: A capability supported by an MCP implementation

has capability
type: ObjectProperty
domain:
  union of: Server
  union of: Client
range: Capability

provides resource
type: ObjectProperty
domain: Server
range: Resource

provides tool
type: ObjectProperty
domain: Server
range: Tool

provides prompt
type: ObjectProperty
domain: Server
range: Prompt

has content
type: ObjectProperty
domain: Message
range: Content

has role
type: ObjectProperty
domain: Message
range: Role

text
type: DatatypeProperty
domain: Text Content
range: string

image data
type: DatatypeProperty
domain: Image Content
range: base64Binary

MIME type
type: DatatypeProperty
domain:
  union of: Resource
  union of: Image Content
range: string

URI
type: DatatypeProperty
domain: Resource
range: anyURI

name
type: DatatypeProperty
domain:
  union of: Resource
  union of: Tool
  union of: Prompt
range: string

description
type: DatatypeProperty
domain:
  union of: Resource
  union of: Tool
  union of: Prompt
range: string

User
type: Role

Assistant
type: Role

Resources Capability
type: Capability

Tools Capability
type: Capability

Prompts Capability
type: Capability

Sampling Capability
type: Capability