n8n
Connect n8n to the Clics remote MCP server to automate analytics reports, alerts, and workflows.
Connect Clics to n8n
Use Clics as a remote MCP server in n8n to query analytics and automate work with projects, goals, funnels, and sessions. This is an MCP connection, not a native Clics node.
1. Use the Clics remote MCP URL
https://api.clics.dev/v1/mcp
2. Add the MCP client
In your n8n workflow, add an MCP Client Tool and choose a Streamable HTTP connection. Enter the Clics remote MCP URL and complete OAuth authorization when prompted. If your n8n version does not support OAuth discovery for MCP, use the local MCP or REST API instead.
3. Choose and test tools
Select the Clics tools the workflow needs, connect the client to an AI Agent or compatible node, then run a manual test before activating the workflow.
Useful starting points:
query_statsfor scheduled traffic and conversion reportslist_goalsandlist_funnelsfor monitoringlist_sessionsandlist_session_eventsfor investigations
Recommended workflow pattern
Keep analytics retrieval separate from delivery so each part is easy to test:
- Use a Schedule Trigger or webhook to start the workflow.
- Let an AI Agent call the Clics MCP Client Tool.
- Normalize the returned structured content in a Set or Code node.
- Send the result to Slack, email, Notion, a database, or another destination.
For workflows that can modify Clics data, place an approval step before the AI Agent can run create, update, or delete tools.
Example automations
Weekly acquisition report
Schedule a Monday workflow that calls query_stats for the previous seven days. Ask for visitors and conversions grouped by source, then send a concise summary to your team channel.
Funnel drop-off alert
Retrieve a funnel on a schedule, compare the latest conversion rate with your stored baseline, and notify the owner when performance falls below an agreed threshold.
Session investigation queue
Use list_sessions to find recent high-value or non-bounce visits. Store their IDs, retrieve their events, and create investigation tasks for unusual journeys.
Choose the minimum tool set
Expose only the tools the workflow needs:
| Workflow | Suggested tools |
|---|---|
| Read-only reporting | query_stats, list_goals, list_funnels |
| Session analysis | list_sessions, get_session, list_session_events |
| Goal automation | list_goals, create_goal, update_goal |
| Funnel automation | list_funnels, get_funnel, create_funnel, update_funnel |
Troubleshooting
| Issue | What to check |
|---|---|
| Connection fails | The URL ends in /v1/mcp and uses Streamable HTTP |
401 |
Reconnect and complete the WorkOS authorization flow |
| Tools are missing | Refresh the node after saving the connection |