cd /news/agent-protocols/ambient-context-protocol · home › topics › agent-protocols › article
[ARTICLE · art-175645] src=ambientcontextprotocol.com ↗ pub= topic=agent-protocols verified=true sentiment=· neutral

Ambient Context Protocol

A draft specification called the Ambient Context Protocol, version 0.2.4, extends the Model Context Protocol (MCP) so a desktop app can report to an AI assistant which documents are open, what is selected and where each element sits on screen, replacing screenshots and pasted text with structured answers carrying ids the assistant can reference. A provider is an ordinary MCP server exposing two MCP resources — `ambient://current` for the open tree of elements and `ambient://location/{id}` for on-screen position — plus an optional `watch` operation, and announces itself through a descriptor file in a per-user folder holding its local endpoint and a bearer token. The first provider is the Paper Markdown editor and the first host is the Sirius assistant; the draft states both are planned and neither has shipped this version, and that any name may change.

key takeaway

An app can expose ambient context to any MCP-speaking assistant by running an ordinary MCP server that serves `ambient://current` (the element tree) and `ambient://location/{id}` (on-screen position), announcing its local endpoint and bearer token via a descriptor file in a per-user folder.

read5 min views5 publishedNov 24, 2026
Ambient Context Protocol
Image: source

How a desktop app communicates its ambient context to an agent host

The Ambient Context Protocol is an extension to the Model Context Protocol (MCP) that lets a desktop app tell an AI assistant what the user is looking at.

With it, an assistant you call from anywhere on your computer can ask the app in front which documents are open, what is selected and where each of those things is on screen.

Today an assistant learns what is in front of you from a screenshot, a paste or a paragraph of explanation. The protocol replaces that with the app's own account: structured, exact, and with ids the assistant can point back at.

It is not a protocol of its own. A provider is an ordinary MCP server, its two answers are ordinary MCP resources, and a client that has never heard of the extension can still list and read them. It is called a protocol to give it a short name to refer to.

This is draft 0.2.4, and any name may change.

What can it enable? #

  • Select a sentence in a Markdown editor and ask "is this claim true?" The assistant knows which sentence, in which file, and shows its answer beside it.
  • Select a frame in a design tool and ask "does this match our spacing rules?" The assistant receives a thumbnail and a link to the frame, not a screenshot of the whole window.
  • With a task open in a task manager, ask "what is blocking this?" The assistant knows which task, inside which list.
  • Point at a chart and ask "what am I looking at?" The app reports what is under the pointer, and the assistant treats it as a weaker hint than a selection.

Why does it matter? #

Depending on where you sit, the protocol does different things for you.

  • App developers: one small MCP server makes your app understood by every assistant that speaks the protocol, without a separate integration for each.
  • Assistant developers: you get exact context and on-screen positions from the apps your users work in, without screenshots or accessibility scraping.
  • Users: you can ask about what is in front of you without explaining it first, and you see what is sent before it goes. Nothing is read until you call on the assistant.

The first provider is Paper, a Markdown editor. The first host is Sirius, an assistant. Both are planned, and neither has shipped this version.

How it works #

Three parties are involved. Two of them take part in the protocol.

Provider

The app the user is working in. It is an MCP server on the local machine and answers questions about itself.

Host

The agent's own app, an MCP client. It finds the front app's provider, reads its context, shows the user what it collected and draws its own interface.

Agent

The model behind the host. It is not a party to the protocol and sees only what the host passes on.

A provider offers two reads, each an ordinary MCP resource that the host reads with resources/read:

Operation Resource Question it answers
current ambient://current What does the user have open, and what are they pointing at?
locate ambient://location/{id} Where on screen is the element with this id?

The answer to current is one tree of elements rooted at the app: its windows, the documents in them, and what is selected, focused or under the pointer.

A provider may offer a third operation, watch: while a host is showing the user what it read, the provider tells it when the answer to current changes, with no content, and the host reads again.

A typical exchange:

A running provider announces itself with a descriptor file in a known per-user folder. The file holds the provider's local endpoint and a bearer token.

The user invokes the host. The host finds the descriptor for the app in front and checks the endpoint it names.

The host reads ambient://current with the token. The provider answers with the tree of elements. If anything fails, the host carries on without context.

The host shows the user what it collected, lets them remove it, and passes the rest to the agent with the question.

The agent names an element by id, such as sel-23. To show something beside it, the host reads ambient://location/sel-23 from the same provider and gets back the element's rectangles on screen.

The provider never learns what the host drew, and the agent never sees a coordinate. The agent never calls the provider; the host does.

Principles #

  • The app says where; the host decides what. A provider reports elements and their positions. It never names what the host draws there.
  • A shared language for how a thing is shown, the app's own word for what it is. Every element has arole from a fixed list of thirteen, such asWindow ,List ,Row orText , which a program can write rules against. What the thing is to the app, such as a task or a comment, goes insubrole andattributes , which the app defines freely.
  • Pulled on the user's action, and kept current while the user is looking. A host asks for context when the user does something that calls for it. While it is showing the user what it read, it may ask the provider to say when that changes. A provider sends nothing a host did not ask for, and a host does not poll.
  • It is ordinary MCP. A provider is an MCP server and the two answers are MCP resources. A client that has never heard of the protocol can still list and read them.

Start building #

Build a provider

Make your app answer: the server, the descriptor file and the two resource reads.

Build a host

Find the front app's provider, read its context and follow the host rules.

── more in #agent-protocols 4 stories · sorted by recency
── more on @ambient context protocol 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/ambient-context-prot…] indexed:0 read:5min 2026-11-24 · —