AOSP Explorer
MCP server for exploring AOSP internals and Jetpack libraries
What is AOSP Explorer?
AOSP Explorer is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server for exploring aosp internals and jetpack libraries
MCP server for exploring AOSP internals and Jetpack libraries
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- MCP server for exploring AOSP internals and Jetpack librarie
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx android-source-explorerConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use AOSP Explorer
Android Source Explorer MCP is a server that gives AI assistants offline access to AOSP (Android Open Source Project) internals and Jetpack library source code. It uses a dual-engine architecture — Tree-sitter for sub-10ms structural parsing and an optional Language Server Protocol (LSP) engine for cross-file definition resolution and reference finding. Android developers use it to let Claude or other AI clients navigate framework classes, understand Jetpack Compose internals, and answer deep questions about Android platform APIs without leaving their development environment.
Prerequisites
- Python 3.11+ or uv package manager installed
- Git installed for cloning the package
- An MCP-compatible client such as Claude Desktop, Cursor, or VS Code with Copilot
- Sufficient disk space for Android source files (several GB depending on API level and Jetpack modules selected)
- Internet connection for the initial sync of AOSP and AndroidX sources
Install android-source-explorer via uv
Install the package directly from GitHub using uv tool install. This is the recommended approach as it manages the Python environment automatically.
uv tool install git+https://github.com/mrmike/android-source-explorer-mcpSync Android source files
Download AOSP source for your target API level and the Jetpack AndroidX libraries you need. This step fetches the actual source code that the MCP server will index and serve.
android-source-explorer sync --api-level 36 --androidx "compose,lifecycle,activity"Optionally download LSP servers
For advanced cross-file analysis (go-to-definition, find-references, type documentation), download the Language Server Protocol servers. This is optional but recommended for deep exploration.
android-source-explorer sync --lspConfigure your MCP client (basic)
Add android-source-explorer to your MCP client configuration. The server starts in serve mode and exposes tools for searching and reading Android source code.
{
"mcpServers": {
"android-sources": {
"command": "android-source-explorer",
"args": ["serve"]
}
}
}Enable LSP tools (optional)
Set the ANDROID_SOURCE_LSP environment variable to true to activate cross-file definition resolution and reference finding through the LSP engine.
{
"mcpServers": {
"android-sources": {
"command": "android-source-explorer",
"args": ["serve"],
"env": {
"ANDROID_SOURCE_LSP": "true"
}
}
}
}AOSP Explorer Examples
Client configuration
Full Claude Desktop configuration with LSP enabled for deep AOSP and Jetpack source exploration.
{
"mcpServers": {
"android-sources": {
"command": "android-source-explorer",
"args": ["serve"],
"env": {
"ANDROID_SOURCE_LSP": "true"
}
}
}
}Prompts to try
Use natural language to explore AOSP internals and Jetpack library code.
- "Show me the source code for ActivityResultLauncher in AndroidX Activity"
- "How does Compose's remember() function work internally? Show the implementation"
- "Find all classes that extend ViewModel in the lifecycle library"
- "What methods does the Android Binder class expose? List them with signatures"
- "Search for usages of CoroutineScope in the Jetpack Lifecycle source"Troubleshooting AOSP Explorer
android-source-explorer command not found after installation
Ensure the uv tool bin directory is in your PATH. Run 'uv tool update-shell' or add $(uv tool dir)/bin to your PATH in your shell profile (~/.zshrc or ~/.bashrc).
Sync fails or downloads incomplete source
Check your internet connection and available disk space. Re-run the sync command — it supports resuming. If a specific AndroidX module fails, try syncing modules individually by name.
LSP tools are not available despite setting ANDROID_SOURCE_LSP=true
You must first run 'android-source-explorer sync --lsp' to download the LSP server binaries. After downloading, restart the MCP server and the LSP-powered tools will appear.
Frequently Asked Questions about AOSP Explorer
What is AOSP Explorer?
AOSP Explorer is a Model Context Protocol (MCP) server that mcp server for exploring aosp internals and jetpack libraries It connects AI assistants to external tools and data sources through a standardized interface.
How do I install AOSP Explorer?
Follow the installation instructions on the AOSP Explorer GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with AOSP Explorer?
AOSP Explorer works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is AOSP Explorer free to use?
Yes, AOSP Explorer is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.
AOSP Explorer Alternatives — Similar Developer Tools Servers
Looking for alternatives to AOSP Explorer? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up AOSP Explorer in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use AOSP Explorer?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.