Appendix

Quick reference tables, common patterns, and troubleshooting guides for working with n8n-mcp tools.

Quick Reference Tables

All Tools Summary

ToolCategoryPurposen8n API Key
search_nodesDiscoveryFind nodesNo
search_templatesDiscoveryFind templatesNo
get_nodeConfigurationNode detailsNo
get_templateConfigurationTemplate detailsNo
validate_nodeValidationValidate configNo
validate_workflowValidationValidate workflowNo
n8n_create_workflowManagementCreate workflowYes
n8n_get_workflowManagementGet workflowYes
n8n_update_full_workflowManagementFull updateYes
n8n_update_partial_workflowManagementIncremental updateYes
n8n_delete_workflowManagementDelete workflowYes
n8n_list_workflowsManagementList workflowsYes
n8n_validate_workflowManagementValidate by IDYes
n8n_autofix_workflowManagementAuto-fix issuesYes
n8n_test_workflowManagementTest executionYes
n8n_executionsManagementManage executionsYes
n8n_workflow_versionsManagementVersion controlYes
n8n_deploy_templateManagementDeploy templateYes
n8n_health_checkSystemHealth checkYes
tools_documentationSystemGet docsNo

Validation Profiles

ProfileDescriptionUse Case
minimalVery lenientQuick iteration
runtimeStandard checksDefault
ai-friendlyBalancedAI workflows
strictMost thoroughProduction

AI Connection Types

TypeDescription
ai_languageModelLanguage model → AI Agent
ai_toolTool → AI Agent
ai_memoryMemory → AI Agent
ai_outputParserParser → AI Agent
ai_embeddingEmbeddings → Vector Store
ai_vectorStoreVector Store → Tool
ai_documentDocument → Vector Store
ai_textSplitterSplitter → Document chain

Common Patterns

Create and Connect Pattern

javascript
// Add node and connect in one call
n8n_update_partial_workflow({
  id: "wf_id",
  operations: [
    {type: "addNode", node: {...}},
    {type: "addConnection", source: "Previous", target: "New Node"}
  ]
})

Validate Before Deploy Pattern

javascript
// 1. Validate workflow JSON
const result = validate_workflow({workflow: myWorkflow});

if (result.valid) {
  // 2. Create in n8n
  const created = n8n_create_workflow({
    name: "My Workflow",
    nodes: myWorkflow.nodes,
    connections: myWorkflow.connections
  });

  // 3. Final validation
  n8n_validate_workflow({id: created.id});
}

Debug Execution Pattern

javascript
// 1. List recent executions
const execs = n8n_executions({
  action: "list",
  workflowId: "wf_id",
  status: "error",
  limit: 5
});

// 2. Get details of failed execution
const details = n8n_executions({
  action: "get",
  id: execs.data[0].id,
  mode: "full"
});

Troubleshooting

"Tool unavailable" Error

Cause: n8n API credentials not configured

Solution: Set up your n8n API key in the dashboard under Settings → n8n Connection

"Workflow not found" Error

Cause: Workflow ID doesn't exist or was deleted

Solution: Use n8n_list_workflows to verify workflow exists

"Validation failed" Error

Cause: Workflow has structural issues

Solution:

  1. Check error details in response
  2. Use n8n_autofix_workflow to fix common issues
  3. Review node configurations

"Cannot execute workflow" Error

Cause: Workflow doesn't have webhook/form/chat trigger

Solution: Only workflows with these triggers can be executed via API. Use n8n UI for manual execution.

AI Agent "No language model" Error

Cause: Language model not connected properly

Solution:

  1. Add language model node first
  2. Connect with sourceOutput: "ai_languageModel"
  3. Validate workflow