Yes, but it’s the mirror image of the problem turning a webhook-based API into an MCP server runs into. A webhook pushes to you on the provider’s schedule, with nothing to hold the message if nobody’s listening. A message queue does the opposite on purpose — a broker sits between producer and consumer and holds every message until something pulls it, which sounds like it should map onto an MCP tool call for free. The pull itself does. What doesn’t: acknowledgment, redelivery, and what happens when a message keeps failing. None of that has an equivalent in a plain tool call, and the queue’s own semantics don’t go away just because the thing reading from it is a model instead of a worker process.
The pull maps cleanly. The rest of the contract doesn’t
A tool like receive_messages(queue, max) is a perfectly normal MCP tool: a request, a result, done. The part every queue adds on top — Kafka, RabbitMQ, SQS, Pub/Sub, whatever broker is behind it — is that most of them promise at-least-once delivery, not exactly-once. A consumer reads a message, does something with it, and then has to tell the broker “I’m done with that one” (an ack) or it comes back after a visibility timeout and gets redelivered, on the assumption the first attempt might have crashed before finishing. MCP’s request/response shape has no field for any of that. The model calls a tool and gets text back; it doesn’t know it’s holding a message the broker is quietly waiting to hear about.
The acknowledgment question you can’t avoid
This is the actual design decision, and there’s no option that’s free of a downside:
- Ack on read, before the model does anything with the message. Simplest to build — the tool pulls, acks, and returns the content in one call. The risk is real message loss: if the model’s session ends, the conversation is abandoned, or whatever it was about to do with the message never happens, the broker has already been told the message is handled. This only makes sense if whatever the message triggers is cheap to lose or safe to reconstruct another way.
- A separate
ack_message(receipt_id)tool. Mirrors how a human using an email client actually works — read, then decide, then mark done. Nothing is lost on a dropped session, because an unacked message just waits out its visibility timeout and comes back. The cost is that it depends on the model remembering to call the second tool, and a model that reads ten messages and acks three leaves seven stuck invisible until they time out and reappear, which looks like the queue is losing messages when it’s actually just following the contract. - A receiver-and-store layer, the same pattern the webhook post lands on. A small consumer process drains the queue continuously, acking as it goes, and writes each message into a durable store your tool reads from with a cursor — the same cursor-based approach covered for large tool results, reused here because the broker’s delivery guarantees and the model’s session lifetime are two different clocks that shouldn’t be tied together. This is more infrastructure than the other two, and it’s the one that doesn’t lose a message just because an agent session ended mid-conversation.
Competing consumers get more complicated with a model in the loop
Most queue systems support multiple consumers reading the same queue or topic, splitting the work between them. That’s fine when every consumer is identical worker code. It gets harder once one of the consumers is an AI client that might re-read, re-ask, or hold a message mid-conversation far longer than a typical worker would — the same multi-client question raised in one MCP server, multiple AI clients, except here it’s not just two clients sharing a server, it’s two consumers sharing a broker’s delivery guarantees. If more than one agent might pull from the same queue, decide up front whether that’s actually safe for your workload or whether the tool should enforce a single consumer per queue.
Poison messages need a real answer, not a retry loop
A message that fails every time it’s processed — malformed, referencing something that no longer exists, whatever the reason — will get redelivered forever under at-least-once semantics unless something stops it. Most brokers solve this with a dead-letter queue after N failed attempts. Your tool’s error handling needs to know about that boundary: a failure from the downstream action should come back as a normal tool error the model can act on, not a silent swallow that leaves the message endlessly recycling between your queue and your tool. If the model’s retry and the broker’s redelivery both kick in on the same message, you can end up processing it far more than once before anyone notices.
Resist one tool per queue action
A queue SDK usually exposes send, receive, ack, nack, extend-visibility, and peek as separate calls, and it’s tempting to expose all of them as separate MCP tools because that’s what the SDK gives you. Most agent tasks don’t need that granularity. Shape the tool around the job — “check for new orders and tell me about them,” not “call receive, then ack, then peek” — the same case made in designing MCP tools around agent jobs, not API endpoints. If the queue genuinely needs several distinct tools, keep the count small on purpose; seven queue operations exposed as seven tools runs into the same problem covered in how many tools an MCP server should expose.
When it’s really a task, not a queue
Sometimes what looks like a queue is actually one job the model is waiting on, not a general stream it needs to keep polling — “process this file and tell me when it’s done” dressed up as a single message on a queue. If that’s the real shape, MCP Tasks is the closer-fitting primitive, the same point the webhook conversion makes about callbacks that are really async completions in disguise. A queue-backed tool is for an open-ended stream of independent messages; a task is for one thing you’re waiting to finish.
The bottom line
A message queue can back an MCP server, and the pull side is the easy part — it’s already a request/response shape underneath. What takes real design work is everything the broker expects a consumer to do that a model never will on its own: acknowledging a message, handling redelivery, and deciding what happens to one that keeps failing. Pick an acknowledgment strategy on purpose, keep the tool count job-shaped instead of SDK-shaped, and reach for a durable store underneath if a dropped agent session can’t be allowed to mean a lost message.