ClimateTraceKMP

by joreilly

337 stars
414 downloads
Not rated
GitHub

About

Kotlin/Compose Multiplatform project to show climate related emission data from https://climatetrace.org/data.

Details

Author
joreilly
GitHub stars
337
Downloads
414
Categories
Other

- Built with Kotlin Multiplatform and Compose Multiplatform.
- Runs on iOS, Android, Desktop, Web (Wasm), and Kotlin Notebook.
- Exposes MCP tools for per‑country emission data.
- Uses the Kotlin MCP SDK for model context protocol integration.
- Shared emission‑details screen composed in Compose Multiplatform.
- Country list screen can use SwiftUI or Compose on iOS.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name ClimateTraceKMP
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

To use the MCP server with Claude Desktop, run the Gradle shadowJar task to build a fat JAR, then add a configuration entry in Claude Desktop’s Developer Settings (pointing to the built JAR with --stdio). The server provides a tools endpoint that returns per‑country emission data.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "climatetracekmp": {
            "kotlin-peopleinspace": {
                "command": "java",
                "args": [
                    "-jar",
                    "/Users/john.oreilly/github/ClimateTraceKMP/mcp-server/build/libs/serverAll.jar",
                    "--stdio"
                ]
            }
        }
    }
}

McpServers

{
    "kotlin-peopleinspace": {
        "command": "java",
        "args": [
            "-jar",
            "/Users/john.oreilly/github/ClimateTraceKMP/mcp-server/build/libs/serverAll.jar",
            "--stdio"
        ]
    }
}

kotlin-version

Kotlin/Compose Multiplatform project to show climate related emission data from https://climatetrace.org/data.

Running on
iOS (SwiftUI + shared Compose Multiplatform UI)
Android
Desktop
Web (Wasm)
Kotlin Notebook
MCP Server

The iOS client as mentioned includes shared Compose Multiplatform UI code. It also includes option to use either SwiftUI or Compose code for the Country List screen (in both cases selecting a country will navigate to shared Compose emissions details screen).

Screenshot 2024-04-29 at 21 13 54

Related posts:
Kotlin MCP 💜 Kotlin Multiplatform
Initial exploration of using Koog for developing Kotlin based AI agents
Using Google's Agent Development Kit for Java from Kotlin code

Android (Compose)

Screenshot_20260524_101722

iOS (SwiftUI/Compose)

Simulator Screenshot - iPhone 17 Pro - 2026-05-24 at 10 18 46

Compose for Desktop

Screenshot 2026-05-24 at 10 11 18
Screenshot 2026-05-24 at 10 12 37

Compose for Web (Wasm)

Screenshot 2026-05-24 at 10 10 29

Kotlin Notebook

Screenshot 2023-12-14 at 20 33 45

MCP Server

The mcp-server module uses the Kotlin MCP SDK to expose an MCP tools endpoint (returning per country emission data) that
can for example be plugged in to Claude Desktop as shown below. That module uses same KMP shared code.

Screenshot 2025-07-06 at 17 24 20

To integrate the MCP server with Claude Desktop for example you need to firstly run gradle shadowJar task and then select "Edit Config" under Developer Settings and add something
like the following (update with your path)

{
  "mcpServers": {
    "kotlin-peopleinspace": {
      "command": "java",
      "args": [
        "-jar",
        "/Users/john.oreilly/github/ClimateTraceKMP/mcp-server/build/libs/serverAll.jar",
        "--stdio"
      ]
    }
  }
}

Full set of Kotlin Multiplatform/Compose/SwiftUI samples

PeopleInSpace (https://github.com/joreilly/PeopleInSpace)
GalwayBus (https://github.com/joreilly/GalwayBus)
Confetti (https://github.com/joreilly/Confetti)
BikeShare (https://github.com/joreilly/BikeShare)
FantasyPremierLeague (https://github.com/joreilly/FantasyPremierLeague)
ClimateTrace (https://github.com/joreilly/ClimateTraceKMP)
GeminiKMP (https://github.com/joreilly/GeminiKMP)
MortyComposeKMM (https://github.com/joreilly/MortyComposeKMM)
StarWars (https://github.com/joreilly/StarWars)
WordMasterKMP (https://github.com/joreilly/WordMasterKMP)
Chip-8 (https://github.com/joreilly/chip-8)

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.