mcpField
L
Localgym Uk Gym Search Mcp Server

Localgym Uk Gym Search Mcp Server

Local
github.com/lo-nauSearch1Updated 22w ago

About Localgym Uk Gym Search Mcp Server

A read-only server for discovering, comparing, and recommending UK gyms using LocalGym data. It serves AI assistants and agent workflows with structured gym information from a public API.

Key features

  1. 01Search gyms by name, place, or intent
  2. 02Retrieve details for a gym
  3. 03Recommend gyms by goal and location
  4. 04Compare multiple gyms
  5. 05Read-only access with attribution URLs

Use cases

  1. 01Find gyms near a UK location
  2. 02Compare gyms before choosing one
  3. 03Identify gyms suited to a fitness goal

MCP support

The MCP server exposes search, details, recommendations, and comparison tools to MCP clients, backed by the public LocalGym Agent API.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"localgym": {
"command": "npx",
"args": [
"-y",
"localgym-mcp-server"
],
"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>"
}
}
}
}
Run commandnpx -y localgym-mcp-server
Environment variables to set
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.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmlocalgym-mcp-server0.1.2

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

LocalGym MCP Server

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

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

ToolDescription
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.

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 [email protected].

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.