# reltio-ai/reltio-mcp-server architecture

> Architecture diagram of the GitHub repository reltio-ai/reltio-mcp-server, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/reltio-ai/reltio-mcp-server
- Repository: https://github.com/reltio-ai/reltio-mcp-server

## Overview

Reltio MCP Server exposes Reltio entity, matching, relationship, tenant-configuration, activity, user, interaction, lookup, and workflow operations as MCP tools. The principal workflow is an MCP client invoking a registered tool, which validates and handles the request, communicates with the Reltio platform, and returns a result. The server and tool modules are supported by excerpts and the SOURCE INDEX; the README documents the broader tool set and platform integration. Some internal links are omitted where excerpts do not show the call direction.

Main entry points: [`src/server.py`](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/server.py) (Tool registry), [`src/tools/search.py`](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/search.py) (Entity search), [`src/util/api.py`](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/util/api.py) (HTTP and security), [`src/tools/entity.py`](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/entity.py) (Entity operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["MCP entry"]
  node_server["Tool registry<br/>[server.py]"]
end

subgraph group_data["Entity and relationships"]
  node_search["Entity search<br/>[search.py]"]
  node_entity["Entity operations<br/>[entity.py]"]
  node_matching["Entity matching<br/>[match.py]"]
  node_relations["Relations<br/>[relation.py]"]
  node_interactions["Interactions<br/>[interaction.py]"]
end

subgraph group_operations["Tenant operations"]
  node_workflow["Workflow tasks<br/>[workflow.py]"]
  node_tenant["Tenant configuration<br/>[tenant_config.py]"]
  node_activity["Activity events<br/>[activity.py]"]
  node_users["User operations<br/>[user.py]"]
  node_lookups["RDM lookups<br/>[lookup.py]"]
  node_system["Health and capabilities<br/>[system.py]"]
end

subgraph group_shared["Shared services"]
  node_models["Request validation<br/>[models.py]"]
  node_api["HTTP and security<br/>[api.py]"]
  node_auth["Token authentication<br/>[auth.py]"]
  node_activity_log["Activity logging<br/>[activity_log.py]"]
end

node_client(("MCP client"))
node_reltio["Reltio platform"]
node_auth_service["Reltio auth"]

node_client -->|"invokes tools"| node_server
node_server -->|"dispatches search"| node_search
node_server -->|"dispatches entity"| node_entity
node_server -->|"dispatches matching"| node_matching
node_server -->|"dispatches relations"| node_relations
node_server -->|"dispatches interactions"| node_interactions
node_server -->|"dispatches workflow"| node_workflow
node_server -->|"dispatches configuration"| node_tenant
node_server -->|"dispatches activity"| node_activity
node_server -->|"dispatches user tools"| node_users
node_server -->|"dispatches lookups"| node_lookups
node_server -->|"dispatches system tools"| node_system
node_search -->|"validates request"| node_models
node_search -->|"requests search"| node_api
node_search -->|"logs search"| node_activity_log
node_api -->|"refreshes token"| node_auth
node_auth -->|"requests token"| node_auth_service
node_activity_log -->|"posts activity"| node_api
node_search -->|"queries platform"| node_reltio
node_entity -->|"manages records"| node_reltio
node_matching -->|"finds matches"| node_reltio
node_relations -->|"manages relations"| node_reltio
node_interactions -->|"manages interactions"| node_reltio
node_workflow -->|"manages tasks"| node_reltio
node_tenant -->|"reads configuration"| node_reltio
node_activity -->|"retrieves activity"| node_reltio
node_users -->|"retrieves users"| node_reltio
node_lookups -->|"retrieves lookups"| node_reltio
node_system -.->|"checks platform"| node_reltio

click node_server "https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/server.py"
click node_search "https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/search.py"
click node_entity "https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/entity.py"
click node_matching "https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/match.py"
click node_relations "https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/relation.py"
click node_interactions "https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/interaction.py"
click node_workflow "https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/workflow.py"
click node_tenant "https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/tenant_config.py"
click node_activity "https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/activity.py"
click node_users "https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/user.py"
click node_lookups "https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/lookup.py"
click node_system "https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/system.py"
click node_models "https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/util/models.py"
click node_api "https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/util/api.py"
click node_auth "https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/util/auth.py"
click node_activity_log "https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/util/activity_log.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_server,node_client toneBlue
class node_search,node_entity,node_matching,node_relations,node_interactions toneAmber
class node_workflow,node_tenant,node_activity,node_users,node_lookups,node_system toneMint
class node_models,node_api,node_auth,node_activity_log toneRose
class node_reltio,node_auth_service toneIndigo
```

## Components

### MCP entry

- [Tool registry](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/server.py): `src/server.py`

### Entity and relationships

- [Entity search](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/search.py): `src/tools/search.py`
- [Entity operations](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/entity.py): `src/tools/entity.py`
- [Entity matching](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/match.py): `src/tools/match.py`
- [Relations](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/relation.py): `src/tools/relation.py`
- [Interactions](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/interaction.py): `src/tools/interaction.py`

### Tenant operations

- [Workflow tasks](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/workflow.py): `src/tools/workflow.py`
- [Tenant configuration](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/tenant_config.py): `src/tools/tenant_config.py`
- [Activity events](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/activity.py): `src/tools/activity.py`
- [User operations](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/user.py): `src/tools/user.py`
- [RDM lookups](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/lookup.py): `src/tools/lookup.py`
- [Health and capabilities](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/tools/system.py): `src/tools/system.py`

### Shared services

- [Request validation](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/util/models.py): `src/util/models.py`
- [HTTP and security](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/util/api.py): `src/util/api.py`
- [Token authentication](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/util/auth.py): `src/util/auth.py`
- [Activity logging](https://github.com/reltio-ai/reltio-mcp-server/blob/main/src/util/activity_log.py): `src/util/activity_log.py`

### Other components

- **MCP client**
- **Reltio platform**
- **Reltio auth**

## Connections

- MCP client → Tool registry: invokes tools (evidence: `README.md`)
- Tool registry → Entity search: dispatches search (evidence: `src/server.py`)
- Tool registry → Entity operations: dispatches entity (evidence: `src/server.py`)
- Tool registry → Entity matching: dispatches matching (evidence: `src/server.py`)
- Tool registry → Relations: dispatches relations (evidence: `src/server.py`)
- Tool registry → Interactions: dispatches interactions (evidence: `src/server.py`)
- Tool registry → Workflow tasks: dispatches workflow (evidence: `src/server.py`)
- Tool registry → Tenant configuration: dispatches configuration (evidence: `src/server.py`)
- Tool registry → Activity events: dispatches activity (evidence: `src/server.py`)
- Tool registry → User operations: dispatches user tools (evidence: `src/server.py`)
- Tool registry → RDM lookups: dispatches lookups (evidence: `src/server.py`)
- Tool registry → Health and capabilities: dispatches system tools (evidence: `src/server.py`)
- Entity search → Request validation: validates request (evidence: `src/tools/search.py`)
- Entity search → HTTP and security: requests search (evidence: `src/tools/search.py`)
- Entity search → Activity logging: logs search (evidence: `src/tools/search.py`)
- HTTP and security → Token authentication: refreshes token (evidence: `src/util/api.py`)
- Token authentication → Reltio auth: requests token (evidence: `src/util/auth.py`)
- Activity logging → HTTP and security: posts activity (evidence: `src/util/activity_log.py`)
- Entity search → Reltio platform: queries platform (evidence: `README.md`)
- Entity operations → Reltio platform: manages records (evidence: `README.md`)
- Entity matching → Reltio platform: finds matches (evidence: `README.md`)
- Relations → Reltio platform: manages relations (evidence: `README.md`)
- Interactions → Reltio platform: manages interactions (evidence: `README.md`)
- Workflow tasks → Reltio platform: manages tasks (evidence: `README.md`)
- Tenant configuration → Reltio platform: reads configuration (evidence: `README.md`)
- Activity events → Reltio platform: retrieves activity (evidence: `README.md`)
- User operations → Reltio platform: retrieves users (evidence: `README.md`)
- RDM lookups → Reltio platform: retrieves lookups (evidence: `README.md`)
- Health and capabilities → Reltio platform: checks platform
