Skip to main content
Glama
DrBalls

n8n MCP Server

by DrBalls

n8n_get_project

Retrieve details of a specific n8n project by providing its unique ID to access project information including name and type.

Instructions

Get details of a specific project.

Args:

  • id (string): Project ID

Returns: Project details with id, name, and type.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe unique identifier of the resource

Implementation Reference

  • The 'n8n_get_project' tool is defined and implemented here as an asynchronous handler using the project ID to fetch project details via the 'get' API service.
      server.registerTool(
        'n8n_get_project',
        {
          title: 'Get n8n Project',
          description: `Get details of a specific project.
    
    Args:
      - id (string): Project ID
    
    Returns:
      Project details with id, name, and type.`,
          inputSchema: IdParamSchema,
          annotations: {
            readOnlyHint: true,
            destructiveHint: false,
            idempotentHint: true,
            openWorldHint: false
          }
        },
        async (params: z.infer<typeof IdParamSchema>) => {
          const project = await get<N8nProject>(`/projects/${params.id}`);
          
          return {
            content: [{ type: 'text', text: formatProject(project) }],
            structuredContent: project
          };
        }
      );

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

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