Skip to main content
Glama

Directus MCP Server

collections.ts361 B
import * as z from "zod"; import { defineTool } from "../utils/define-tool.js"; export default defineTool("read-collections", { description: "Retrieve the schema of the connected Directus instance", inputSchema: z.object({}), handler: async (_directus, _args, { schema }) => { return { content: [{ type: "text", text: JSON.stringify(schema) }] }; }, });

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/rijkvanzanten/directus-mcp-server'

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