# droidmap

> droidmap is an MCP server for developer tools. Android project graph for change impact and Room, Hilt, Koin and Gradle checks. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, Self-hosted, Linux, macOS, Windows
- **Repository:** https://github.com/hussainshirazi/droidmap
- **MCP Registry name:** io.github.hussainshirazi/droidmap
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-14

## About

Generic code graphs see classes and calls, but miss Android wiring. droidmap reads Gradle files, Room databases, Navigation graphs, Hilt and Koin bindings and the manifest, in Kotlin and Java, and builds a graph from source alone. It never runs Gradle, never compiles your code and sends nothing anywhere.

Its rules catch problems such as a Room database version with no migration to the next one, an entity that gained a column without a version bump, a migration test whose name does not match the path it runs, a `navigate` call to a route no `NavHost` registers, and a ViewModel that injects a repository nothing binds. The README demonstrates it on the Now in Android sample app (35 modules) and reports about 1.5 seconds per run.

Beyond MCP, there is a command line (`check`, `impact`, `diff`, `report`), a GitHub Action that comments on each pull request with what the change touches, a Gradle plugin from version 0.3.0, and a `diff --format tests` mode that prints only the test classes a change can break. It needs Java 17 or newer.

## Features

- **Android wiring graph:** Models Gradle modules, Room, Navigation, Hilt, Koin and the manifest from source files.
- **Rule checks:** Flags missing Room migrations, untested migration steps, unregistered routes and unbound injections.
- **Change impact:** Lists screens, ViewModels, injection bindings and modules that depend on a changed class.
- **Pull request comments:** A GitHub Action posts what each change touches and uploads findings as code scanning alerts.
- **Targeted test selection:** Prints just the test classes covering a change so CI can skip the rest.
- **Read-only analysis:** Reads source only; it does not run Gradle or send data out.

## Good for

- Ask a coding agent what depends on a class before changing it
- Fail CI when a Room schema change lacks a migration
- Review what a pull request touches across modules and screens
- Run only the tests a change can affect in an Android build
- Spot permissions a library adds to the merged manifest

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add droidmap -- docker run -i --rm ghcr.io/hussainshirazi/droidmap:0.4.1
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "droidmap": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hussainshirazi/droidmap:0.4.1"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "droidmap": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hussainshirazi/droidmap:0.4.1"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "droidmap": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hussainshirazi/droidmap:0.4.1"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "droidmap": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hussainshirazi/droidmap:0.4.1"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add droidmap -- docker run -i --rm ghcr.io/hussainshirazi/droidmap:0.4.1
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.droidmap]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/hussainshirazi/droidmap:0.4.1"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "droidmap": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hussainshirazi/droidmap:0.4.1"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user droidmap docker -- run -i --rm ghcr.io/hussainshirazi/droidmap:0.4.1

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "droidmap": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hussainshirazi/droidmap:0.4.1"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "droidmap": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hussainshirazi/droidmap:0.4.1"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "droidmap": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hussainshirazi/droidmap:0.4.1"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "droidmap": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hussainshirazi/droidmap:0.4.1"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "droidmap": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hussainshirazi/droidmap:0.4.1"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "droidmap": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hussainshirazi/droidmap:0.4.1"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "droidmap": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hussainshirazi/droidmap:0.4.1"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "droidmap": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/hussainshirazi/droidmap:0.4.1"
      ]
    }
  }
}
```

## FAQ

### Does droidmap run my build?

No. It reads source files only. The GitHub Action runs one Gradle task for the merged manifest, and only when you turn that option on.

### What Java version does droidmap need?

Java 17 or newer; the launcher also finds the JDK bundled with Android Studio.

### How do I install droidmap?

Via an install script for macOS and Linux, a PowerShell script for Windows, Homebrew, Scoop, Docker or the jar from the release page. The registry entry points to an OCI image.

### Can droidmap run outside GitHub?

Yes. A Docker image supports GitLab, Bitbucket, Jenkins and Bitrise.

### How do I add droidmap to Claude Code?

Run this command in your terminal: claude mcp add droidmap -- docker run -i --rm ghcr.io/hussainshirazi/droidmap:0.4.1

### What are the best alternatives to droidmap?

The closest alternatives to droidmap are Repograph, code-graph, Devmap, Stratigraph and Readfirst.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Repograph](https://ai-powered.com/mcp/repograph): Repograph is an open-source MCP server for developer tools.
- [code-graph](https://ai-powered.com/mcp/code-graph): code-graph is an MCP server for developer tools.
- [Devmap](https://ai-powered.com/mcp/devmap): Devmap is an open-source MCP server for developer tools.
- [Stratigraph](https://ai-powered.com/mcp/stratigraph): Stratigraph is an open-source MCP server for developer tools.
- [Readfirst](https://ai-powered.com/mcp/readfirst): Readfirst is a freemium MCP server for developer tools.
- [Codegraph](https://ai-powered.com/mcp/codegraph-2): Codegraph is an open-source MCP server for developer tools.
- [LayerMap](https://ai-powered.com/mcp/layermap): LayerMap is an open-source MCP server for developer tools.
- [repomap](https://ai-powered.com/mcp/repomap): repomap is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/droidmap
