Allows searching and browsing Android source code via cs.android.com, featuring regex search support, symbol suggestions, and retrieval of full file contents.
Enables searching and browsing of Android Studio repository source code through the Android Code Search interface.
Provides capabilities to search and retrieve source code from LLVM projects hosted on the Android code search platform.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Android Code Search MCP Serversearch for the implementation of Activity.java in android"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Android Code Search MCP Server
English | 简体中文
A Model Context Protocol (MCP) server for searching and browsing Android source code via cs.android.com.
Preview

Features
Code Search: Search through Android source code with regex support
File Content: Retrieve full source file contents
Symbol Suggestions: Get autocomplete suggestions for classes, methods, files
Multiple Projects: Search across Android, AndroidX, Android Studio, and LLVM projects
Installation
Claude Code
Other MCP Clients
Any MCP-compatible client can use the stdio transport:
Or install globally:
Available Tools
search_android_code
Search for code in Android source repositories.
Parameter | Required | Description |
| Yes | Search query (supports regex, |
| No | Filter by project: |
| No | Number of results (default: 10, max: 50) |
| No | Context lines around matches (default: 1) |
get_file_content
Get the full content of a source file.
Parameter | Required | Description |
| Yes | Project name |
| Yes | Repository path |
| Yes | Branch name |
| Yes | File path |
suggest_symbols
Get symbol suggestions for partial queries.
Parameter | Required | Description |
| Yes | Partial query |
| No | Max suggestions (default: 7) |
list_projects
List all available Android source projects.
License
MIT