Home / Servers / DigitalOcean API / genai_create_knowledge_base

Create a Knowledge Base

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

Create a Knowledge Base To create a knowledge base, send a POST request to /v2/gen-ai/knowledge_bases. [POST /v2/gen-ai/knowledge_bases]

Name on the gateway: digitalocean_api__genai_create_knowledge_base · may change things.

Parameters

NameTypeDescription
database_idstringIdentifier of the DigitalOcean OpenSearch database this knowledge base will…
datasourcesarrayOptional data sources to attach at creation. Omit or use an empty list to…
embedding_model_uuidstringIdentifier for the embedding model.
namestringName of the knowledge base.
project_idstringIdentifier of the DigitalOcean project this knowledge base will belong to.
regionstringThe datacenter region to deploy the knowledge base in.
reranking_configobjectConfiguration for cross-encoder reranking during retrieval.
sizeOPEN_SEARCH_PLAN_SIZE_UNSPECIFIED | OPEN_SEARCH_PLAN_SIZE_SMALL | OPEN_SEARCH_PLAN_SIZE_MEDIUM | OPEN_SEARCH_PLAN_SIZE_LARGE | OPEN_SEARCH_PLAN_SIZE_EXTRA_LARGE
tagsarrayTags to organize your knowledge base.
vpc_uuidstringThe VPC to deploy the knowledge base database in

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__genai_create_knowledge_base",
  "arguments": {}
}

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 a knowledge base tool with database_id set to ….

More from DigitalOcean API