mcp-ibm-mq-server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-ibm-mq-server
A governed Model Context Protocol (MCP) server that lets AI agents read and send IBM MQ messages without bypassing enterprise controls.

Most AI agent demos connect straight to core systems with a service account. That never gets past security in a bank, a hospital or a government agency. This server puts a narrow, audited tool layer between the agent and IBM MQ, so Claude, Copilot, OpenAI or Gemini agents can work with existing queues while the queue manager, its channels and the core systems stay unchanged.
It is the reference implementation for my newsletter, Integration to Intelligence:
Issue 1, "Your AI agent shouldn't touch your core systems directly": the governed tool layer (v0.1.0)
Issue 2, "Your AI agent needs a release gate, not a demo": the eval gate in CI (v0.2.0, below)
Issue 3, "Where the human belongs in an AI agent workflow": human approval for risky writes (v0.3.0, below)
Why this design
Principle | How it is enforced |
Tools, not tables | Agents get five business-level tools, never raw MQI access |
Deny by default | Only queues on an allow-list are visible; everything else is refused |
Read-only by default | Writes need |
People approve risky writes | Puts to queues on |
Consuming is a separate decision | Destructive |
Bounded | Message size limit and a cap on how many messages one browse returns |
Auditable | Every call, allowed or denied, is a JSON audit line; bodies are never logged, only their SHA-256 |
Model-agnostic | Any MCP client: Claude Desktop, Claude Code, Copilot Studio, OpenAI Agents SDK, Gemini |
Related MCP server: Maximo MCP Server
Tools
Tool | What it does | MCP annotation |
| Queues this agent may read or write | read-only |
| Current depth of an allowed queue | read-only |
| Read up to N messages without removing them | read-only |
| Send a text message (optional correlation ID) | write |
| Consume the next message | destructive |
| Check whether a person approved a pending put | read-only |
Quick start (no IBM MQ needed)
pip install -e ".[dev]"
MQ_FAKE=true MQ_READ_QUEUES=ORDERS.STATUS mcp-ibm-mq-serverMQ_FAKE=true uses an in-memory queue manager seeded with a sample message, so you can try the tools from any MCP client in a minute.
Run against a real IBM MQ
Start IBM's free developer queue manager (creates
QM1,DEV.APP.SVRCONNandDEV.QUEUE.1):cp .env.example .env # set MQ_PASSWORD docker compose up -dInstall the IBM MQ client libraries (IBM MQ redistributable client) and the
mqextra:pip install -e ".[mq]"Point the server at the queue manager and choose what the agent may do:
export MQ_QMGR=QM1 MQ_CONN_INFO="localhost(1414)" MQ_CHANNEL=DEV.APP.SVRCONN export MQ_USER=app MQ_PASSWORD=... # from .env, never committed export MQ_READ_QUEUES=DEV.QUEUE.1 mcp-ibm-mq-server
Connect it to Claude Desktop
Add to claude_desktop_config.json (see examples/claude_desktop_config.json):
{
"mcpServers": {
"ibm-mq": {
"command": "mcp-ibm-mq-server",
"env": {
"MQ_FAKE": "true",
"MQ_READ_QUEUES": "ORDERS.STATUS",
"MQ_AGENT_ID": "claude-desktop"
}
}
}
}Then ask: "What's on the ORDERS.STATUS queue?"
Configuration
Variable | Default | Purpose |
| (none) | Comma-separated queues the agent may browse and inspect |
| (none) | Queues the agent may put to |
|
| Master switch for all writes |
|
| Allow |
|
| Largest message an agent may send |
|
| Most messages one browse returns |
| (none) | Write queues where every put needs a person's approval |
|
| How long a request (or an unused approval) stays valid |
| in memory | JSON file shared by the server and the approver CLI |
| stderr | Path for JSON-lines audit log |
|
| Identity recorded in the audit log |
| Queue manager connection | |
|
| Use the in-memory demo queue manager |
Production notes
Run the server behind your API gateway (Apigee, Azure API Management, Kong, IBM API Connect) when exposing it over HTTP, so agents inherit OAuth identity, rate limits and logging. Use stdio for local clients.
Give the MQ user least privilege with
setmqaut(browse/inq on read queues, put on write queues only) and enable TLS and CHLAUTH on the channel. The policy here is a second line of defence, not a replacement for MQ security.Ship the audit log to your SIEM; correlate on
audit_id,msg_idandMQ_AGENT_ID.Put high-risk queues (payments, account changes) on
MQ_APPROVAL_QUEUESand keep the approval store on durable, access-controlled storage.
Tests
pip install -e ".[dev]" && pytestTests use the in-memory client, so they run anywhere, including CI.
Human approval
For queues where a wrong message costs real money or harm (payments, account changes), the agent can propose a put but cannot send it on its own:
The agent calls
put_message. Nothing is sent. The server records a request and returnsstatus: approval_requiredwith anapproval_id.A person reviews it outside the agent and decides, with their name and a reason:
export MQ_APPROVAL_STORE=/var/lib/mcp-ibm-mq/approvals.json # same file as the server mcp-ibm-mq-approvals list mcp-ibm-mq-approvals show apr_3f9c2a1b7d4e6f80 mcp-ibm-mq-approvals approve apr_3f9c2a1b7d4e6f80 --approver jane.doe --reason "Matches invoice 4411"The agent calls
put_messageagain with the same queue, the same body and theapproval_id.
The server only sends it if the request was approved, by someone other than the requesting agent, has not expired, matches the approved queue and body (SHA-256), and has not been used before. Expiry never turns into approval. The agent has no tool that can approve anything, and every request, decision and send is in the audit log.
The CLI is the simplest approver; in production, point your own workflow tool (ServiceNow, a Teams approval, a case system) at the same store or replace ApprovalStore with one backed by it.
Release gate
Every pull request runs an eval gate (.github/workflows/ci.yml, job eval-gate). A change does not merge if any score drops below its floor in evals/thresholds.yaml.
Layer | What it checks | Needs |
Deterministic ( | 44 cases in | Nothing; runs free on every PR |
Agent ( | Claude drives the tools for 10 prompts in |
|
Run it locally:
pip install -e ".[evals]"
python evals/run_evals.py # deterministic gate
ANTHROPIC_API_KEY=... python evals/run_agent_evals.py # agent evalsThe gate is itself tested: tests/test_evals.py weakens the policy on purpose (prefix matching on queue names, ignoring read-only, approvals that skip the body check or never expire) and checks that the gate blocks it.
Roadmap
Streamable HTTP transport with OAuth (MCP authorization spec)
JSON-schema validation of message bodies per queue
IBM MQ REST API client option (no native client libraries)
About
Built by Aashish Malaviya, Principal Architect at Arch SI (Architecture · System Intelligence). 20+ years of enterprise integration on IBM MQ, ACE and DataPower across banking, security services and government, now connecting AI agents to the systems they act on.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP gateway: one connection for your AI apps, with tool policies, PII redaction and audit logs.
An MCP gateway for teams deploying AI tools at scale to employee-facing and headless agents.
Governed app access for AI agents: 1,000+ apps & 12,000+ tools via Code Mode MCP.
IAM for AI agents, providing secure credential management, individual agent identities, scoped credential access, approval controls and audit logs. Connect via MCP using OAuth or an agent token.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables LLM clients to interact with IBM MQ by exposing management and messaging REST APIs as 15 MCP tools, covering queue manager queries, MQSC commands, object inspection, and message send/receive operations.15-
- AlicenseNot gradedqualityCmaintenanceConnects AI assistants directly to IBM Maximo so they can discover APIs, inspect schemas, query live data, generate Carbon UI, and create, update, or act on Maximo records through natural language.Apache 2.0

JMSToolBox MCP Serverofficial
AlicenseNot gradedqualityBmaintenanceEnables AI assistants to connect to JMS brokers such as IBM MQ, ActiveMQ, Artemis, RabbitMQ, TIBCO, Solace, and WebLogic, browse queues non-destructively, inspect messages and queue depth, and optionally send or consume messages when read-only safeguards are disabled. It auto-discovers JMSToolBox configurations and loads broker client drivers dynamically.27 npm1Apache 2.0- AlicenseNot gradedqualityBmaintenanceEnables AI agents and LLM-based tools to invoke InterSystems Interoperability Productions' Business Services through natural language as native MCP tools, with per-tool security guardrails, approval workflows, and auditability.MIT