Pref Editor (Android) logo

Pref Editor (Android)

Community
charlesmuchene

Preference Editor MCP server

Publishercharlesmuchene
Repositorypref-editor-mcp-server
LanguageTypeScript
Forks
3
Stars
2
Available tools
7
Transport typestdio
Categories
LicenseApache-2.0
Links
  • Connect tools to AI workflows

    Pref Editor (Android) exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 7 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    2 stars and 3 forks from the linked repository.

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!

Available Tools

NameDescription
change_preferenceChanges the value of an existing preference
delete_preferenceDelete an existing preference
add_preferenceAdds a new preference given the name, value, and type
read_preferencesReads all user preferences in a file
devicesLists connected Android devices
list_appsLists apps installed on the device
list_filesLists preference files for an app

Demo

Toggle a user preferenceAvailable toolsAdd a preference
Toggle a preferenceAvailable toolsAdd 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

json
{
  "servers": {
    "pref-editor": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "charlesmuchene/pref-editor-mcp-server"]
    }
  }
}

npx

json
{
  "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

json
{
  "mcpServers": {
    "pref-editor": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "charlesmuchene/pref-editor-mcp-server"]
    }
  }
}

npx

json
{
  "mcpServers": {
    "pref-editor": {
      "command": "npx",
      "args": ["-y", "@charlesmuchene/pref-editor-mcp-server"]
    }
  }
}

You can troubleshoot problems by tailing the log file:

sh
tail -f ~/Library/Logs/Claude/mcp-server-pref-editor.log

VS Code

To use the server with VS Code, you need to:

  1. Add the MCP Server configuration to your mcp.json or settings.json:

.vscode/mcp.json

json
{
  "servers": {
    "pref-editor": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@charlesmuchene/pref-editor-mcp-server"]
    }
  }
}

~/Library/Application Support/Code/User/settings.json

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.

sh
npx @modelcontextprotocol/inspector npm run start

License

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.

Contributor Covenant

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "pref-editor": {
      "command": "npx",
      "args": [
        "-y",
        "@charlesmuchene/pref-editor-mcp-server"
      ]
    }
  }
}

Available Tools

  • 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.

  • devices

    Lists connected Android devices

  • list_apps

    Lists apps installed on device

  • list_files

    Lists preference files for an app

  • read_preferences

    Reads all user preferences in a file

Use Pref Editor (Android) MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Pref Editor (Android) is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Pref Editor (Android) as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Pref Editor (Android) MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "pref-editor-android": {
      "command": "npx",
      "args": [
        "-y",
        "@charlesmuchene/pref-editor-mcp-server"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Pref Editor (Android) MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Pref Editor (Android) MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Pref Editor (Android) to help me with this task?
Pref Editor (Android)
Sure. I read it.
Here is what I found using Pref Editor (Android).

Frequently asked questions

What is the Pref Editor (Android) MCP server used for?

Pref Editor (Android) is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Pref Editor (Android) MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Pref Editor (Android) with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Pref Editor (Android) MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Pref Editor (Android) connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Pref Editor (Android) MCP to TypingMind?

Pref Editor (Android) runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Pref Editor (Android) MCP provide in TypingMind?

Pref Editor (Android) exposes 7 MCP tools that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Pref Editor (Android) MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Pref Editor (Android) requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