Directus MCP Server

by pixelsock
Verified

createItem

Add new records to specified collections in Directus CMS using API URL, authentication token, and data object for efficient content management.

Instructions

Create a new item in a collection

Input Schema

NameRequiredDescriptionDefault
collectionYesCollection name
dataYesItem data
tokenNoAuthentication token (default from config)
urlNoDirectus API URL (default from config)

Input Schema (JSON Schema)

{ "properties": { "collection": { "description": "Collection name", "type": "string" }, "data": { "description": "Item data", "type": "object" }, "token": { "description": "Authentication token (default from config)", "type": "string" }, "url": { "description": "Directus API URL (default from config)", "type": "string" } }, "required": [ "collection", "data" ], "type": "object" }

You must be authenticated.

Other Tools from Directus MCP Server

Related Tools

ID: t8xgans6q3