Skip to main content
Glama

Directus MCP Server

import { readMe } from "@directus/sdk"; import * as z from "zod"; import { defineTool } from "../../utils/define-tool.js"; export default defineTool("users-me", { description: "Retrieve information about the current user", inputSchema: z.object({ fields: z.array(z.string()), }), handler: async (directus, { fields }) => { const me = await directus.request(readMe({ fields })); return { content: [{ type: "text", text: JSON.stringify(me) }] }; }, });

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