Skip to main content
Glama
netlify

Netlify MCP Server

Official
by netlify

netlify-user-services

Retrieve user data from Netlify by executing the 'get-user' operation through the Model Context Protocol, enabling integration with code agents for automating user management tasks.

Instructions

Select and run one of the following Netlify operations get-user

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
selectSchemaYes

Implementation Reference

  • Executes the core logic of the 'get-user' operation by fetching user data from the Netlify '/api/v1/user' endpoint using getAPIJSONResult helper.
    cb: async (_, {request}) => { return JSON.stringify(await getAPIJSONResult('/api/v1/user', {}, {}, request)); }
  • Zod input schema for the get-user tool, which requires no parameters.
    const getUserParamsSchema = z.object({});
  • Registers the grouped tool 'netlify-user-services-reader' (since user domain has only read tools) that dispatches to specific user operations like get-user.
    const friendlyOperationType = operationType === 'read' ? 'reader' : 'updater'; const toolName = `netlify-${domain}-services-${friendlyOperationType}`; const toolDescription = `Select and run one of the following Netlify ${operationType} operations${readOnlyIndicator} ${toolOperations.join(', ')}`; server.registerTool(toolName, { description: toolDescription, inputSchema: paramsSchema, annotations: { readOnlyHint: operationType === 'read' } }, async (...args) => {
  • Registers the individual 'getUserDomainTool' into the userDomainTools array used by bindTools.
    export const userDomainTools = [getUserDomainTool]
  • Helper function used by the handler to make authenticated API calls to Netlify and return JSON results.
    export const getAPIJSONResult = async (urlOrPath: string, options: RequestInit = {}, apiInteractionOptions: APIInteractionOptions = {}, incomingRequest?: Request): Promise<any> => {

Other Tools

Related Tools

Latest Blog Posts

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/netlify/netlify-mcp'

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