Home / Servers / DigitalOcean API / databases_create_kafka_topic

Create Topic for a Kafka Cluster

An MCP tool from the DigitalOcean API server, hosted on mcp.hjlabs.in.

Create Topic for a Kafka Cluster To create a topic attached to a Kafka cluster, send a POST request to /v2/databases/$DATABASE_ID/topics. The result will be a JSON object with a topic key. [POST /v2/databases/{database_cluster_uuid}/topics]

Name on the gateway: digitalocean_api__databases_create_kafka_topic · may change things.

Parameters

NameTypeDescription
database_cluster_uuid requiredstringA unique identifier for a database cluster.
name requiredstringThe name of the Kafka topic.
replication_factorintegerThe number of nodes to replicate data across the cluster.
partition_countintegerThe number of partitions available for the topic. On update, this value can…
configobject

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "digitalocean_api__databases_create_kafka_topic",
  "arguments": {
    "database_cluster_uuid": "…",
    "name": "…"
  }
}

Or connect the DigitalOcean API server directly, which lists 874 tools including this one:

Run in your terminal
claude mcp add --transport http hj-digitalocean-api https://mcp.hjlabs.in/mcp/digitalocean-api \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the create topic for a kafka cluster tool with database_cluster_uuid set to ….

More from DigitalOcean API