Android Code Search MCP Server
This server provides tools to search and browse Android source code from cs.android.com across projects including android, androidx, android-studio, and android-llvm.
search_android_code: Search code using regex and special operators like
file:,class:, andfunction:. Filter by project and control the number of results and context lines returned.get_file_content: Retrieve the full content of a specific source file by specifying the project, repository, branch, and file path.
suggest_symbols: Get autocomplete suggestions for classes, methods, or file names based on a partial query.
list_projects: List all available Android source projects that can be searched.
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

Related MCP server: Android Development MCP Server
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
claude mcp add cs-android -- npx -y cs-android-mcpCursor
{
"mcpServers": {
"cs-android": {
"command": "npx",
"args": ["-y", "cs-android-mcp"]
}
}
}Other MCP Clients
Any MCP-compatible client can use the stdio transport:
npx -y cs-android-mcpOr install globally:
npm install -g cs-android-mcp
cs-android-mcpAvailable 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
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAquality-maintenanceEnables AI assistants to search and explore Chromium and PDFium source code, check Gerrit code reviews with test results and bot errors, search issues, and analyze commit history through Google's official APIs.Last updated6232619
- Alicense-qualityDmaintenanceProvides Android development assistance following NowInAndroid best practices, including architecture patterns, code generation for feature modules/ViewModels/repositories, and searchable documentation for Jetpack Compose and modularization.Last updatedMIT
- Alicense-qualityDmaintenanceEnables fast semantic code search and analysis across 15+ programming languages. Supports searching for functions and classes, tracing code usage, detecting syntax errors, and analyzing code quality and structure.Last updated12032GPL 3.0
- Alicense-qualityDmaintenanceEnables Android Automotive developers to explore and implement Vehicle Hardware Abstraction Layer (vHAL) properties with intelligent tools for property analysis, source code lookup, implementation guidance, and automated code generation for automotive systems like climate control and seat management.Last updated1MIT
Related MCP Connectors
Get up-to-date, version-specific documentation and code examples from official sources directly in…
Search public open-source code, documentation, metadata, vulnerabilities, changelogs, and examples.
Connect to Atlassian Jira, Confluence, and Compass to search, create, and manage your work.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/steveday763/cs_android_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server