# N8N Workflows for Memento MCP ## Introduction Example N8N workflows using the Memento MCP server via **Streamable HTTP** transport. **Prerequisite**: an API key generated from **Settings > MCP** in Memento. ## MCP Client Node Configuration In every workflow, the MCP Client node must be configured as follows: - **Server Transport**: `Streamable HTTP` - **MCP Endpoint URL**: `http://memento-mcp:3001/mcp` (Docker) or `http://YOUR_IP:3001/mcp` - **Authentication**: Header Auth with `x-api-key` = your API key ## Available Workflows ### 1. Create Note (`n8n-workflow-create-note.json`) Creates notes in Memento with AI-based classification. ```json { "tool": "create_note", "arguments": { "content": "Meeting with client next week", "title": "Client Meeting", "labels": ["work"], "notebookId": "cuid123..." } } ``` ### 2. Search & Summary (`n8n-workflow-search-summary.json`) Searches notes and generates a summary. ```json { "tool": "search_notes", "arguments": { "query": "project timeline" } } ``` ### 3. Notebook Manager (`n8n-workflow-notebook-management.json`) Full CRUD for notebooks. ```json { "tool": "create_notebook", "arguments": { "name": "Work Projects", "icon": "briefcase", "color": "#3B82F6" } } ``` ### 4. Reminder Notifications (`n8n-workflow-reminder-notifications.json`) Automates reminders with notifications. - Trigger: Schedule (cron: `0 */30 * * * *`) - Calls `get_due_reminders` and sends notifications ### 5. Label Manager (`n8n-workflow-label-management.json`) Label management. ```json { "tool": "create_label", "arguments": { "name": "urgent", "color": "red", "notebookId": "cuid123..." } } ``` ### 6. Email to Note (`n8n-workflow-email-integration.json`) Automatically converts emails into notes. - Trigger: Email Trigger (IMAP) - Creates a note from the email content ## Import Instructions 1. Open N8N 2. **Import from File** → select the JSON file 3. Configure the MCP Client node (URL + API key) 4. Activate the workflow ## Security - Always use a dedicated API key per workflow - Never expose the key in logs - Restrict network access to port 3001 when possible