redpanda-console-mcp
This read-only MCP server lets an AI assistant inspect a Redpanda Console Kafka cluster and retrieve/search messages.
List Kafka topics with partition and replication counts, with optional paging and name filtering.
Show cluster health, version, broker count, and partition count.
Describe a topic's effective configuration.
Fetch the latest messages from a topic.
Fetch messages forward from a specific offset.
Fetch messages from the first offset at or after a timestamp.
Search messages whose key or value contains a substring, with options for case sensitivity, partition, scan start offset/timestamp, and result limit.
Read only: it does not produce, delete, or alter cluster configuration.
Provides tools for reading and searching Kafka messages through a Redpanda Console HTTP API, including listing topics, viewing cluster info, describing topic configurations, fetching messages by offset or timestamp, and searching message contents.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@redpanda-console-mcp Show me the latest messages from the orders topic"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
redpanda-console-mcp
An MCP server that lets an AI assistant read and search Kafka messages through Redpanda Console.
Zero runtime dependencies. Node 18.17+.
What it does
Point it at a Redpanda Console instance and your assistant can answer questions
like "what did the last 20 messages on orders look like?" or "find the message
mentioning order-4821" without you opening the UI.
Message search runs server-side, inside the Console's sandboxed JavaScript interpreter, so only matching messages cross the network.
Related MCP server: Kafka MCP Server
Tools
Tool | Purpose |
| List topics with partition count and replication factor. Pass |
| Cluster health: status, version, broker and partition counts |
| Effective configuration of one topic |
| Most recent messages from a topic |
| Messages from an offset, reading forwards |
| Messages from the first offset at or after a timestamp |
| Messages whose key or value contains a substring |
All seven are annotated readOnlyHint: true, destructiveHint: false.
Arguments are checked on the server side too, because clients don't have to
validate them. A misspelled argument such as partition (instead of
partition_id) gets an error naming the expected arguments. It is not dropped
silently, where it would quietly read every partition.
Install
npx redpanda-console-mcp # no install
npm install -g redpanda-console-mcpConfiguration
Variable | Required | Default | Meaning |
| yes | — | Console address, e.g. |
| no | (none) | Sent as |
| no |
| Request timeout in seconds, covering all retries |
| no |
| Retries for network failures and HTTP 429, 502, 503 and 504 (0-5) |
| no |
| Set |
There is deliberately no default base URL: pointing a Kafka client at a guessed
host is worse than refusing to start. Without CONSOLE_BASE_URL the server exits
with status 2 and says so.
Client setup
Claude Desktop (claude_desktop_config.json) or Claude Code (~/.claude.json):
{
"mcpServers": {
"redpanda-console": {
"command": "npx",
"args": ["-y", "redpanda-console-mcp"],
"env": { "CONSOLE_BASE_URL": "https://console.example.com" }
}
}
}opencode (opencode.json):
{
"mcp": {
"redpanda-console": {
"type": "local",
"command": ["npx", "-y", "redpanda-console-mcp"],
"enabled": true,
"environment": { "CONSOLE_BASE_URL": "https://console.example.com" }
}
}
}See docs/SETUP.md for a connectivity check to run before wiring up a client, plus troubleshooting.
Limits
max_resultsis capped at 500. The Console aborts its response stream above that; page through a topic withfetch_by_offsetinstead.page_sizeforlist_topicsis capped at 1000.Search text is capped at 4096 characters.
A single tool result is capped at ~200 KB. Oversized results shed whole messages and return
truncated, whoseresume_fromlists the partition and offset to continue from withfetch_by_offset. If the first message alone is too large, its value is cut and flagged withvalue_truncatedandvalue_total_chars.If the stream times out, drops or closes early after some messages have arrived, those messages are returned as
{ "messages": [...], "incomplete": { returned, requested, reason } }. They are not thrown away. This is the normal result of a live tail (start_offset: -3) on a quiet topic. A timeout before any message arrives is still an error.Transient failures are retried with backoff, honouring
Retry-Afterup to 5 seconds. A stream that has already started is never restarted.A client can stop a running call with
notifications/cancelled, which also closes the upstream request.
Notes on behaviour
A few Console details this server absorbs so the model does not have to:
proto3 omits zero values. A missing
partitionIdmeans partition 0, not "unknown". Defaulting it to null would mislabel every message on partition 0.64-bit integers arrive as strings.
offsetandtimestampcome back as"105825"; they are parsed to numbers.Unary and streaming Connect RPC differ. Unary methods need plain
application/json— sending the streaming content type yields HTTP 415. Streaming methods use 5-byte length-prefixed envelopes, which routinely straddle TCP chunk boundaries.Binary payloads are not mangled. Values that are not valid UTF-8 are returned as base64 and flagged with
value_is_binary. Binary keys getkey_is_binary: true.partition_id: -1reads every partition, so an offset is applied per partition. Pass an explicit partition to page deterministically.
Security
This server only reads. It never produces, deletes, or alters configuration.
It cannot, however, reduce the privileges of the credential you give it — use a read-only Console user. Search terms are embedded as JSON string literals, so they cannot escape into executable code in the Console's interpreter.
Error text is scrubbed of the API key, bearer and basic tokens, URL credentials
and common password= style values before it reaches the model. Kafka message
content is returned as stored, so anyone using this server can read whatever the
credential can read. Credentials embedded in CONSOLE_BASE_URL are ignored with
a warning; use CONSOLE_API_KEY.
CONSOLE_VERIFY_TLS=false disables certificate verification for the whole
process and prints a warning. Use it only against a host you control.
Development
npm test # offline; end-to-end tests use a loopback mock Console
npm run test:coverageLicense
MIT
Available Tools
7 toolscluster_infoA
Get cluster health: status, version, broker and partition counts.
Inputs: no named parameters.
describe_topicA
Get the effective configuration of a topic.
Inputs: topic (required).
fetch_by_offsetB
Fetch messages starting at an offset, reading forwards.
With partition_id=-1 the offset is applied to every partition, so pass an explicit partition to page deterministically through a topic.
Inputs: topic (required), offset (required), max_results, partition_id. Returns: result
fetch_by_timeA
Fetch messages from the first offset at or after a timestamp.
Inputs: topic (required), timestamp_ms (required), max_results, partition_id. Returns: result
fetch_latestB
Fetch the most recent messages from a topic.
Inputs: topic (required), max_results, partition_id. Returns: result
list_topicsB
List Kafka topics with partition count and replication factor.
Inputs: page_size, name_contains. Returns: object
search_messagesA
Find messages whose key or value contains the given text.
Matching runs server-side in the Console's sandboxed JavaScript interpreter, so only matching messages are transferred. Scanning starts from the oldest message by default; narrow the range with start_offset or start_timestamp_ms on high-volume topics.
Inputs: text (required), topic (required), max_results, partition_id, +3 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Most tools target distinct resources or operations: listing topics, cluster health, topic config, and message retrieval. The four message-fetching tools (fetch_latest, fetch_by_offset, fetch_by_time, search_messages) share a domain but are clearly differentiated by their selection criteria, so an agent can select correctly.
Tool names follow a mostly consistent snake_case pattern with action-first verbs like list_, describe_, fetch_, and search_. Minor deviations include cluster_info (noun phrase instead of verb_noun) and fetch_latest (verb_adjective), but the overall style is predictable and readable.
Seven tools is a well-scoped set for a read-only Kafka console interface. Each tool earns its place by covering topic listing, cluster health, topic configuration, and various message retrieval strategies without redundancy or bloat.
The surface adequately covers read-only inspection of a Kafka cluster: topics, cluster state, topic configs, and message retrieval by newest, offset, time, or content. Missing consumer group inspection and topic management (create/delete) are notable but likely outside the read-only console scope, so agents can still achieve core monitoring tasks.
Maintenance
Related MCP Connectors
Get authoritative answers about Redpanda documentation and search API references.
Read-only Reddit search API for AI agents: posts, comments, comment trees, subreddit rules.
Lets AI agents analyze API metrics, request logs, and traces, and manage apps and alerts.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Apache Kafka topics, allowing users to publish messages to and read messages from Kafka instances through natural language.1Apache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with Apache Kafka through natural language, supporting operations like producing/consuming messages, managing topics, and querying brokers, partitions, and consumer group offsets.1MIT
- FlicenseCqualityDmaintenanceExposes Kafka administration operations as MCP tools, enabling AI agents to inspect Kafka clusters using natural language.1-
- FlicenseBqualityNot gradedmaintenanceEnables interaction with Apache Kafka clusters, allowing management of topics, message production, and consumption through natural language.5-