# iamchameli/model-context-protocol-ogc-apis architecture

> Architecture diagram of the GitHub repository iamchameli/model-context-protocol-ogc-apis, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/iamchameli/model-context-protocol-ogc-apis
- Repository: https://github.com/iamchameli/model-context-protocol-ogc-apis

## Overview

This repository contains four standalone Python MCP servers for OGC API Features, Maps, Tiles, and Processes. The principal workflow is an MCP host invoking a server tool, which queries a remote OGC endpoint and returns a human-readable result. The domain branches cover feature discovery and querying, map retrieval, tile metadata and retrieval, and process execution and job management. Evidence is limited to the supplied source excerpts and top-level README; some capabilities are documented in source comments or tool descriptions, but unsampled implementation details are not inferred.

Main entry points: [`ogc-features-server-python/ogc_features.py`](https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-features-server-python/ogc_features.py) (Collections), [`ogc-maps-server-python/ogc_maps.py`](https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-maps-server-python/ogc_maps.py) (Map retrieval), [`ogc-tiles-server-python/ogc_tiles.py`](https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-tiles-server-python/ogc_tiles.py) (Tile discovery), [`ogc-processes-server-python/ogc_processes.py`](https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-processes-server-python/ogc_processes.py) (Process discovery)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_features["Features server"]
  node_features_api["Feature tools<br/>[ogc_features.py]"]
  node_feature_catalog["Collections<br/>[ogc_features.py]"]
  node_feature_data["Feature queries<br/>[ogc_features.py]"]
  node_feature_schema["Queryables and API<br/>[ogc_features.py]"]
end

subgraph group_maps["Maps server"]
  node_maps_api["Map tools<br/>[ogc_maps.py]"]
  node_map_output["Map retrieval<br/>[ogc_maps.py]"]
  node_map_catalog["Map tilesets<br/>[ogc_maps.py]"]
end

subgraph group_tiles["Tiles server"]
  node_tiles_api["Tile tools<br/>[ogc_tiles.py]"]
  node_tile_catalog["Tile discovery<br/>[ogc_tiles.py]"]
  node_tile_metadata["Tileset metadata<br/>[ogc_tiles.py]"]
  node_tile_fetch["Tile retrieval<br/>[ogc_tiles.py]"]
end

subgraph group_processes["Processes server"]
  node_process_api["Process tools<br/>[ogc_processes.py]"]
  node_process_catalog["Process discovery<br/>[ogc_processes.py]"]
  node_process_run["Process execution<br/>[ogc_processes.py]"]
  node_job_lifecycle["Job lifecycle<br/>[ogc_processes.py]"]
end

node_host(("MCP host"))
node_ogc_endpoint["OGC endpoint"]

node_host -->|"invokes tools"| node_features_api
node_host -->|"invokes tools"| node_maps_api
node_host -->|"invokes tools"| node_tiles_api
node_host -->|"invokes tools"| node_process_api
node_feature_catalog -->|"fetches collections"| node_ogc_endpoint
node_feature_data -->|"queries features"| node_ogc_endpoint
node_feature_schema -->|"fetches schemas"| node_ogc_endpoint
node_map_output -->|"retrieves maps"| node_ogc_endpoint
node_map_catalog -->|"lists tilesets"| node_ogc_endpoint
node_tile_catalog -->|"fetches catalogs"| node_ogc_endpoint
node_tile_metadata -->|"fetches metadata"| node_ogc_endpoint
node_tile_fetch -->|"retrieves tiles"| node_ogc_endpoint
node_process_catalog -->|"lists processes"| node_ogc_endpoint
node_process_run -->|"executes processes"| node_ogc_endpoint
node_job_lifecycle -->|"manages jobs"| node_ogc_endpoint

