Your own scenarios as tools for an AI agent

Exposes your ready scenarios as a set of tools for an AI agent: it finds the right scenario and runs it itself, while you add and remove them on the fly.

  • An AI agent runs your scenarios as tools
  • Add and remove scenario-tools on the fly
  • The list of available tools is assembled automatically
  • Fast access via Redis memory
n8nRedisMCP Client Tool

How it works

To create MCP Client Tool records from Redis without manual input, use a ready-made scenario.

  1. Starts when: When Executed by Another Workflow
  2. Then: Get Memory
  3. Check: Operations
  4. If yes: Get MCP-tagged Workflows
  5. Check: Filter Matching Ids
  6. Check: Workflow Exists?
  7. If yes: Simplify Workflows
  8. Then: Store In Memory
  9. Then: AddTool Success
  10. If no: AddTool Error
  11. If no: Convert to JSON
  12. Then: Split Out
  13. Check: Filter Matching IDs
  14. Check: Is Empty Array?
  15. If yes: Delete Key
  16. Then: Remove Tool Success
  17. If no: Store In Memory1
  18. If no: listTools Success
  19. If no: Get MCP-tagged Workflows1
  20. Then: Simplify Workflows1
  21. Then: listTools Success1
  22. If no: Convert to JSON1
  23. Check: Has Workflow Available?
  24. If yes: Get Parameters
  25. Then: Execute Workflow with PassThrough Variables
  26. Then: executeTool Result
  27. If no: ExecuteTool Error
  28. Then: AI Agent
  29. Starts when: When chat message received
  30. Then: MCP Client
  31. Then: Simple Memory
  32. Starts when: N8N Workflows MCP Server
  33. Then: Add Workflow
  34. Then: RemoveWorkflow
  35. Then: List Workflows
  36. Then: SearchWorkflows
  37. Then: ExecuteWorkflow
  38. Then: OpenAI Chat Model

You can launch this Redis + MCP Client Tool integration in Scriptera: describe the task in plain words — the scenario is built, launched and monitored for you.