strava-activity-mcp-server 0.1.8__tar.gz → 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {strava_activity_mcp_server-0.1.8 → strava_activity_mcp_server-0.2.0}/PKG-INFO +25 -26
- {strava_activity_mcp_server-0.1.8 → strava_activity_mcp_server-0.2.0}/README.md +24 -25
- {strava_activity_mcp_server-0.1.8 → strava_activity_mcp_server-0.2.0}/pyproject.toml +1 -1
- strava_activity_mcp_server-0.2.0/ref/auth.jpg +0 -0
- strava_activity_mcp_server-0.2.0/ref/code.jpg +0 -0
- strava_activity_mcp_server-0.2.0/ref/image.jpg +0 -0
- {strava_activity_mcp_server-0.1.8 → strava_activity_mcp_server-0.2.0}/src/strava_activity_mcp_server/strava_activity_mcp_server.py +1 -0
- {strava_activity_mcp_server-0.1.8 → strava_activity_mcp_server-0.2.0}/uv.lock +2 -2
- {strava_activity_mcp_server-0.1.8 → strava_activity_mcp_server-0.2.0}/.github/workflows/python-publish.yml +0 -0
- {strava_activity_mcp_server-0.1.8 → strava_activity_mcp_server-0.2.0}/.gitignore +0 -0
- {strava_activity_mcp_server-0.1.8 → strava_activity_mcp_server-0.2.0}/.python-version +0 -0
- {strava_activity_mcp_server-0.1.8 → strava_activity_mcp_server-0.2.0}/.vscode/settings.json +0 -0
- {strava_activity_mcp_server-0.1.8 → strava_activity_mcp_server-0.2.0}/LICENSE +0 -0
- {strava_activity_mcp_server-0.1.8 → strava_activity_mcp_server-0.2.0}/ref/mcp_pypi_example.md +0 -0
- {strava_activity_mcp_server-0.1.8 → strava_activity_mcp_server-0.2.0}/requirements.txt +0 -0
- {strava_activity_mcp_server-0.1.8 → strava_activity_mcp_server-0.2.0}/src/strava_activity_mcp_server/__init__.py +0 -0
- {strava_activity_mcp_server-0.1.8 → strava_activity_mcp_server-0.2.0}/src/strava_activity_mcp_server/__main__.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: strava-activity-mcp-server
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.2.0
|
4
4
|
Summary: STRAVA ACTIVITY MCP SERVER
|
5
5
|
License-File: LICENSE
|
6
6
|
Requires-Python: >=3.10
|
@@ -13,6 +13,11 @@ Description-Content-Type: text/markdown
|
|
13
13
|