click node_features_api "https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-features-server-python/ogc_features.py"
click node_feature_catalog "https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-features-server-python/ogc_features.py"
click node_feature_data "https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-features-server-python/ogc_features.py"
click node_feature_schema "https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-features-server-python/ogc_features.py"
click node_maps_api "https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-maps-server-python/ogc_maps.py"
click node_map_output "https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-maps-server-python/ogc_maps.py"
click node_map_catalog "https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-maps-server-python/ogc_maps.py"
click node_tiles_api "https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-tiles-server-python/ogc_tiles.py"
click node_tile_catalog "https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-tiles-server-python/ogc_tiles.py"
click node_tile_metadata "https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-tiles-server-python/ogc_tiles.py"
click node_tile_fetch "https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-tiles-server-python/ogc_tiles.py"
click node_process_api "https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-processes-server-python/ogc_processes.py"
click node_process_catalog "https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-processes-server-python/ogc_processes.py"
click node_process_run "https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-processes-server-python/ogc_processes.py"
click node_job_lifecycle "https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-processes-server-python/ogc_processes.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_features_api,node_feature_catalog,node_feature_data,node_feature_schema toneBlue
class node_maps_api,node_map_output,node_map_catalog toneAmber
class node_tiles_api,node_tile_catalog,node_tile_metadata,node_tile_fetch toneMint
class node_process_api,node_process_catalog,node_process_run,node_job_lifecycle toneRose
class node_host,node_ogc_endpoint toneIndigo
```

## Components

### Features server

- [Feature tools](https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-features-server-python/ogc_features.py): `ogc-features-server-python/ogc_features.py`
- [Collections](https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-features-server-python/ogc_features.py): `ogc-features-server-python/ogc_features.py`
- [Feature queries](https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-features-server-python/ogc_features.py): `ogc-features-server-python/ogc_features.py`
- [Queryables and API](https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-features-server-python/ogc_features.py): `ogc-features-server-python/ogc_features.py`

### Maps server

- [Map tools](https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-maps-server-python/ogc_maps.py): `ogc-maps-server-python/ogc_maps.py`
- [Map retrieval](https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-maps-server-python/ogc_maps.py): `ogc-maps-server-python/ogc_maps.py`
- [Map tilesets](https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-maps-server-python/ogc_maps.py): `ogc-maps-server-python/ogc_maps.py`

### Tiles server

- [Tile tools](https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-tiles-server-python/ogc_tiles.py): `ogc-tiles-server-python/ogc_tiles.py`
- [Tile discovery](https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-tiles-server-python/ogc_tiles.py): `ogc-tiles-server-python/ogc_tiles.py`
- [Tileset metadata](https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-tiles-server-python/ogc_tiles.py): `ogc-tiles-server-python/ogc_tiles.py`
- [Tile retrieval](https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-tiles-server-python/ogc_tiles.py): `ogc-tiles-server-python/ogc_tiles.py`

### Processes server

- [Process tools](https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-processes-server-python/ogc_processes.py): `ogc-processes-server-python/ogc_processes.py`
- [Process discovery](https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-processes-server-python/ogc_processes.py): `ogc-processes-server-python/ogc_processes.py`
- [Process execution](https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-processes-server-python/ogc_processes.py): `ogc-processes-server-python/ogc_processes.py`
- [Job lifecycle](https://github.com/iamchameli/model-context-protocol-ogc-apis/blob/main/ogc-processes-server-python/ogc_processes.py): `ogc-processes-server-python/ogc_processes.py`

### Other components

- **MCP host**
- **OGC endpoint**

## Connections

- MCP host → Feature tools: invokes tools (evidence: `ogc-features-server-python/ogc_features.py`)
- MCP host → Map tools: invokes tools (evidence: `ogc-maps-server-python/ogc_maps.py`)
- MCP host → Tile tools: invokes tools (evidence: `ogc-tiles-server-python/ogc_tiles.py`)
- MCP host → Process tools: invokes tools (evidence: `ogc-processes-server-python/ogc_processes.py`)
- Collections → OGC endpoint: fetches collections (evidence: `ogc-features-server-python/ogc_features.py`)
- Feature queries → OGC endpoint: queries features (evidence: `ogc-features-server-python/ogc_features.py`)
- Queryables and API → OGC endpoint: fetches schemas (evidence: `ogc-features-server-python/ogc_features.py`)
- Map retrieval → OGC endpoint: retrieves maps (evidence: `ogc-maps-server-python/ogc_maps.py`)
- Map tilesets → OGC endpoint: lists tilesets (evidence: `ogc-maps-server-python/ogc_maps.py`)
- Tile discovery → OGC endpoint: fetches catalogs (evidence: `ogc-tiles-server-python/ogc_tiles.py`)
- Tileset metadata → OGC endpoint: fetches metadata (evidence: `ogc-tiles-server-python/ogc_tiles.py`)
- Tile retrieval → OGC endpoint: retrieves tiles (evidence: `ogc-tiles-server-python/ogc_tiles.py`)
- Process discovery → OGC endpoint: lists processes (evidence: `ogc-processes-server-python/ogc_processes.py`)
- Process execution → OGC endpoint: executes processes (evidence: `ogc-processes-server-python/ogc_processes.py`)
- Job lifecycle → OGC endpoint: manages jobs (evidence: `ogc-processes-server-python/ogc_processes.py`)
