# marc-shade/world-intel-mcp architecture

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

- Interactive diagram: https://gitdiagram.com/marc-shade/world-intel-mcp
- Repository: https://github.com/marc-shade/world-intel-mcp

## Overview

World Intelligence MCP Server gathers public data across 30+ domains and exposes intelligence through MCP, CLI, dashboard, and reports. The principal workflow is an agent request routed through MCP tools to source fetchers, then into domain analysis and a response; the collector separately populates historical vector search. The README documents the shared fetcher, cache, and circuit-breaker layer. Several subsystem links below rely on README architecture or SOURCE INDEX references; unsampled implementation details are not inferred.

Main entry points: [`src/world_intel_mcp/tools`](https://github.com/marc-shade/world-intel-mcp/tree/main/src/world_intel_mcp/tools) (MCP tool domains), [`src/world_intel_mcp/fetcher.py`](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/fetcher.py) (HTTP fetcher), [`src/world_intel_mcp/dashboard/app.py`](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/dashboard/app.py) (Live dashboard), [`src/world_intel_mcp/sources/conflict.py`](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/conflict.py) (Conflict data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User interfaces"]
  node_mcp["MCP server<br/>[server.py]"]
  node_cli["CLI<br/>[cli.py]"]
  node_dashboard["Live dashboard<br/>[app.py]"]
  node_tools["MCP tool domains"]
end

subgraph group_domain["Intelligence domains"]
  node_conflict["Conflict data<br/>[conflict.py]"]
  node_military["Military tracking<br/>[military.py]"]
  node_infrastructure["Infrastructure data<br/>[infrastructure.py]"]
  node_news["News aggregation<br/>[news.py]"]
  node_markets["Market data<br/>[markets.py]"]
  node_aviation["Aviation data<br/>[aviation.py]"]
  node_displacement["Displacement data<br/>[displacement.py]"]
  node_cyber["Cyber threats<br/>[cyber.py]"]
  node_spaceweather["Space weather<br/>[space_weather.py]"]
  node_wildfire["Wildfire data<br/>[wildfire.py]"]
end

subgraph group_analysis["Analysis and outputs"]
  node_reports["Intelligence reports<br/>[reports.py]"]
  node_intelligence["Country intelligence<br/>[intelligence.py]"]
  node_aoi["AOI geofences<br/>[aoi.py]"]
  node_situation["Situation brief<br/>[situation.py]"]
end

subgraph group_runtime["Collection and runtime"]
  node_fetcher["HTTP fetcher<br/>[fetcher.py]"]
  node_collector["Source collector<br/>[collector.py]"]
  node_breaker["Circuit breaker<br/>[circuit_breaker.py]"]
end

subgraph group_state["State and search"]
  node_cache[("TTL cache<br/>[cache.py]")]
  node_vector[("Vector search<br/>[vector_store.py]")]
end

node_agent(("AI agent"))
node_operator(("Operator"))

node_agent -->|"requests tools"| node_mcp
node_operator -->|"runs commands"| node_cli
node_operator -->|"opens dashboard"| node_dashboard
node_mcp -->|"routes requests"| node_tools
node_tools -->|"fetches conflict"| node_conflict
node_tools -->|"fetches threats"| node_cyber
node_tools -->|"fetches flows"| node_displacement
node_tools -->|"fetches status"| node_infrastructure
node_tools -->|"fetches aircraft"| node_military
node_tools -->|"fetches aviation"| node_aviation
node_cli -->|"fetches markets"| node_markets
node_dashboard -->|"fetches markets"| node_markets
node_dashboard -->|"reads geofences"| node_aoi
node_tools -->|"manages areas"| node_aoi
node_tools -->|"builds brief"| node_situation
node_reports -->|"fetches markets"| node_markets
node_reports -->|"fetches posture"| node_intelligence
node_conflict -->|"requests data"| node_fetcher
node_infrastructure -->|"requests data"| node_fetcher
node_news -->|"requests feeds"| node_fetcher
node_military -->|"requests data"| node_fetcher
node_intelligence -->|"queries events"| node_conflict
node_fetcher -->|"reads and writes"| node_cache
node_fetcher -->|"checks availability"| node_breaker
node_collector -->|"collects sources"| node_fetcher
node_collector -->|"populates index"| node_vector
node_fetcher -->|"stores fresh results"| node_vector

click node_mcp "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/server.py"
click node_cli "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/cli.py"
click node_dashboard "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/dashboard/app.py"
click node_reports "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/reports.py"
click node_tools "https://github.com/marc-shade/world-intel-mcp/tree/main/src/world_intel_mcp/tools"
click node_conflict "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/conflict.py"
click node_military "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/military.py"
click node_infrastructure "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/infrastructure.py"
click node_news "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/news.py"
click node_markets "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/markets.py"
click node_aviation "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/aviation.py"
click node_displacement "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/displacement.py"
click node_cyber "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/cyber.py"
click node_spaceweather "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/space_weather.py"
click node_wildfire "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/wildfire.py"
click node_intelligence "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/intelligence.py"
click node_aoi "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/analysis/aoi.py"
click node_situation "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/analysis/situation.py"
click node_fetcher "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/fetcher.py"
click node_collector "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/collector.py"
click node_cache "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/cache.py"
click node_breaker "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/circuit_breaker.py"
click node_vector "https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/vector_store.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_mcp,node_cli,node_dashboard,node_tools toneBlue
class node_conflict,node_military,node_infrastructure,node_news,node_markets,node_aviation,node_displacement,node_cyber,node_spaceweather,node_wildfire toneAmber
class node_reports,node_intelligence,node_aoi,node_situation toneMint
class node_fetcher,node_collector,node_breaker toneRose
class node_cache,node_vector,node_agent,node_operator toneIndigo
```

## Components

### User interfaces

- [MCP server](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/server.py): `src/world_intel_mcp/server.py`
- [CLI](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/cli.py): `src/world_intel_mcp/cli.py`
- [Live dashboard](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/dashboard/app.py): `src/world_intel_mcp/dashboard/app.py`
- [MCP tool domains](https://github.com/marc-shade/world-intel-mcp/tree/main/src/world_intel_mcp/tools): `src/world_intel_mcp/tools`

### Intelligence domains

- [Conflict data](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/conflict.py): `src/world_intel_mcp/sources/conflict.py`
- [Military tracking](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/military.py): `src/world_intel_mcp/sources/military.py`
- [Infrastructure data](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/infrastructure.py): `src/world_intel_mcp/sources/infrastructure.py`
- [News aggregation](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/news.py): `src/world_intel_mcp/sources/news.py`
- [Market data](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/markets.py): `src/world_intel_mcp/sources/markets.py`
- [Aviation data](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/aviation.py): `src/world_intel_mcp/sources/aviation.py`
- [Displacement data](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/displacement.py): `src/world_intel_mcp/sources/displacement.py`
- [Cyber threats](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/cyber.py): `src/world_intel_mcp/sources/cyber.py`
- [Space weather](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/space_weather.py): `src/world_intel_mcp/sources/space_weather.py`
- [Wildfire data](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/wildfire.py): `src/world_intel_mcp/sources/wildfire.py`

### Analysis and outputs

- [Intelligence reports](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/reports.py): `src/world_intel_mcp/reports.py`
- [Country intelligence](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/sources/intelligence.py): `src/world_intel_mcp/sources/intelligence.py`
- [AOI geofences](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/analysis/aoi.py): `src/world_intel_mcp/analysis/aoi.py`
- [Situation brief](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/analysis/situation.py): `src/world_intel_mcp/analysis/situation.py`

### Collection and runtime

- [HTTP fetcher](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/fetcher.py): `src/world_intel_mcp/fetcher.py`
- [Source collector](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/collector.py): `src/world_intel_mcp/collector.py`
- [Circuit breaker](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/circuit_breaker.py): `src/world_intel_mcp/circuit_breaker.py`

### State and search

- [TTL cache](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/cache.py): `src/world_intel_mcp/cache.py`
- [Vector search](https://github.com/marc-shade/world-intel-mcp/blob/main/src/world_intel_mcp/vector_store.py): `src/world_intel_mcp/vector_store.py`

### Other components

- **AI agent**
- **Operator**

## Connections

- AI agent → MCP server: requests tools
- Operator → CLI: runs commands
- Operator → Live dashboard: opens dashboard
- MCP server → MCP tool domains: routes requests (evidence: `src/world_intel_mcp/server.py`)
- MCP tool domains → Conflict data: fetches conflict (evidence: `src/world_intel_mcp/tools/society.py`)
- MCP tool domains → Cyber threats: fetches threats (evidence: `src/world_intel_mcp/tools/society.py`)
- MCP tool domains → Displacement data: fetches flows (evidence: `src/world_intel_mcp/tools/society.py`)
- MCP tool domains → Infrastructure data: fetches status (evidence: `src/world_intel_mcp/tools/infrastructure.py`)
- MCP tool domains → Military tracking: fetches aircraft (evidence: `src/world_intel_mcp/tools/infrastructure.py`)
- MCP tool domains → Aviation data: fetches aviation (evidence: `src/world_intel_mcp/tools/infrastructure.py`)
- CLI → Market data: fetches markets (evidence: `src/world_intel_mcp/cli.py`)
- Live dashboard → Market data: fetches markets (evidence: `src/world_intel_mcp/dashboard/app.py`)
- Live dashboard → AOI geofences: reads geofences (evidence: `src/world_intel_mcp/dashboard/app.py`)
- MCP tool domains → AOI geofences: manages areas (evidence: `src/world_intel_mcp/tools/aoi.py`)
- MCP tool domains → Situation brief: builds brief (evidence: `src/world_intel_mcp/tools/aoi.py`)
- Intelligence reports → Market data: fetches markets (evidence: `src/world_intel_mcp/reports.py`)
- Intelligence reports → Country intelligence: fetches posture (evidence: `src/world_intel_mcp/reports.py`)
- Conflict data → HTTP fetcher: requests data (evidence: `src/world_intel_mcp/sources/conflict.py`)
- Infrastructure data → HTTP fetcher: requests data (evidence: `src/world_intel_mcp/sources/infrastructure.py`)
- News aggregation → HTTP fetcher: requests feeds (evidence: `src/world_intel_mcp/sources/news.py`)
- Military tracking → HTTP fetcher: requests data (evidence: `src/world_intel_mcp/sources/military.py`)
- Country intelligence → Conflict data: queries events (evidence: `src/world_intel_mcp/sources/intelligence.py`)
- HTTP fetcher → TTL cache: reads and writes (evidence: `src/world_intel_mcp/fetcher.py`)
- HTTP fetcher → Circuit breaker: checks availability (evidence: `src/world_intel_mcp/fetcher.py`)
- Source collector → HTTP fetcher: collects sources (evidence: `src/world_intel_mcp/collector.py`)
- Source collector → Vector search: populates index (evidence: `src/world_intel_mcp/collector.py`)
- HTTP fetcher → Vector search: stores fresh results
