DEV Community

Cover image for Google AI Edge Gallery Now Runs MCP On-Device. The Privacy Architecture
Om Shree
Om Shree

Posted on

Google AI Edge Gallery Now Runs MCP On-Device. The Privacy Architecture

Auth0 for AI Agents Challenge Submission

This is a submission for the Google I/O Writing Challenge


On-device AI has spent most of its existence being impressive in demos and limited everywhere else. Google just changed the constraint that mattered most: the model couldn't reach anything outside the app sandbox.

The Problem It's Solving

Local inference is great for privacy and latency. It's lousy for usefulness. A model running entirely on your phone can answer questions from its training data and nothing else — no calendar, no inbox, no live web, no external tools. You get an isolated reasoning engine that can't act on the world around it.

That's the fundamental tension in edge AI: the moment you connect a model to external systems, you typically route the requests through a server. The privacy story falls apart. The latency goes up. The offline capability disappears.

Google AI Edge Gallery just shipped an answer to this. The May 19 update adds Model Context Protocol (MCP) support to the Android app, alongside scheduled notification reminders and persistent chat history. Together, these three features move the app from a model playground into something that starts to look like an actual on-device agent runtime.

How It Actually Works

The MCP integration runs over Streamable HTTP, currently experimental and Android-only (iOS support is coming). The architecture is worth understanding carefully, because it's not what you might expect.

When you register an MCP server URL in the app, it dynamically pulls tool definitions and resource schemas directly into Gemma 4's system prompt on-device. The reasoning happens entirely on the phone. Gemma 4 decides locally which tool to call, generates the request locally, and then sends that request to wherever the MCP server lives — your home computer, a cloud endpoint, wherever. The model itself never leaves the device.

This is a meaningful architectural choice. The tool selection and orchestration logic stays private. Only the structured API call goes out over the network, not your raw query or whatever context the model was working with.

The notification system works differently: it's a "Schedule Notification" skill that sets local OS-level reminders. When you tap one, the app opens directly to the right tool and launches a Gemma 4 session automatically. No server involved at all.

Chat history persistence runs through the LiteRT-LM backend's fast prefill capability. On modern phone GPUs, prefill can hit over 3,000 tokens per second, which means the model can reconstruct a long previous session almost instantly when you reopen the app. Sessions maintain state across text, images, and audio.

What Developers Are Actually Using It For

The MCP use cases Google demos are practical rather than speculative. Connect to a Google Workspace MCP to query your calendar or check your inbox. Use a Google Maps MCP to ask about travel times in natural language. Connect a web fetch MCP to pull live documentation or news into the model's context.

The notification + session continuity combination opens up something more interesting: scheduled routines that actually maintain context. A mood tracking workflow that reminds you every evening at 10 PM, opens to Gemma 4, and — because chat history persists — can look back at previous entries to surface trends. A morning briefing that reads your local calendar and gives you a summary before you leave the house. A daily "learn something new" prompt that generates a shareable visual infographic from whatever topic you pick.

The community-built skills on the GitHub Discussions page are already going further: lightweight web search integrations for live weather and currency data, parsers that turn images and HTML into structured data for semantic search, quiz generators, language translators, offline puzzle games.

Google has also added the ability to edit the system prompt directly from chat settings, which is the right call for a developer-facing app. You can define personas, set output constraints, or experiment with prompting approaches without touching any config files.

One practical note for anyone building on this: on-device models have smaller context windows than their server-side counterparts. Google explicitly recommends keeping MCP tool descriptions short and returning bite-sized data snippets rather than long text blocks. The architecture rewards lean, well-scoped tool definitions.

Why This Is a Bigger Deal Than It Looks

MCP has spent most of 2025 and early 2026 as an enterprise and desktop story. The tooling, the infrastructure, the conversation — it's been aimed at developers building server-side agents with access to large context windows and cloud compute.

Putting MCP into a phone app, powered by a model running entirely on-device, moves the protocol into a different category of deployment. The reasoning stays on the device. Only structured tool calls go out over the network. That's a viable architecture for healthcare apps, legal tools, or anything else where raw query data can't leave the device.

There's also something worth noting about the open-source angle here. The Google AI Edge Gallery repository is public, the skill system is extensible, and the community is already building on it. This isn't a closed platform with a curated app store of approved integrations. Anyone can write an MCP server, register it in the app, and extend what on-device Gemma can reach.

The combination of persistent sessions, proactive notifications, and external tool access is basically the minimum viable definition of an ambient agent: something that maintains context over time, reaches external systems when needed, and can act without being explicitly invoked. Google shipped all three in one update.

Availability and Access

The MCP integration is live now in the Android version of Google AI Edge Gallery. iOS support is listed as coming soon. Technical documentation and example MCP configurations are in the GitHub repository. The app is free on both the Play Store and App Store.

The edge AI stack — Gemma 4 running locally, MCP bridging to external tools, LiteRT-LM handling fast prefill — is now available to any developer who wants to build on it. The interesting question is which use cases the community finds that Google hasn't thought of yet.

MCP's reach just extended to every Android phone. That's a different surface area than any enterprise deployment.

Follow for more coverage on MCP, agentic AI, and AI infrastructure.

Top comments (0)