KosmoKrator

messaging

RabbitMQ MCP Integration for Vercel AI SDK

Connect RabbitMQ to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

6 functions 6 read 0 write Username and password auth

Connect RabbitMQ to Vercel AI SDK

Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.

Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with --write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.

RabbitMQ MCP Config for Vercel AI SDK

Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.

{
  "mcpServers": {
    "kosmokrator-rabbitmq": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=rabbitmq",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=rabbitmq --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only RabbitMQ instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

RabbitMQ Tools Visible to Vercel AI SDK

Vercel AI SDK sees stable MCP tool names generated from the RabbitMQ integration catalog.

MCP toolSource functionTypeDescription
integration__rabbitmq__rabbitmq_list_queues rabbitmq.rabbitmq_list_queues Read List all RabbitMQ queues across all virtual hosts. Returns queue names, vhost, message counts, consumer counts, and state.
integration__rabbitmq__rabbitmq_get_queue rabbitmq.rabbitmq_get_queue Read Get detailed information about a specific RabbitMQ queue, including message counts, consumers, bindings, policy, and arguments.
integration__rabbitmq__rabbitmq_list_exchanges rabbitmq.rabbitmq_list_exchanges Read List all RabbitMQ exchanges across all virtual hosts. Returns exchange names, types, vhost, and durability.
integration__rabbitmq__rabbitmq_list_connections rabbitmq.rabbitmq_list_connections Read List all active RabbitMQ AMQP connections. Returns client info, peer host/port, channels, and connection state.
integration__rabbitmq__rabbitmq_list_vhosts rabbitmq.rabbitmq_list_vhosts Read List all RabbitMQ virtual hosts. Returns vhost names, tracing status, and message counts.
integration__rabbitmq__rabbitmq_get_overview rabbitmq.rabbitmq_get_overview Read Get RabbitMQ cluster overview — node info, RabbitMQ version, message rates, queue totals, and listener ports.

Related RabbitMQ Pages