snmcp) is an open-source binary that runs on your machine and exposes StreamNative Cloud, Apache Kafka, and Apache Pulsar clusters as Model Context Protocol (MCP) tools. Your IDE copilot or agent runtime connects to the local server over stdio or SSE, and the server translates MCP tool calls into cluster operations.
Source code and Helm charts are available on GitHub.
Prerequisites
Before you install, make sure you have:- For StreamNative Cloud — a StreamNative Cloud account, organization ID, and a service account API key.
- For external Kafka — bootstrap server addresses and credentials (if authentication is enabled).
- For external Pulsar — the web service URL, service URL, and an authentication token (if required).
Install
- Homebrew (macOS / Linux)
- Docker
- Build from source
Quick start: connect to StreamNative Cloud
- Create a service account and download the key file. See Manage service accounts for details.
-
Run the local server in stdio mode:
- The server starts and waits for MCP requests on stdin/stdout. Point your IDE or agent runtime to this process (see IDE integration below).
Connect to an external Kafka cluster
Use the--kafka-* flags to connect to any Kafka cluster, including clusters outside StreamNative Cloud.
| Flag | Description |
|---|---|
--kafka-bootstrap-servers | Comma-separated list of broker addresses |
--kafka-auth-type | Kafka auth type |
--kafka-auth-mechanism | SASL mechanism (PLAIN, SCRAM-SHA-256, SCRAM-SHA-512) |
--kafka-auth-user | SASL username |
--kafka-auth-pass | SASL password |
--kafka-schema-registry-url | Schema Registry endpoint |
--kafka-schema-registry-auth-user | Schema Registry auth username |
--kafka-schema-registry-auth-pass | Schema Registry auth password |
--kafka-schema-registry-bearer-token | Schema Registry bearer token |
--kafka-use-tls | Enable TLS for broker connections |
--kafka-client-key-file | Kafka mTLS client key file |
--kafka-client-cert-file | Kafka mTLS client certificate file |
--kafka-ca-file | Kafka CA certificate file |
Connect to an external Pulsar cluster
Use the--pulsar-* flags to connect to any Pulsar cluster.
| Flag | Description |
|---|---|
--pulsar-web-service-url | Pulsar web service URL |
--pulsar-service-url | Pulsar binary service URL |
--pulsar-token | Authentication token |
--pulsar-auth-plugin | Pulsar auth plugin |
--pulsar-auth-params | Pulsar auth parameters |
--pulsar-tls-allow-insecure-connection | Allow insecure TLS connections |
--pulsar-tls-enable-hostname-verification | Enable TLS hostname verification |
--pulsar-tls-trust-certs-file-path | Path to trusted TLS certificate bundle |
--pulsar-tls-cert-file | Client TLS certificate file |
--pulsar-tls-key-file | Client TLS key file |
In external Kafka and external Pulsar modes, do not pass --features. The server enables the matching tool groups automatically.
IDE integration
Claude Desktop (stdio)
Add the following to your Claude Desktop MCP configuration file (claude_desktop_config.json):
Claude Code
Add the server using the Claude Code CLI:VS Code
Create or update.vscode/mcp.json in your workspace:
Cursor
Add the following to your Cursor MCP configuration file (.cursor/mcp.json):
Feature control
Use the--features flag to select which tool groups are available. This controls token usage and limits the tool catalog to what you need.
SSE server mode
Run the local server as an SSE endpoint for multi-client setups:http://localhost:8080/mcp/sse.
Additional endpoints:
- Health check:
http://localhost:8080/mcp/healthz - Readiness check:
http://localhost:8080/mcp/readyz
Multi-session Pulsar mode (SSE only)
For external Pulsar, you can enable per-user session management on the SSE server:Authorization: Bearer <token>.
Read-only mode
Restrict the server to read-only operations:Command logging
Enable command request and response logging for troubleshooting:What’s next
- Browse available tool groups in the MCP Tools Reference.
- Compare with the managed Remote MCP Server for a zero-install, team-shared alternative.
- Visit the GitHub repository for the latest releases, Helm charts, and contribution guidelines.