by mrmike
MCP server for exploring AOSP internals and Jetpack libraries
# Add to your Claude Code skills
git clone https://github.com/mrmike/android-source-explorer-mcpGuides for using mcp servers skills like android-source-explorer-mcp.
Last scanned: 7/25/2026
{
"issues": [],
"status": "PASSED",
"scannedAt": "2026-07-25T06:20:21.518Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}MCP server for exploring AOSP internals and Jetpack libraries.
When building Android applications, AI tools often rely on outdated training data or incomplete summaries of the Android Framework. This MCP server provides on-demand, precise access to the actual source code (AOSP and AndroidX), enabling the AI to understand complex framework internals like the Activity lifecycle, ViewModel restoration, or Compose internals directly from the truth.
The easiest way to install and keep android-source-explorer up to date is using uv. It handles dependencies (including native ones like Tree-sitter and Cryptography) reliably across platforms.
uv tool install git+https://github.com/mrmike/android-source-explorer-mcp
This will make the android-source-explorer command available globally in your PATH.
After installation, you need to perform an initial sync to fetch the Android source code:
# Sync API 36 (Android 16) and common AndroidX packages
android-source-explorer sync --api-level 36 --androidx "compose,lifecycle,activity"
# (Optional) Download LSP servers for cross-file features
android-source-explorer sync --lsp
Check sync status:
android-source-explorer status
To check for and download the latest available Android Framework revisions (AOSP tags) and newer stable versions of your synced AndroidX packages, run:
# Update all synced framework APIs and AndroidX packages, then rebuild the index
android-source-explorer update
# (Optional) Clean up older versions of updated AndroidX packages
android-source-explorer update --clean
# Update only a specific API level or AndroidX package
android-source-explorer update --api-level 36
android-source-explorer update --androidx activity-compose
Add the MCP server to your configuration file (e.g., Claude Desktop, Cursor, Gemini CLI).
If installed via uv tool install, the tool is available globally.
Basic Setup:
{
"mcpServers": {
"android-sources": {
"command": "android-source-explorer",
"args": ["serve"]
}
}
}
With LSP Features Enabled:
{
"mcpServers": {
"android-sources": {
"command": "android-source-explorer",
"args": ["serve"],
"env": {
"ANDROID_SOURCE_LSP": "true"
}
}
}
}
If you cloned the repository and want to run it from the source:
{
"mcpServers": {
"android-sources": {
"command": "uv",
"args": ["run", "--directory", "/absolute/path/to/android-source-explorer", "android-source-explorer", "serve"]
}
}
}
The server uses a dual-engine approach to balance speed and intelligence:
To ensure all lookups are instant and offline-ready, the server uses a sync or update command to manage sources in a local cache (~/.android-sources/):
android.googlesource.com using git sparse-checkouts.-sources.jar files from the Google Maven repository (dl.google.com/dl/android/maven2/).$ANDROID_HOME sources if available, supplemented by the downloaded cache.update command queries remote endpoints (AOSP Git tags & Google Maven indexes) for updates, downloads newer revisions/versions, and rebuilds the class index.| Tool | Engine | Description |
|---|---|---|
search_classes |
Index | Search for classes by glob pattern or substring. |
lookup_class |
FS | Retrieve the full source code for a specific class. |
lookup_method |
Tree-sitter | Extract a precise method body + its Javadoc/annotations. |
list_class_members |
Tree-sitter | List all method and field signatures in a class. |
get_class_hierarchy |
Tree-sitter | Get the inheritance chain (superclass + interfaces). |
search_in_source |
FS/Regex | Search for text/regex across the entire source tree. |
goto_definition* |
LSP | Resolve the cross-file definition of a symbol. |
find_references* |
LSP | Find all usages of a class/method across the whole tree. |
get_type_info* |
LSP | Get documentation and type info via hover data. |
*Requires ANDROID_SOURCE_LSP=true
Apache License 2.0
android-source-explorer-mcp is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by mrmike. MCP server for exploring AOSP internals and Jetpack libraries. It has 100 GitHub stars.
Yes. android-source-explorer-mcp passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.
Clone the repository with "git clone https://github.com/mrmike/android-source-explorer-mcp" and add it to your Claude Code skills directory (see the Installation section above).
android-source-explorer-mcp is primarily written in Python. It is open-source under mrmike on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh android-source-explorer-mcp against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars