MCP Catalogs
Home

android-source-explorer-mcp

by mrmike·91·Score 49

An MCP server providing direct access to Android source code for AI-assisted development.

developer-toolsai-llmfile-system
4
Forks
1
Open issues
2 mo ago
Last commit
2d ago
Indexed

Overview

The Android Source Explorer MCP server enables AI tools to access current Android source code in real-time, addressing the common problem of outdated training data. It uses a hybrid architecture combining Tree-sitter for fast AST parsing and optional LSP features for cross-file navigation. The server maintains a local cache of AOSP and AndroidX sources to ensure instant lookups and offline capabilities.

Try asking AI

After installing, here are 3 things you can ask your AI assistant:

you:Understanding Android framework internals like Activity lifecycle and ViewModel restoration
you:Real-time documentation lookup for Jetpack libraries and AndroidX components
you:Cross-referencing code implementations across millions of lines of source code

When to choose this

Choose this when developing Android applications and you need precise, up-to-date information directly from the source code rather than potentially outdated documentation.

When NOT to choose this

Avoid if you're not working with Android development or if you need real-time access to the very latest AOSP changes before they're synced locally.

Tools this server exposes

9 tools extracted from the README
  • search_classes

    Search for classes by glob pattern or substring

  • lookup_class

    Retrieve the full source code for a specific class

  • lookup_method

    Extract a precise method body + its Javadoc/annotations

  • list_class_members

    List all method and field signatures in a class

  • get_class_hierarchy

    Get the inheritance chain (superclass + interfaces)

  • search_in_source

    Search for text/regex across the entire source tree

  • goto_definition

    Resolve the cross-file definition of a symbol

  • find_references

    Find all usages of a class/method across the whole tree

  • get_type_info

    Get documentation and type info via hover data

Comparable tools

android-docs-mcpaosp-source-mcpjetpack-docs-mcp

Installation

Installation

Prerequisites

  • uv (Recommended) or Python 3.11+
  • Git

Recommended Installation (via uv)

uv tool install git+https://github.com/mrmike/android-source-explorer-mcp

Initial Sync

# Sync API 36 (Android 16) and common AndroidX packages
android-source-explorer sync --api-level 36 --androidx "compose,lifecycle,activity"

Configuration

{
  "mcpServers": {
    "android-sources": {
      "command": "android-source-explorer",
      "args": ["serve"]
    }
  }
}

Compare android-source-explorer-mcp with

GitHub →

Last updated · Auto-generated from public README + GitHub signals.