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 issue #1 of my newsletter, Integration to Intelligence: "Your AI agent shouldn't touch your core systems directly."
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 |
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: xT 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 |
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 |
| 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.Keep a human-in-the-loop step for high-risk puts (payments, account changes) in the agent workflow.
Tests
pip install -e ".[dev]" && pytestTests use the in-memory client, so they run anywhere, including CI.
Roadmap
Streamable HTTP transport with OAuth (MCP authorization spec)
JSON-schema validation of message bodies per queue
Approval hook for writes above a risk threshold
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…
Related MCP Connectors
MCP gateway: one connection for your AI apps, with tool policies, PII redaction and audit logs.
Governed app access for AI agents: 1,000+ apps & 12,000+ tools via Code Mode MCP.
Zero-secret MCP gateway for AI agents: risk-scored, audited calls with human-in-the-loop approval.
Connect AI agents to financial institution origination, analytics, and compliance workflows.
Related MCP Servers
- FlicenseAqualityBmaintenanceEnables 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 gradedqualityBmaintenanceEnables AI agents such as ChatGPT, Claude, and local LLMs to operate an enterprise digital-operations platform through MCP, exposing 19 model tools and 3 app-only tools for identity, data, workflow, files, and PII-controlled operations with role-based permissions and two-phase confirmations.Apache 2.0
- 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.72 npmApache 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.25 npm1Apache 2.0