How do you give an AI agent an MCP tool for an app with no API?

Do the task once in the app, compile it into a program, and serve the program to the agent over MCP as one tool. The agent supplies the inputs. The program makes the entry through the app's screens, checks the saved record and returns a plain result. OpenAdapt's MCP server works with Claude Code and other MCP clients.

Updated 2026-11-21

Add the tool to your agent

In Claude Code, one command registers the server:

claude mcp add openadapt -- uvx --python 3.12 openadapt-agent serve

With no programs of your own yet, the server offers a sandbox workflow on a synthetic clinic app that returns every result, so you can see each one before you connect a real system. Other MCP clients take the same command.

Technical details

To serve your own compiled workflows, run `openadapt services agent serve --mode production --bundles ./bundles`. Without `--mode production` the agent can list them but not run them. `openadapt-agent emit-skill <bundle>` writes an Agent Skill for one workflow.

`openadapt setup` registers the server and a skill in Claude Code, Cursor, Codex and Gemini CLI, and `--undo` removes them.

What the agent gets back

ResultWhat it meansWhat the agent may do
doneSaved, then checked by reading the record backTell the person it worked
needs_reviewStopped before saving; nothing was writtenLeave it for a person
not_sure_if_savedThe change may have saved, for example after a timeoutNever retry; a person checks the record
did_not_runNothing was writtenFix the cause, then retry if the result allows it

The agent never gets the screens or the values typed into them, and a healthy run makes no model calls.

Why a tool instead of clicking

An agent driving the screen itself makes a model call on every step and chooses its path again on every run. On a local OpenEMR test copy, the agent alone and the compiled program each saved 62 of 63 referrals; the program made no model calls and cost $0 per entry, against about $0.08 for the agent.

Related: How do you make a computer-use agent reliable on tasks it repeats? · How do you automate a desktop or Citrix app that has no API?

Questions

Does the app need an API?

No. The program uses the app's own screens: web pages, Windows and macOS windows, Linux desktops, or a remote desktop.

Do screenshots go to a model?

No. A healthy run makes no model calls and sends no screenshots anywhere.

Who approves what the tool saves?

By default a person approves each save. A workflow that passes a readiness test can be switched to ask a person only about problems.

Sources

  1. Referral timing run, local OpenEMR 8.0.0.3 test copy, 14 to 15 Oct 2026 (run data): 8 synthetic referrals, OpenAdapt (a program compiled to find each field by the page's structure, 0 model calls) against Claude Sonnet 5.5 (claude-sonnet-5-5) as a computer-use agent in a capped harness, warm starts, interleaved blocks, each chart read back from the database. Blocks 2 to 10, normal referrals saved correctly: 62 runs each; median 29.7 s (OpenAdapt) and 36.5 s (agent); agent median $0.083 a run at list price. Both 62 of 63 normal referrals correct; on the possible duplicate, no new chart in 9 of 9 for both. Block 1 left out (CPU shared with another process); with it (blocks 1 to 10), 69 of 70 correct for both, 29.7 s and 37.6 s (n=69 each). The same task from the 10 Oct recording without the page's structure: 62 of 63, 38.6 s median, slower than the agent.

See it on your process

Bring a task your team types every day. We'll tell you whether it fits and what a test on your own system would cover.