npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@michaelhutchinson/strava-mcp-server

v1.2.1

Published

MCP server for Strava - query activities, stats, and athlete data from Claude Code

Readme

strava-mcp-server

An MCP server that connects Claude to your Strava data. Query your activities, stats, and athlete profile directly from Claude Code.

Tools

| Tool | Description | | ------------------------ | ------------------------------------------------------------------------------------------------ | | get_athlete | Athlete profile, gear (shoes/bikes), follower counts | | get_stats | Running totals: all-time, year-to-date, last 4 weeks | | get_activities | List recent activities with pace, distance, HR, elevation. Supports pagination and date filtering | | get_activity | Full activity detail by ID: splits, best efforts, heart rate, gear | | get_activity_streams | Time-series data: heart rate, pace, cadence, altitude over the course of an activity | | get_personal_records | Personal best times across standard distances (5K, 10K, half marathon, marathon, etc.) | | get_starred_segments | Your favourite Strava segments with your personal best effort on each |

Quick start

1. Create a Strava API app

Go to strava.com/settings/api and create an app.

Set the Authorization Callback Domain to localhost.

Note your Client ID and Client Secret.

2. Run the setup

npx @michaelhutchinson/strava-mcp-server setup

This opens your browser, authorizes with Strava, and gives you the exact command to add the server to Claude Code.

3. Restart Claude Code

Close and reopen Claude Code. You can now ask things like:

  • "what are my running stats this year?"
  • "show my last 5 activities"
  • "get details for activity 12345678"

Example questions

Once set up, you can ask Claude things like:

Stats and records

  • "What are my running stats this year?"
  • "What's my 5K personal best?"
  • "How does my mileage this month compare to last month?"

Activities

  • "Show my last 5 runs"
  • "What did I run last weekend?"
  • "Get the details for my most recent activity"
  • "Show my runs from January"

Analysis

  • "How was my heart rate during my last long run?"
  • "Show my pace splits for activity 12345678"
  • "Am I running faster this year compared to last year?"

Segments

  • "Show my starred segments"
  • "What's my best time on my favourite segment?"

Claude picks the right tools automatically based on your question.

Manual setup

If you prefer to configure manually:

claude mcp add strava \
  -e STRAVA_CLIENT_ID=your_client_id \
  -e STRAVA_CLIENT_SECRET=your_client_secret \
  -e STRAVA_REFRESH_TOKEN=your_refresh_token \
  -- npx -y @michaelhutchinson/strava-mcp-server

See Strava's OAuth guide for how to obtain a refresh token manually.

License

MIT