AI-Chat with Strava — Developing an LLM-Integration with MCP

· Source: Towards AI - Medium · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering, Data Science & Analytics · Depth: Intermediate, medium

Summary

This article details the development of an AI-powered integration between Strava and Anthropic's Claude, enabling users to analyze personal training data through natural language chat. The author utilized Claude Code within Visual Studio Code to program an MCP (Multi-modal Conversational Protocol) server in TypeScript. The process involved setting up a Strava developer app to obtain API credentials (Client ID, Client Secret, Access Token), configuring environment variables, and connecting the local MCP server to the Claude Desktop App via its developer settings. The integration successfully allowed Claude to retrieve and analyze Strava activity data, identify training trends (e.g., decreasing speed, reduced frequency, consistent routes), and generate personalized recommendations for improving running performance. The entire development and testing process was completed in approximately two hours.

Key takeaway

For AI Engineers and developers looking to create personalized data analysis tools, this project demonstrates a practical approach. You can leverage LLM coding assistants like Claude Code to rapidly develop integrations with third-party APIs, such as Strava, via an MCP server. This allows for natural language querying and AI-driven insights into personal data, significantly reducing development time and enabling novel application possibilities.

Key insights

Integrating LLMs with third-party APIs enables powerful, personalized data analysis and actionable recommendations.

Principles

Method

Use an LLM's coding assistant (e.g., Claude Code) to generate an MCP server for a target API (e.g., Strava), configure API credentials, and connect the server to the LLM's desktop application for chat-based data interaction.

In practice

Topics

Code references

Best for: AI Engineer, Machine Learning Engineer, Software Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Towards AI - Medium.