
Company News
AWS Security Hub Adds Socket for Supply Chain Security
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.
localgym-mcp-server
Advanced tools
Read-only MCP server for searching, comparing, and recommending UK gyms using the LocalGym Agent API.
Read-only MCP server for searching, comparing, and recommending UK gyms using the public LocalGym Agent API.
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.
| 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. |
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
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"
}
}
}
}
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"
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"
]
}
npm test
You can also smoke-test tool discovery by sending MCP JSON-RPC frames over stdio from an MCP client.
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.
MIT
FAQs
Read-only MCP server for searching, comparing, and recommending UK gyms using the LocalGym Agent API.
We found that localgym-mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.