Skip to main content
Glama

create-project

Initiate new projects in n8n by specifying client ID and project name via compact JSON input. Requires n8n Enterprise with project management enabled.

Instructions

Create a new project in n8n. 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

Implementation Reference

  • Handler logic for the 'create-project' tool. Retrieves the N8nClient instance using clientId, validates it exists, then calls the client's createProject method with the provided name, handling success and error responses.
    case "create-project": { const { clientId, name } = args as { clientId: 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.createProject(name); return { content: [{ type: "text", text: `Successfully created project: ${name}`, }] }; } catch (error) { return { content: [{ type: "text", text: error instanceof Error ? error.message : "Unknown error occurred", }], isError: true }; } }
  • Input schema definition for the 'create-project' tool, specifying clientId and name as required string parameters.
    name: "create-project", description: "Create a new project in n8n. 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" }, name: { type: "string" } }, required: ["clientId", "name"] }
  • src/index.ts:519-528 (registration)
    Registration of the 'create-project' tool in the ListToolsRequestSchema handler's tools array.
    name: "create-project", description: "Create a new project in n8n. 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" }, name: { type: "string" } }, required: ["clientId", "name"] }
  • N8nClient helper method that makes a POST request to '/projects' with the project name to create a new project.
    async createProject(name: string): Promise<void> { return this.makeRequest<void>('/projects', { method: 'POST', 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/fellipesaraiva88/n8n-mcp-server'

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