Android Preference Editor MCP Server
The Android-Preference-Editor MCP Server allows developers to manage Android app preferences using natural language commands through an MCP client. With this server, you can:
Manage Android Preferences:
Change existing preference values
Delete specific preferences
Add new preferences (integer, boolean, float, double, long, or string types)
Read all preferences from a specific file
Discover Device and Application Information:
List all connected Android devices
List all installed apps on a specific device
List all preference files for a given app on a device
All operations require appropriate parameters such as preference name, value, device ID, application ID, and filename.
Provides tools for managing and editing Android application preferences, allowing users to view, toggle, and modify preferences on Android devices through the Android Debug Bridge (adb).
Click on "Deploy 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 Preference Editor MCP Server toggle the isVisited user preference"
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 Preference Editor MCP Server
Overview
Unlock the power of natural language for Android app development with the Android Preference Editor MCP Server. Effortlessly edit user preferences in real time using simple, conversational commands—no manual file editing required! Built on the robust Android Preference Editor library, this server seamlessly connects with MCP (Model Context Protocol) clients to supercharge your AI-driven workflows.
Just tell the MCP server what you want to do, for example:
“Toggle the isVisited user preference”
“Turn off the onboarding guide”
“List all the user preference values”
"Create a timestamp preference with the current epoch time"
Experience a smarter, faster way to manage Android preferences—just ask!
Related MCP server: android-mcp
Available Tools
Name | Description |
change_preference | Changes the value of an existing preference |
delete_preference | Delete an existing preference |
add_preference | Adds a new preference given the name, value, and type |
read_preferences | Reads all user preferences in a file |
devices | Lists connected Android devices |
list_apps | Lists apps installed on the device |
list_files | Lists preference files for an app |
Demo
Toggle a user preference | Available tools | Add a preference |
|
|
|
See more demos in the demo screenshots directory
Requirements
Android adb (
v1.0.41+)Node.js 14+ or Docker
Integrations
This server is available in the Docker MCP Catalog. Enable the Pref Editor server in Docker desktop's MCP toolkit and you'll have access to all the available tools.
Android Studio
Assumes an MCP compatible client is installed.
Add the following configuration to the MCP server config file. For example, for the GitHub Copilot IntelliJ Plugin, the config file is ~/.config/github-copilot/intellij/mcp.json.
Docker
{
"servers": {
"pref-editor": {
"command": "docker",
"args": ["run", "-i", "--rm", "charlesmuchene/pref-editor-mcp-server"]
}
}
}npx
{
"servers": {
"pref-editor": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@charlesmuchene/pref-editor-mcp-server"]
}
}
}Claude Desktop
Add this server to the /Users/<username>/Library/Application Support/Claude/claude_desktop_config.json configuration file.
Docker
{
"mcpServers": {
"pref-editor": {
"command": "docker",
"args": ["run", "-i", "--rm", "charlesmuchene/pref-editor-mcp-server"]
}
}
}npx
{
"mcpServers": {
"pref-editor": {
"command": "npx",
"args": ["-y", "@charlesmuchene/pref-editor-mcp-server"]
}
}
}You can troubleshoot problems by tailing the log file:
tail -f ~/Library/Logs/Claude/mcp-server-pref-editor.logVS Code
To use the server with VS Code, you need to:
Add the MCP Server configuration to your
mcp.jsonorsettings.json:
.vscode/mcp.json
{
"servers": {
"pref-editor": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@charlesmuchene/pref-editor-mcp-server"]
}
}
}~/Library/Application Support/Code/User/settings.json
{
"mcp": {
"pref-editor": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@charlesmuchene/pref-editor-mcp-server"]
}
}
}For more information, see the VS Code documentation.
Building Locally
Refer to DEV.md for instructions on how to build this project.
Testing
You can use the MCP Inspector for visual debugging of this MCP Server.
npx @modelcontextprotocol/inspector npm run startLicense
See LICENSE
Contact
For questions or support, reach out via GitHub Issues.
Contributing
We welcome contributions from the community! 🎉
First-time contributors: Please start by reading our CONTRIBUTING.md guide, which covers:
PR requirements and title format
Development setup and workflow
Code quality standards
License information
For detailed development instructions, see DEV.md.
Available Tools
7 toolsadd_preferenceC
Adds a new preference given the name, value and type.
Inputs: name (required), value (required), type (required), deviceId (required), +2 more.
change_preferenceC
Changes the value of an existing preference
Inputs: name (required), value (required), deviceId (required), appId (required), +1 more.
delete_preferenceC
Delete an existing preference
Inputs: name (required), deviceId (required), appId (required), filename (required).
devicesB
Lists connected Android devices
Inputs: no named parameters.
list_appsC
Lists apps installed on device
Inputs: deviceId (required).
list_filesC
Lists preference files for an app
Inputs: deviceId (required), appId (required).
read_preferencesC
Reads all user preferences in a file
Inputs: deviceId (required), appId (required), filename (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose with no ambiguity. Preference management tools (add, change, delete, read) target specific operations, while device/app/file listing tools serve separate discovery functions. The descriptions make it easy to differentiate between actions on preferences versus actions on devices/apps/files.
All tools follow a consistent verb_noun naming pattern throughout. The verbs (add, change, delete, list, read) are consistently applied to their respective nouns (preference, devices, apps, files, preferences). There are no deviations in style or convention across the tool set.
With 7 tools, this server is well-scoped for editing Android preferences. It covers core operations (CRUD for preferences) plus necessary discovery tools (devices, apps, files) without being overly sparse or bloated. Each tool earns its place in the workflow.
The tool surface provides complete coverage for the Android preference editing domain. It offers full CRUD operations for preferences (add, change, delete, read) plus the necessary discovery chain (devices → apps → files → preferences). There are no obvious gaps that would prevent an agent from performing the intended workflows.
Maintenance
Related MCP Connectors
MCP server for static security analysis of Android source code
MCP server to assist with JxBrowser development.
MCP Server for JFrog, providing tools for development and artifact management.
Related MCP Servers
- FlicenseCqualityDmaintenanceMCP server that enables reading and writing macOS system preferences and application settings through the defaults system.411-
- FlicenseNot gradedqualityDmaintenanceA lightweight MCP server for Android operating system automation. This server provides tools to interact directly with Android devices and app interaction with control3-
- AlicenseBqualityDmaintenanceMCP server for Android device automation via ADB, enabling screen control, phone functions, app management, and device control.301MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for Android device management via ADB, enabling inspection and configuration of Android devices over USB or Wi-Fi.23 npmApache 2.0


