rpk ai mcp-server create
Create an MCP server.
Choose the backend by setting flags from one group; the group you use selects it: remote, managed. Setting flags from two groups is an error.
| This command was introduced in ai version 0.2.28. |
Examples
This section provides examples of how to use rpk ai mcp-server create.
rpk ai mcp-server create my-mcp-server \
--remote.url https://mcp.example.com/sse \
--remote.transport sse
Flags
| Value | Type | Description |
|---|---|---|
|
bool |
Whether this server is active and discoverable. (true when set; pass |
|
string |
Human-readable description shown in help text and UIs. |
|
bool |
Enable code mode: adds {name}_search and {name}_execute tools alongside existing tools. (true when set; pass |
|
stringArray |
Data policies shaping this server’s tool calls (see MCPServer.data_policies). (repeatable; protojson object; replaces the full list on update). |
|
string |
Output format for tool results (token optimization). (one of: jton, toon). |
|
stringArray |
Arbitrary key/value metadata tags (see MCPServer.tags). (repeatable key=value; replaces the full map on update). (New in 0.2.33) |
|
string |
Endpoint URL of the remote MCP server. (required in its group) (alias: |
|
string |
MCP transport protocol. SSE for server-sent events, Streamable HTTP for newer bidirectional protocol. (one of: sse, streamable-http; required in its group) (alias: |
|
bool |
None. (selects this auth mode; takes no value). |
|
bool |
Token passthrough. (selects this auth mode; takes no value). |
|
string |
Secret store reference for the API key. (required in its group). |
|
string |
HTTP header name for the API key. Defaults to 'Authorization'. |
|
string |
OAuth client ID from the provider’s developer console. (required in its group). |
|
string |
Secret store reference for the OAuth client secret. (required in its group). |
|
string |
OAuth token endpoint URL for exchanging credentials. (required in its group). |
|
strings |
OAuth scopes to request when obtaining tokens. (repeatable; replaces the full list on update). |
|
string |
OAuth provider that manages tokens for this server’s users. Leave empty to set OAuth up automatically from the server URL. |
|
strings |
Minimum OAuth scopes a user’s connection must have. Insufficient scopes return a scope_upgrade_required error. (repeatable; replaces the full list on update). |
|
string |
HTTP header name for the token. Defaults to 'Authorization'. |
|
string |
Value prefix before the token. Defaults to 'Bearer'. Set empty for no prefix. |
|
string |
OAuth client ID from the vendor console. Only for automatic setup of a server without dynamic client registration; leave empty otherwise. |
|
string |
Secret-store reference for the OAuth client secret (confidential apps only). Leave empty for public PKCE clients. |
|
bool |
Ask the gateway to set OAuth up for this server instead of attaching an existing provider. (true when set; pass |
|
types |
Type-specific configuration for the managed MCP server. (protojson with an "@type": a short type name (run the resource’s types command) or a full type URL). |
|
string |
manifest to create from (YAML or JSON; "-" for stdin); flags override file values. |
|
bool |
print the request that would be sent (with the computed update mask) and exit without calling the server. |
Global flags
| Value | Type | Description |
|---|---|---|
|
string |
Redpanda or |
|
stringArray |
Override |
|
bool |
Ignore |
|
string |
|
|
bool |
Enable verbose logging. |