Skip to main content
Glama

Directus MCP Server

by pixelsock

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

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pixelsock/directus-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server