|
14
14
|
[](https://opensource.org/licenses/gpl-3-0)
|
15
15
|
[](https://www.python.org/downloads/release/python-3130/)
|
16
|
+
[](https://pypistats.org/packages/strava-activity-mcp-server)
|
17
|
+
|
18
|
+

|
19
|
+
|
20
|
+
|
16
21
|
|
17
22
|
A small Model Context Protocol (MCP) server that exposes your Strava athlete data to language-model tooling.
|
18
23
|
|
@@ -39,7 +44,7 @@ After installing, you can run the MCP server using the provided console script o
|
|
39
44
|
|
40
45
|
Run via the console script (entry point defined in `pyproject.toml`):
|
41
46
|
|
42
|
-
```
|
47
|
+
```cmd
|
43
48
|
strava-activity-mcp-server
|
44
49
|
```
|
45
50
|
|
@@ -63,27 +68,21 @@ This server requires Strava OAuth credentials to access athlete data. You will n
|
|
63
68
|
Steps:
|
64
69
|
|
65
70
|
1. Create a Strava API application at https://www.strava.com/settings/api and note your Client ID and Client Secret. Use `localhost` as the Authorization Callback Domain.
|
66
|
-
2. Open the authorization URL produced by the `strava://auth/url` tool (see
|
67
|
-
3. Exchange the code for tokens using `strava://auth/token` or use the included helper to save refresh/access tokens to your environment.
|
71
|
+
2. Open the authorization URL produced by the `strava://auth/url` tool (see IMAGE below) in a browser to obtain an authorization code.
|
68
72
|
|
69
|
-
|
73
|
+

|
70
74
|
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
$env:STRAVA_REFRESH_TOKEN = "<your refresh token>";
|
75
|
-
strava-activity-mcp-server
|
76
|
-
```
|
75
|
+
3. Copy the code from the redirected URL (Image below) or use the included helper to save refresh/access tokens to your environment.
|
76
|
+
|
77
|
+

|
77
78
|
|
78
|
-
Note: Keep secrets out of version control. Use a `.env` file and a tool such as `direnv` or your system secrets manager for convenience.
|
79
79
|
|
80
80
|
## Exposed Tools (what the server provides)
|
81
81
|
|
82
82
|
The MCP server exposes the following tools (tool IDs shown):
|
83
83
|
|
84
84
|
- `strava://auth/url` — Build the Strava OAuth authorization URL. Input: `client_id` (int). Output: URL string to open in a browser.
|
85
|
-
- `strava://
|
86
|
-
- `strava://athlete/stats` — Fetch recent athlete activities. Input: `token` (str). Output: JSON with activity list.
|
85
|
+
- `strava://athlete/stats` — Fetch recent athlete activities. Input: `client_id` (int), `client_secret` (str), `access_token` (str) and obtained `code` from URL generated by `strava://auth/url`. Output: JSON with activity list.
|
87
86
|
|
88
87
|
These tools map to the functions implemented in `src/strava_activity_mcp_server/strava_activity_mcp_server.py` and are intended to be called by MCP clients.
|
89
88
|
|
@@ -92,28 +91,27 @@ These tools map to the functions implemented in `src/strava_activity_mcp_server/
|
|
92
91
|
1) Get an authorization URL and retrieve tokens
|
93
92
|
|
94
93
|
- Call `strava://auth/url` with your `client_id` and open the returned URL in your browser.
|
95
|
-
- After authorizing, Strava will provide a `code`.
|
94
|
+
- After authorizing, Strava will provide a `code`.
|
96
95
|
|
97
96
|
2) Fetch recent activities
|
98
97
|
|
99
98
|
- Use `strava://athlete/stats` with a valid access token. If the access token is expired, use the refresh flow to get a new access token.
|
100
99
|
|
101
|
-
## Developer notes
|
102
|
-
|
103
|
-
- The package entry point calls `mcp.run()` which runs the MCP server. If you want to change transport or logging settings, modify `src/strava_activity_mcp_server/__init__.py` or `strava_activity_mcp_server.py`.
|
104
|
-
- The code uses the `requests` library for HTTP calls.
|
105
|
-
|
106
|
-
|
107
100
|
### Client config example and quick inspector test
|
108
101
|
|
109
|
-
Any MCP-capable client can launch the server using a config similar to the following (example file often called `config.json
|
102
|
+
Any MCP-capable client can launch the server using a config similar to the following (example file often called `config.json`. Be sure to enter your values here):
|
110
103
|
|
111
104
|
```json
|
112
105
|
{
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
106
|
+
"command": "uvx",
|
107
|
+
"args": [
|
108
|
+
"strava-activity-mcp-server"
|
109
|
+
],
|
110
|
+
"env": {
|
111
|
+
"STRAVA_CLIENT_ID": "12345",
|
112
|
+
"STRAVA_CLIENT_SECRET": "e1234a12d12345f12c1f12345a123bba1d12c1",
|
113
|
+
"STRAVA_REFRESH_TOKEN": "1a123eda1cfd12345678987db2db1bda234c38"
|
114
|
+
}
|
117
115
|
}
|
118
116
|
```
|
119
117
|
|
@@ -141,3 +139,4 @@ This project is licensed under the GNU GENERAL PUBLIC LICENSE — see the `LICEN
|
|
141
139
|
|
142
140
|
|
143
141
|
|
142
|
+
|
@@ -2,6 +2,11 @@
|
|
2
2
|

|
3
3
|
[](https://opensource.org/licenses/gpl-3-0)
|
4
4
|
[](https://www.python.org/downloads/release/python-3130/)
|
5
|
+
[](https://pypistats.org/packages/strava-activity-mcp-server)
|
6
|
+
|
7
|
+

|
8
|
+
|
9
|
+
|
5
10
|
|
6
11
|
A small Model Context Protocol (MCP) server that exposes your Strava athlete data to language-model tooling.
|
7
12
|
|
@@ -28,7 +33,7 @@ After installing, you can run the MCP server using the provided console script o
|
|
28
33
|
|
29
34
|
Run via the console script (entry point defined in `pyproject.toml`):
|
30
35
|
|
31
|
-
```
|
36
|
+
```cmd
|
32
37
|
strava-activity-mcp-server
|
33
38
|
```
|
34
39
|
|
@@ -52,27 +57,21 @@ This server requires Strava OAuth credentials to access athlete data. You will n
|
|
52
57
|
Steps:
|
53
58
|
|
54
59
|
1. Create a Strava API application at https://www.strava.com/settings/api and note your Client ID and Client Secret. Use `localhost` as the Authorization Callback Domain.
|
55
|
-
2. Open the authorization URL produced by the `strava://auth/url` tool (see
|
56
|
-
3. Exchange the code for tokens using `strava://auth/token` or use the included helper to save refresh/access tokens to your environment.
|
60
|
+
2. Open the authorization URL produced by the `strava://auth/url` tool (see IMAGE below) in a browser to obtain an authorization code.
|
57
61
|
|
58
|
-
|
62
|
+

|
59
63
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
$env:STRAVA_REFRESH_TOKEN = "<your refresh token>";
|
64
|
-
strava-activity-mcp-server
|
65
|
-
```
|
64
|
+
3. Copy the code from the redirected URL (Image below) or use the included helper to save refresh/access tokens to your environment.
|
65
|
+
|
66
|
+

|
66
67
|
|
67
|
-
Note: Keep secrets out of version control. Use a `.env` file and a tool such as `direnv` or your system secrets manager for convenience.
|
68
68
|
|
69
69
|
## Exposed Tools (what the server provides)
|
70
70
|
|
71
71
|
The MCP server exposes the following tools (tool IDs shown):
|
72
72
|
|
73
73
|
- `strava://auth/url` — Build the Strava OAuth authorization URL. Input: `client_id` (int). Output: URL string to open in a browser.
|
74
|
-
- `strava://
|
75
|
-
- `strava://athlete/stats` — Fetch recent athlete activities. Input: `token` (str). Output: JSON with activity list.
|
74
|
+
- `strava://athlete/stats` — Fetch recent athlete activities. Input: `client_id` (int), `client_secret` (str), `access_token` (str) and obtained `code` from URL generated by `strava://auth/url`. Output: JSON with activity list.
|
76
75
|
|
77
76
|
These tools map to the functions implemented in `src/strava_activity_mcp_server/strava_activity_mcp_server.py` and are intended to be called by MCP clients.
|
78
77
|
|
@@ -81,28 +80,27 @@ These tools map to the functions implemented in `src/strava_activity_mcp_server/
|
|
81
80
|
1) Get an authorization URL and retrieve tokens
|
82
81
|
|
83
82
|
- Call `strava://auth/url` with your `client_id` and open the returned URL in your browser.
|
84
|
-
- After authorizing, Strava will provide a `code`.
|
83
|
+
- After authorizing, Strava will provide a `code`.
|
85
84
|
|
86
85
|
2) Fetch recent activities
|
87
86
|
|
88
87
|
- Use `strava://athlete/stats` with a valid access token. If the access token is expired, use the refresh flow to get a new access token.
|
89
88
|
|
90
|
-
## Developer notes
|
91
|
-
|
92
|
-
- The package entry point calls `mcp.run()` which runs the MCP server. If you want to change transport or logging settings, modify `src/strava_activity_mcp_server/__init__.py` or `strava_activity_mcp_server.py`.
|
93
|
-
- The code uses the `requests` library for HTTP calls.
|
94
|
-
|
95
|
-
|
96
89
|
### Client config example and quick inspector test
|
97
90
|
|
98
|
-
Any MCP-capable client can launch the server using a config similar to the following (example file often called `config.json
|
91
|
+
Any MCP-capable client can launch the server using a config similar to the following (example file often called `config.json`. Be sure to enter your values here):
|
99
92
|
|
100
93
|
```json
|
101
94
|
{
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
95
|
+
"command": "uvx",
|
96
|
+
"args": [
|
97
|
+
"strava-activity-mcp-server"
|
98
|
+
],
|
99
|
+
"env": {
|
100
|
+
"STRAVA_CLIENT_ID": "12345",
|
101
|
+
"STRAVA_CLIENT_SECRET": "e1234a12d12345f12c1f12345a123bba1d12c1",
|
102
|
+
"STRAVA_REFRESH_TOKEN": "1a123eda1cfd12345678987db2db1bda234c38"
|
103
|
+
}
|
106
104
|
}
|
107
105
|
```
|
108
106
|
|
@@ -130,3 +128,4 @@ This project is licensed under the GNU GENERAL PUBLIC LICENSE — see the `LICEN
|
|
130
128
|
|
131
129
|
|
132
130
|
|
131
|
+
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
version = 1
|
2
|
-
revision =
|
2
|
+
revision = 2
|
3
3
|
requires-python = ">=3.10"
|
4
4
|
|
5
5
|
[[package]]
|
@@ -1031,7 +1031,7 @@ wheels = [
|
|
1031
1031
|
|
1032
1032
|
[[package]]
|
1033
1033
|
name = "strava-activity-mcp-server"
|
1034
|
-
version = "0.
|
1034
|
+
version = "0.2.0"
|
1035
1035
|
source = { editable = "." }
|
1036
1036
|
dependencies = [
|
1037
1037
|
{ name = "build" },
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{strava_activity_mcp_server-0.1.8 → strava_activity_mcp_server-0.2.0}/ref/mcp_pypi_example.md
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|