ClimateTrace KMP

v1.0.0Analyticsstable

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

androidcomposecompose-desktopcompose-ioscompose-multiplatform
Share:
326
Stars
0
Downloads
0
Weekly
0/5

What is ClimateTrace KMP?

ClimateTrace KMP is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to kotlin/compose multiplatform project to show climate related emission data from https://climatetrace.org/data.

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

This server falls under the Analytics category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • Kotlin/Compose Multiplatform project to show climate related

Use Cases

Display climate emission data.
Show sustainability metrics.
Track environmental impact.
joreilly

Maintainer

LicenseApache-2.0
Languagekotlin
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx climatetracekmp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use ClimateTrace KMP

ClimateTraceKMP is a Kotlin Multiplatform project that surfaces per-country greenhouse gas emission data from the ClimateTRACE dataset (climatetrace.org) through a dedicated MCP server module built with the Kotlin MCP SDK. The mcp-server submodule compiles to a shadow JAR and exposes MCP tools that return structured country-level emissions data, making it usable from Claude Desktop and other MCP-compatible AI clients for environmental analysis and sustainability research. Developers and researchers use it to ask natural language questions about national carbon footprints, compare emissions across countries, and build Kotlin Multiplatform applications targeting Android, iOS, desktop, and web from a single shared codebase.

Prerequisites

  • Java runtime (JDK 17 or higher) for executing the shadow JAR
  • Gradle build tool for compiling the mcp-server module
  • Claude Desktop or another MCP-compatible client
  • Git to clone the repository
1

Clone the repository

Download the ClimateTraceKMP source code from GitHub. The repository includes both the multiplatform UI apps and the mcp-server module.

git clone https://github.com/joreilly/ClimateTraceKMP.git
cd ClimateTraceKMP
2

Build the MCP server shadow JAR

Run the Gradle shadowJar task to produce a self-contained executable JAR in the mcp-server build output directory. This bundles all dependencies including the Kotlin MCP SDK.

gradle shadowJar
3

Verify the JAR was created

Confirm the output JAR exists at the expected path before configuring your MCP client.

ls mcp-server/build/libs/serverAll.jar
4

Configure Claude Desktop

Add the ClimateTraceKMP MCP server to your claude_desktop_config.json. The --stdio flag enables standard input/output MCP transport. Update the path to match your local clone location.

{
  "mcpServers": {
    "climatetrace": {
      "command": "java",
      "args": [
        "-jar",
        "/path/to/ClimateTraceKMP/mcp-server/build/libs/serverAll.jar",
        "--stdio"
      ]
    }
  }
}
5

Restart Claude Desktop and query emissions data

Reload Claude Desktop. The climatetrace server should appear in the MCP panel. The server exposes tools that return per-country emission data sourced from the ClimateTRACE API at climatetrace.org.

ClimateTrace KMP Examples

Client configuration

Claude Desktop config that runs the compiled ClimateTraceKMP shadow JAR via Java in stdio mode.

{
  "mcpServers": {
    "climatetrace": {
      "command": "java",
      "args": [
        "-jar",
        "/Users/yourname/ClimateTraceKMP/mcp-server/build/libs/serverAll.jar",
        "--stdio"
      ]
    }
  }
}

Prompts to try

Example prompts for querying ClimateTRACE emissions data through the MCP server.

- "What are the total greenhouse gas emissions for Germany?"
- "Compare CO2 emissions between the United States, China, and India."
- "Which countries have the highest per-capita emissions according to ClimateTRACE?"
- "Show me emission data for Brazil and break it down by sector if available."
- "List the top 10 emitting countries ranked by total greenhouse gas output."

Troubleshooting ClimateTrace KMP

gradle shadowJar fails with 'task not found'

Ensure you are running the command from the repository root. Try ./gradlew :mcp-server:shadowJar to target the specific submodule. If Gradle is not installed, use the wrapper: ./gradlew instead of gradle.

java.io.FileNotFoundException when Claude Desktop tries to start the server

Double-check the absolute path in your claude_desktop_config.json. The serverAll.jar name may differ between builds — run ls mcp-server/build/libs/ to see the exact filename and update the config accordingly.

MCP tools return empty or stale data

The server fetches data from climatetrace.org at runtime. Confirm you have internet access. If the ClimateTRACE API has changed endpoints, rebuild the JAR from the latest main branch to pick up any SDK or URL updates.

Frequently Asked Questions about ClimateTrace KMP

What is ClimateTrace KMP?

ClimateTrace KMP is a Model Context Protocol (MCP) server that kotlin/compose multiplatform project to show climate related emission data from https://climatetrace.org/data. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install ClimateTrace KMP?

Follow the installation instructions on the ClimateTrace KMP GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with ClimateTrace KMP?

ClimateTrace KMP works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is ClimateTrace KMP free to use?

Yes, ClimateTrace KMP is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Analytics MCP Servers

Explore all analytics servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "climatetracekmp": { "command": "npx", "args": ["-y", "climatetracekmp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use ClimateTrace KMP?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides