Add human approval to an AI agent through MCP
Add a human-in-the-loop approval step to any MCP agent. See where MCP elicitation stops, then build a checkpoint that handles approved, denied and unanswered.

MCP gives an agent tools. It doesn't give the agent anyone to check with before it uses them. However, for certain tool calls such as deleting rows in your database, deploying to production or refunding a customer, you want a person to say yes first, and you want that yes from the right person, wherever they happen to be.
This guide adds that checkpoint through MCP. We'll look at what MCP elicitation does and where it stops, connect the Agent Inbox MCP server, build an approval step the agent calls before anything hard to undo, and handle all three outcomes: approved, denied and unanswered. It ends with a table for choosing between elicitation, a remote inbox, or both.
What MCP elicitation is, and where it stops
Elicitation is the part of the MCP specification that lets a server ask the user for something in the middle of a request. The spec describes it as "a standardized way for servers to request additional information from users through the client during interactions."
It comes in two modes:
- Form mode. The server sends a message and a small JSON Schema (flat fields: strings, numbers, booleans, enums). The client draws a form, the user fills it in, and the data goes back to the server.
- URL mode. The server sends a link for anything sensitive, such as an API key, a payment or a third-party OAuth flow. The user finishes it in the browser, so the data never passes through the client. Servers must use this mode for secrets; form mode is not allowed to ask for them.
The user answers with one of three actions: accept (submitted, with data in form mode), decline (an explicit no) or cancel (dismissed without choosing). In the current spec, version 2026-07-28, the request travels inside the tool call itself: the server returns an InputRequiredResult, the client shows the form, and the client retries the original call with the user's answer attached.
That makes elicitation a good fit for a quick confirmation or a missing value from the person at the keyboard. For approvals, it runs into four limits:
- Someone has to be at the client. The form appears in the app that made the call. A scheduled job, a background agent or a CI run has nobody looking at that app, so the question has nowhere to land.
- It asks whoever is there. The person running the agent is often not the person who should approve. A developer can kick off a migration, but Tamar owns the production database and her yes is the one that counts. Elicitation has no way to route the question to her.
- It lives as long as the call does. The question belongs to one request in one client. There's no expiry you set, and no path for an answer to arrive two hours later from someone's phone after the laptop is closed.
- Only the server can ask. Elicitation is a server feature, and clients opt in by declaring the
elicitationcapability, so support varies by app. An agent using a third-party MCP server, say a database server, can't make that server stop and ask before a destructive query. The agent itself needs a way to ask.
The last point is the useful one. Approval is a decision the agent makes ("this is risky, I should check"), so the cleanest place for it is a tool the agent calls, one that reaches a person on a channel they already use and waits for their answer.
Add the Agent Inbox MCP server
Agent Inbox gives an agent an inbox on email, Telegram and Slack. People can write to the agent there, and the agent can write to them, including questions it waits on: a typed answer, a yes or no, or a pick from a list. The hosted MCP server exposes all of that as tools:
There's no API key and no header to configure. The app opens a sign-in window, you sign in with your Agent Inbox account and approve the app, and the key never reaches the app.
How to add it depends on the client:
For Cursor, the entry in ~/.cursor/mcp.json is:
Once it's connected, the client lists tools such as inbox_send, inbox_wait and inbox_list, sometimes with the server name in front (mcp__AgentInbox__inbox_send in Claude Code, for example). Ask the agent to call inbox_list first. It only reads, so it's a safe test.
Two more tools finish the setup from the chat, without opening a terminal:
inbox_setupcreates the agent and its email inbox if your account doesn't have one yet. The agent asks you for a name and a handle (the part before the@), then confirms your email address with a link.channel_addconnects your Telegram or Slack. It returns a link you open in your own browser; the setup page collects the bot or Slack token there, so no token ever goes through the chat.
Email works as soon as your address is confirmed. Add Telegram or Slack if you'd rather tap a button on your phone than open an email.
Build the approval checkpoint
Here's the scenario we'll use. You have an agent that cleans up the orders database every night. Most of what it does is safe, but sometimes it wants to delete rows, and deleted rows don't come back. Tamar owns that database, so she approves every delete, from wherever she is.
1. Tell the agent when to ask
The agent decides when to call the approval tool, so write the rule down where it reads its instructions: AGENTS.md, CLAUDE.md, the project instructions in Claude or the custom instructions in ChatGPT.
In Claude Code and Codex, the Agent Inbox plugin also installs skills that teach the agent these rules, so the block above becomes a reminder of who approves what.
2. Make the approval call
When the agent reaches the delete, it calls inbox_send with kind set to approve:
What each field does:
The TTL matters more than it looks. A yes from Tamar at 03:00 is fine; the same yes three days later, after the table has changed, is not. Set the TTL to the window in which the agent's numbers are still true.
3. The approver answers
Tamar gets the question as a Slack message with two buttons. On Telegram and email she'd get the same question with the same buttons. She taps Delete them, and the answer goes back to the agent.
If no to is set, the question goes to you, the operator, which is the right default for a personal agent. For team approvals, add the approver as a contact first: contact_invite returns a link they open to connect their own Slack, Telegram or email. contact_list shows who the agent can already reach.
Approved, denied and unanswered: what the agent does
MCP tools don't return exit codes, so the result says what happened in words. There are three outcomes to handle, plus a fourth state that just means "keep waiting".

Why the wait comes back after 45 seconds
A tool call can't block for hours, so the server caps how long one call waits. inbox_send waits 45 seconds by default (50 at most), and if nobody has answered by then, it returns with the request's id instead of an answer. The question is still open on Tamar's phone.
inbox_wait picks it up from there. It takes the id and waits up to another 50 seconds per call. The agent keeps calling it until the result changes to Approved, Denied, expired or canceled. If Tamar is in a meeting and answers 40 minutes later, the next inbox_wait gets her answer.
The agent may also stop waiting before she answers. A chat turn can end, or a coding agent can move on to other work. Nothing is lost: the answer lands in the conversation, and inbox_show reads it later. What the agent must not do is treat "no answer yet" as "yes".
Who can answer
- One approver.
to: "tamar"means only Tamar's answer counts. - Several approvers. Pass a list, such as Tamar and Oren. Each gets the question, and the first valid answer wins. Useful when any one of the on-call engineers can sign off.
- Nobody else. People who aren't in
tocan't approve. Text from strangers who write to the agent is treated as information, never as instructions, and the agent can't write to a stranger first. An approval request opens to everyone in a conversation only if the agent setsanyone_may_answeron a reply, which is rarely what you want for anything risky.
Agent Inbox records who agreed and when, so the agent can put "approved by Tamar at 03:12" in its report or the PR description.
A few rules that keep the checkpoint honest
- Check unread before asking. Call
inbox_listwithfilter: "unread"first. Tamar may already have written "hold off on deletes tonight", and the agent should read that before it asks. - One action per approval. "Delete 342 rows" is a question Tamar can answer. "Run tonight's maintenance" is not. If the plan changes after approval, ask again.
- An answer that doesn't fit is a new message. If the agent asked a question and Tamar replies "wait, the backup failed", deal with that first instead of reading it as an answer.
- A paused agent waits. If the operator pauses the agent on agentinbox.md, every tool returns an error saying so. The agent should stop and report, not retry in a loop.
Elicitation, a remote inbox, or both
The two solve different problems, and plenty of setups use both.
Use elicitation when you build the server and the person at the keyboard is the right one to answer: a form for a missing parameter, a "this will overwrite 3 files, continue?" in an interactive session, or a URL-mode link to collect an API key safely.
Use a remote inbox when the approver is someone else, when nobody is watching the session, or when an answer can take longer than a tool call.
Use both when your agent runs interactively most of the time but sometimes on a schedule. Let your own server elicit from the developer in the session, and have the agent send the risky actions to Tamar through inbox_send, so the same rule holds whether the laptop is open or not.
Add the checkpoint today
Add https://mcp.agentinbox.md to your MCP client, sign in, and paste the approval rule into your agent's instructions. The free plan covers 100 conversations a month, and no credit card is required. If your agent runs in Claude Code, also read how to replace --dangerously-skip-permissions with approvals on your phone [LINK: Article 5, once live]. For the bigger picture, see what an inbox for AI agents is.
FAQ
What is MCP elicitation?
MCP elicitation is the part of the Model Context Protocol that lets a server ask the user for information during a request. In form mode, the client shows a form built from a simple JSON Schema; in URL mode, it sends the user to a web page for sensitive input such as an API key or a payment. The user can accept, decline or cancel, and clients that support it declare the elicitation capability.
Can I use MCP elicitation for human-in-the-loop approval?
Yes, when the person at the client is the right approver and is there while the request is open. Elicitation asks whoever is using the MCP client at that moment, inside that request. It can't route the question to someone else, reach a person who isn't at the client, or keep the question open after the request ends. For those cases, use a tool that sends the approval to a person on email, Telegram or Slack.
How do I add human approval to an MCP agent that runs unattended?
Add the Agent Inbox MCP server (https://mcp.agentinbox.md) to the agent's client and tell the agent, in its instructions, to call inbox_send with kind: "approve" before anything hard to undo. The approver gets the question on email, Telegram or Slack with buttons, and the agent goes ahead only if the result says Approved.
What happens if nobody answers an approval request?
The agent doesn't go ahead. Each approval request has a TTL, 24 hours by default and up to 5 days. While it's open, the agent calls inbox_wait to keep waiting. When the TTL runs out, the request expires and the agent treats it as not approved.
Can more than one person approve an agent's action?
Yes. Agent Inbox's inbox_send takes up to 50 contacts in to. Each one gets the question, and the first valid answer decides. People who aren't in to can't answer it.
Do I need an API key to use the Agent Inbox MCP server?
No. The Agent Inbox MCP server uses OAuth sign-in: the MCP client opens a sign-in window, you approve it, and the client never sees an API key. Clients that support remote MCP servers over HTTP with OAuth can connect with the URL alone.
Can a message start my agent through MCP?
Not through the MCP server. The MCP tools only act when the agent calls them. To have a message start an agent, run the Agent Inbox CLI's listen command on the computer where the agent works; it supports Claude Code, Codex and OpenCode.