Skip to main content
Glama

update-project

Modify a project's name in the n8n MCP Server by providing clientId, projectId, and new name as compact JSON. Requires n8n Enterprise license with project management features enabled.

Instructions

Update a project's name. NOTE: Requires n8n Enterprise license with project management features enabled. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clientIdYes
nameYes
projectIdYes

Implementation Reference

  • Handler for the 'update-project' tool. Retrieves the N8nClient by clientId, validates it exists, then calls client.updateProject(projectId, name) to update the project name via the n8n API.
    case "update-project": { const { clientId, projectId, name } = args as { clientId: string; projectId: string; name: string }; const client = clients.get(clientId); if (!client) { return { content: [{ type: "text", text: "Client not initialized. Please run init-n8n first.", }], isError: true }; } try { await client.updateProject(projectId, name); return { content: [{ type: "text", text: `Successfully updated project ${projectId} with new name: ${name}`, }] }; } catch (error) { return { content: [{ type: "text", text: error instanceof Error ? error.message : "Unknown error occurred", }], isError: true }; } }
  • src/index.ts:543-554 (registration)
    Registration of the 'update-project' tool in the ListToolsRequestSchema handler, including its name, description, and input schema.
    name: "update-project", description: "Update a project's name. NOTE: Requires n8n Enterprise license with project management features enabled. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.", inputSchema: { type: "object", properties: { clientId: { type: "string" }, projectId: { type: "string" }, name: { type: "string" } }, required: ["clientId", "projectId", "name"] } },
  • Input schema definition for the 'update-project' tool, specifying parameters: clientId, projectId, name.
    type: "object", properties: { clientId: { type: "string" }, projectId: { type: "string" }, name: { type: "string" } }, required: ["clientId", "projectId", "name"] }
  • N8nClient helper method that makes the PUT request to /projects/{projectId} with the new name to update the project.
    async updateProject(projectId: string, name: string): Promise<void> { return this.makeRequest<void>(`/projects/${projectId}`, { method: 'PUT', body: JSON.stringify({ name }), }); }

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/illuminaresolutions/n8n-mcp-server'

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