Localgym MCP Server

Read-only MCP server for UK gym search using the LocalGym Agent API.

Local serverstdio

What is the Localgym MCP server?

If you already use Localgym, the localgym mcp server is the piece that lets your assistant work with it directly. Read-only MCP server for UK gym search using the LocalGym Agent API.

What the server does

Read-only MCP server for searching, comparing, and recommending UK gyms using the public LocalGym Agent API.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • 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

Installation

Installation goes through your MCP client rather than a global install: point it at localgym-mcp-server on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Credentials and setup notes

Configuration is passed through the environment: LOCALGYM_API_BASE. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Where it fits

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Localgym's toolset — search_gyms, get_gym_details, recommend_gyms and 1 more — is a fair guide to whether it matches your workflow. It is maintained by lo-nau; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
search_gymsSearch UK gyms by name, keyword, location, or user intent.
get_gym_detailsReturn structured details for a LocalGym gym slug.
recommend_gymsRecommend gyms for a user goal and location.
compare_gymsCompare several gyms by LocalGym slug.

How to install the Localgym MCP server

Local clone config:

```json
{
  "mcpServers": {
    "localgym": {
      "command": "node",
      "args": ["/absolute/path/to/localgym-mcp-server/bin/localgym-mcp-server.cjs"],
      "env": {
        "LOCALGYM_API_BASE": "https://localgym.uk"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
LOCALGYM_API_BASEConfiguration value read at startup.Optional

Example prompts to try

  • Use Localgym to search gyms.
  • Use Localgym to get gym details.
  • Use Localgym to recommend gyms.

Frequently asked questions

It connects Localgym to MCP-compatible AI assistants such as Claude and Cursor, exposing 4 tools (search_gyms, get_gym_details, recommend_gyms, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Localgym directly.