Strava Activity Management Tool Server for AI Agents - n8n Workflow

Use this specialized n8n workflow to expose nine Strava API operations (create, get, update activities) as callable tools for an external AI agent using the n8n Multi-Chain Prompt trigger.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • AI Developers integrating real-world fitness data capabilities into Large Language Models (LLMs).

  • Advanced n8n users building complex, agent-based automations.

  • Technical users looking for high-performance n8n templates for tool calling in AI workflows.

  • Anyone needing to automate complex Strava management tasks via an n8n node structure.

Overview

This robust n8n workflow serves a crucial function in modern AI integration: acting as a secure and reliable tool server for the Strava API. Instead of requiring the AI agent to handle complex API calls directly, this n8n workflow abstracts the functionality into nine precise tools, such as 'Create an activity' or 'Get all activity streams'. When the AI agent determines it needs to interact with Strava data (based on a user request), it sends a structured request to the dedicated n8n trigger endpoint. The n8n workflow then executes the corresponding Strava API operation using the configured n8n node, ensuring data consistency and centralized credential management. This architecture demonstrates how powerful n8n templates can be when combined with AI agents, allowing for sophisticated, data-driven automation. This particular n8n workflow is designed for maximum operational coverage, providing all essential Strava activity management features.

How it Works

The operational flow of this n8n workflow is designed around external command execution via an AI agent:


  1. Trigger Activation (MCP Trigger): The n8n workflow is initiated by the custom Multi-Chain Prompt (MCP) n8n trigger. This trigger endpoint is exposed to the external AI agent (often an LLM setup using frameworks like LangChain or similar prompt orchestration tools). The AI agent sends a request specifying which Strava operation (tool) it needs to call.

  2. Tool Routing: Due to the internal logic of the MCP n8n trigger, the incoming request is routed directly to the designated Strava Tool n8n node based on the requested tool name (e.g., 'Get an activity').

  3. Execution: The relevant Strava Tool n8n node executes the precise API call (e.g., fetching activity details, creating a new entry, or updating existing data).

  4. Return Value: The n8n workflow returns the result of the Strava API operation back through the MCP n8n trigger to the requesting AI agent, allowing the agent to formulate the final user response or take further action. This setup effectively turns a standard n8n installation into a high-utility, domain-specific AI tool server using the flexibility of the n8n node system. This entire setup is packaged neatly within this reusable n8n templates structure.

Installation Guide

To deploy and utilize this powerful n8n workflow, follow these steps:


  1. Import the n8n Workflow: Copy the provided JSON data and navigate to your n8n instance. Select 'Workflows' > 'New' > 'Import from JSON' and paste the code.

  2. Activate Credentials: The workflow relies on the Strava Tool n8n node, which requires Strava API credentials (OAuth 2.0 or Token based) configured in n8n. Go to 'Credentials' and set up a new Strava credential record.

  3. Configure the Trigger: The Strava Tool MCP Server n8n trigger (the MCP trigger) will automatically generate a webhook URL upon activation. This URL must be provided to your external AI agent configuration so it knows where to send the tool requests.

  4. Test and Activate: Ensure all nine Strava Tool n8n nodes are correctly linked to the trigger. Test the connection, save the n8n workflow, and set it to 'Active'.

Node Details

This n8n workflow utilizes a highly specialized trigger and nine instances of the Strava Tool n8n node, each dedicated to a specific API operation.

Strava Tool MCP Server (MCP Trigger):
Function: Acts as the primary listener for requests coming from an external AI agent. It uses the Multi-Chain Prompt trigger functionality to register the entire workflow (and all linked Strava tools) as callable functions for the LLM.
Key Configuration: Generates a unique webhook URL for AI tool invocation.

Create an activity (Strava Tool n8n node):
Function: Executes the Strava API call to log or create a new activity record (e.g., Run, Ride, Swim).

Get an activity (Strava Tool n8n node):
Function: Retrieves detailed information for a single, specific activity using its unique ID.

Get all activity comments (Strava Tool n8n node):
Function: Fetches all comments associated with a particular Strava activity.

Get all activity kudos (Strava Tool n8n node):
Function: Retrieves the list of athletes who have given kudos to a specified activity.

Get all activity laps (Strava Tool n8n node):
Function: Accesses data detailing the lap segments of a recorded activity.

Get many activities (Strava Tool n8n node):
Function: Used for retrieving lists or feeds of multiple activities, typically associated with the authenticated user.

Get all activity streams (Strava Tool n8n node):
Function: Retrieves the raw data streams (like GPS coordinates, heart rate, cadence) associated with an activity.

Get all activity zones (Strava Tool n8n node):
Function: Retrieves performance zone analysis data for the activity.

Update an activity (Strava Tool n8n node):
* Function: Allows the AI agent to modify existing activity metadata (e.g., renaming the activity or changing its type). This comprehensive set of n8n templates ensures full control over Strava data.

Related n8n Workflows

Paid

Nodes: 3 Nodes
Updated: December 26 2025
View all
Created by

A hacker by nature, programmer by trade ⚒️ I'm looking to collaborate on things that save human labor 📫 How to reach me Github👇 -> Discord

Featured*