io.github.lo-nau/localgym-mcp-server
Read-only MCP server for UK gym search using the LocalGym Agent API.
Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
localgym-mcp-serverclaude mcp add localgym-mcp-server -e 'LOCALGYM_API_BASE=<LOCALGYM_API_BASE>' -e 'LOCALGYM_MCP_RATE_LIMIT_MAX=<LOCALGYM_MCP_RATE_LIMIT_MAX>' -e 'LOCALGYM_MCP_RATE_LIMIT_WINDOW_MS=<LOCALGYM_MCP_RATE_LIMIT_WINDOW_MS>' -- npx -y localgym-mcp-server@0.1.2
{
"mcpServers": {
"localgym-mcp-server": {
"command": "npx",
"args": [
"-y",
"localgym-mcp-server@0.1.2"
],
"env": {
"LOCALGYM_API_BASE": "<LOCALGYM_API_BASE>",
"LOCALGYM_MCP_RATE_LIMIT_MAX": "<LOCALGYM_MCP_RATE_LIMIT_MAX>",
"LOCALGYM_MCP_RATE_LIMIT_WINDOW_MS": "<LOCALGYM_MCP_RATE_LIMIT_WINDOW_MS>"
}
}
}
}
Variables d'environnement
LOCALGYM_API_BASEOptional LocalGym API base URL override; defaults to https://localgym.uk.LOCALGYM_MCP_RATE_LIMIT_MAXOptional local MCP client-side rate limit per window; defaults to 60. The public API also enforces server-side limits.LOCALGYM_MCP_RATE_LIMIT_WINDOW_MSOptional local MCP client-side rate limit window in milliseconds; defaults to 60000.
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.
Sommaire
LocalGym MCP Server
Read-only MCP server for searching, comparing, and recommending UK gyms using the public LocalGym Agent API.
- Website: https://localgym.uk
- Agent/API docs: https://localgym.uk/agent
- MCP setup page: https://localgym.uk/agent/mcp
- OpenAPI schema: https://localgym.uk/api/openapi.json
- LLM instructions: https://localgym.uk/llms.txt
Why this exists
LocalGym covers 18,000+ UK gyms and fitness centres. This MCP server gives AI assistants and agent workflows a small, attributable interface for local gym discovery without exposing the private LocalGym website codebase.
Tools
| Tool | Description |
|---|---|
search_gyms | Search UK gyms by name, keyword, location, or user intent. |
get_gym_details | Return structured details for a LocalGym gym slug. |
recommend_gyms | Recommend gyms for a user goal and location. |
compare_gyms | Compare several gyms by LocalGym slug. |
Quick start
Run directly from npm:
npx -y localgym-mcp-server
Or clone and run locally:
git clone https://github.com/lo-nau/localgym-mcp-server.git
cd localgym-mcp-server
npm install
npm start
The server uses https://localgym.uk by default. To override it:
LOCALGYM_API_BASE=https://localgym.uk npx -y localgym-mcp-server
MCP client config
Recommended npm-based config:
{
"mcpServers": {
"localgym": {
"command": "npx",
"args": ["-y", "localgym-mcp-server"],
"env": {
"LOCALGYM_API_BASE": "https://localgym.uk"
}
}
}
}
Local clone config:
{
"mcpServers": {
"localgym": {
"command": "node",
"args": ["/absolute/path/to/localgym-mcp-server/bin/localgym-mcp-server.cjs"],
"env": {
"LOCALGYM_API_BASE": "https://localgym.uk"
}
}
}
}
Hermes Agent config
mcp_servers:
localgym:
command: "npx"
args: ["-y", "localgym-mcp-server"]
env:
LOCALGYM_API_BASE: "https://localgym.uk"
If you cloned the repo locally instead, use:
mcp_servers:
localgym:
command: "node"
args: ["/absolute/path/to/localgym-mcp-server/bin/localgym-mcp-server.cjs"]
env:
LOCALGYM_API_BASE: "https://localgym.uk"
Example tool arguments
search_gyms
{
"query": "personal training",
"location": "Manchester",
"limit": 5
}
get_gym_details
{
"slug": "kent-sports-fitness"
}
recommend_gyms
{
"intent": "beginner friendly gym with personal training",
"location": "Leeds",
"limit": 5
}
compare_gyms
{
"slugs": [
"kent-sports-fitness",
"the-box-private-personal-training-studio"
]
}
Test
npm test
You can also smoke-test tool discovery by sending MCP JSON-RPC frames over stdio from an MCP client.
Usage policy
V1 is free, read-only, and attribution-first. Please link back to returned localgym_url values when using LocalGym data in public answers.
The public LocalGym Agent API enforces server-side rate limits. This MCP wrapper also includes a local courtesy limiter, defaulting to 60 tool calls per 60 seconds per running MCP process. You can lower it with LOCALGYM_MCP_RATE_LIMIT_MAX or LOCALGYM_MCP_RATE_LIMIT_WINDOW_MS; high-volume/commercial use should be arranged first.
For high-volume, commercial, affiliate, or claimed-listing use, contact enquiries@localgym.uk.
License
MIT
Questions fréquentes
Qu'est-ce que io.github.lo-nau/localgym-mcp-server ?
Read-only MCP server for UK gym search using the LocalGym Agent API.
Comment installer io.github.lo-nau/localgym-mcp-server ?
Il s'exécute sur votre machine. Dans Claude Code : claude mcp add localgym-mcp-server -e 'LOCALGYM_API_BASE=<LOCALGYM_API_BASE>' -e 'LOCALGYM_MCP_RATE_LIMIT_MAX=<LOCALGYM_MCP_RATE_LIMIT_MAX>' -e 'LOCALGYM_MCP_RATE_LIMIT_WINDOW_MS=<LOCALGYM_MCP_RATE_LIMIT_WINDOW_MS>' -- npx -y localgym-mcp-server@0.1.2. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour io.github.lo-nau/localgym-mcp-server ?
Son entrée au registre n'indique aucune clé ni secret obligatoire. Certaines fonctions peuvent tout de même demander un compte auprès du service auquel il se connecte.
io.github.lo-nau/localgym-mcp-server est-il open source ?
Oui. Son code est sur GitHub sous licence MIT.
Qui maintient io.github.lo-nau/localgym-mcp-server ?
Il est publié par lo-nau. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.