stack-system-mcp
Reads TheStack's Firebase backend, including callable functions and Firestore documents, to expose the signed-in user's active programme, session speeds, baseline, checkpoints, programme catalogue, profile, access and Stack Stats.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
stack-system-mcp
An MCP server for your TheStack System speed-training account — the active programme, its stats, your latest session's speeds, the baseline, checkpoints and the programme catalogue — so an agent can answer "how is my speed training going?" without opening the web app.
TheStack has no public API. This drives the Chrome/web app's own Firebase backend with the session you create by signing in once in a real browser. It is read-only: no tool starts, edits or deletes a programme or a session.
Not affiliated with TheStack. The backend is private and unofficial, so a deploy can break it; the tests cover the shapes, not the service's promises.
Privacy
Your password never reaches this process.
loginopens Chromium; you sign in there (email, Google, Apple or phone). We read the Firebase session the app itself stored and put it in the macOS Keychain.The repository holds nobody's data. No account, name, email, speed, club or training history. Test fixtures are invented.
Raw captures stay local.
samples/is git-ignored;scripts/privacy_scan.pyruns in CI to catch an accidental credential or absolute home path.Read-only. Only
stack_login/stack_logoutchange local state (the Keychain item).
Related MCP server: Strava Cardio MCP
Install
uv sync --extra login
uv run playwright install chromiumRequires macOS (Keychain) and Python 3.11+.
Sign in
uv run stack-system-mcp loginA Chromium window opens on TheStack's sign-in page. Sign in, wait for the dashboard, and the command exits once the Firebase session is captured:
uv run stack-system-mcp status
uv run stack-system-mcp logoutThe refresh token is enough for the tools to mint new ID tokens, so the browser is not needed again until the refresh token is revoked or expires.
MCP client
{
"mcp": {
"stack": {
"type": "local",
"command": ["uv", "run", "--directory", "/path/to/stack-system-mcp",
"stack-system-mcp", "serve"],
"enabled": true
}
}
}Tools
Tool | Returns |
| whether a live session is stored, and when the token expires |
| browser sign-in; remove the stored session |
| the account and active golfer: name, handicap, driver |
| entitlements and membership dates |
| programme label, speed card and golf headline |
| the active programme: speeds, distance potential, grit, sessions |
| the latest session's set-by-set peak speeds |
| all-time speed gained, peak eSpeed, swings, sessions |
| baseline driver eSpeed, distance potential, recommendation |
| the recent checkpoint and its grit window |
| the programme catalogue: group, sessions, phases |
| Stack Stats: rounds, strokes gained, driving and putting |
No next-session tool, on purpose. The app's next-session callable
materialises a session before the user has swung; calling it would be a write.
stack_home still tells you which session is next.
How it works
session.pycaptures the Firebase user record (ID token, refresh token and the public web API key) from the web app's IndexedDB/localStorage.auth.pyrefreshes the ID token through Google's secure-token endpoint; the refreshed blob goes back to the Keychain.client.pycalls the app's Firebase callable functions (ts2_*) and reads Firestore documents (users/{uid},profiles/{activeProfileId}) as the signed-in user.ALLOWED_CALLSis the read-only boundary: any callable not on that list is refused before a request is made.parse.pyturns the payloads into the small dictionaries the tools return;service.pywires one function per tool.
discover is a development command that calls the read functions and saves raw
JSON under the git-ignored samples/ directory, for shaping new tools:
uv run stack-system-mcp discoverLayout
src/stack_system_mcp/config.py public Firebase project constants
src/stack_system_mcp/keychain.py macOS Keychain wrapper
src/stack_system_mcp/session.py Playwright sign-in, status, logout
src/stack_system_mcp/auth.py refresh token -> ID token
src/stack_system_mcp/client.py callable functions + Firestore reads
src/stack_system_mcp/parse.py payload -> small dictionaries
src/stack_system_mcp/service.py one function per tool, plus discover
src/stack_system_mcp/server.py MCP tools + argparse CLILicence
MIT.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Read-only access to an OnlyFans agency's OnlyStack data: fans, chats, earnings and creators.
Read-only Heatwayve training tools: programme, sessions, loads, lift history.
Your own cycling data for your AI assistant: rides, power, climbs and routes. Read-only.
Read-only health data: sleep, HRV recovery, macros, micros, workouts, lift trends, and plans.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides AI assistants with read-only access to an athlete's Intervals.icu training data, including activities, wellness metrics, zones, and planned events, for use with MCP clients like ChatGPT and Claude.15MIT
- AlicenseNot gradedqualityCmaintenanceEnables agents to read and analyze personal Strava cardio data, including activity summaries, detailed activities, laps, heart-rate and power zones, streams, and aggregate statistics, through the official Strava API with read-only permissions.MIT
- AlicenseBqualityBmaintenanceProvides read-only access to a Ryde account so agents can pull completed rides and GPS routes, owned and available RidePasses, payments, city fare rules, and ride summaries or pass-cost comparisons. Requires an SMS-authenticated login and never modifies account data.201MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to read a Concept2 Logbook account through MCP, covering training summaries, personal bests, workout lists, splits, intervals, stroke data and profile details. Access is read-only via an API key created after signing in with Concept2.1MIT