# Directus MCP Server

Enable AI Clients to interact with the Directus API through a standardized protocol. Simplify data management and enhance your applications by leveraging the capabilities of Directus with AI integrat…

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add pixelsock/directus-mcp

# Browse available tools
npx -y @smithery/cli@latest tool list pixelsock/directus-mcp

# Get full schema for a tool
npx -y @smithery/cli@latest tool get pixelsock/directus-mcp getItems

# Call a tool
npx -y @smithery/cli@latest tool call pixelsock/directus-mcp getItems '{}'
```

## Tools (18)

- `getItems` — Get items from a collection in Directus
- `getItem` — Get a single item from a collection by ID
- `createItem` — Create a new item in a collection
- `updateItem` — Update an existing item in a collection
- `deleteItem` — Delete an item from a collection
- `getSystemInfo` — Get system information from Directus
- `getCollections` — Get all collection schemas from Directus
- `login` — Login to Directus and get an access token
- `getActivity` — Get activity logs from Directus
- `getFields` — Get fields for a collection
- `getRelations` — Get relations for a collection
- `getFiles` — Get files from Directus
- `uploadFile` — Upload a file to Directus
- `getUsers` — Get users from Directus
- `getCurrentUser` — Get the current user info
- `getRoles` — Get roles from Directus
- `getPermissions` — Get permissions from Directus
- `getConfig` — Get current configuration information (without secrets)

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get pixelsock/directus-mcp <tool-name>
```

---

Source: https://github.com/pixelsock/directus-mcp
