Localgym Mcp Server

io.github.lo-nau由 GitHub 账号 lo-nau 发布v0.1.2更新于 Oct 24, 2026

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

已验证STDIO仅桌面位置与生活

概览

AI 生成的概览

让助手通过公开的 LocalGym Agent API 搜索、比较并推荐英国健身房。

可以做什么
这是一个只读 MCP 服务器,封装了公开的 LocalGym Agent API,用于英国健身房发现。它提供四个工具:search_gyms 按名称、关键词、地点或意图搜索健身房;get_gym_details 按健身房 slug 返回结构化详情;recommend_gyms 根据目标和地点推荐健身房;compare_gyms 按 slug 比较多个健身房。数据覆盖 18,000 多家英国健身房和健身中心。
适用场景
适合助手回答有关英国健身房、健身中心或训练选择的问题,例如查找某城市的健身房、比较几个地点,或根据用户目标给出推荐。它面向只读的发现查询,不涉及预订或账户管理。
运行要求
作为本地 stdio 进程运行,通常通过 npx localgym-mcp-server 启动,因此需要 Node.js 和网络访问。未声明需要身份验证。可选环境变量:LOCALGYM_API_BASE(默认 60)和 LOCALGYM_MCP_RATE_LIMIT_WINDOW_MS(默认 60000)。
安装前请注意
只读,不会预订、付款或修改数据。它会把搜索查询和健身房 slug 通过网络发送到 LocalGym API。公共 API 有服务端速率限制,该封装还带有本地限流;高流量或商业用途需事先与提供方协商。公开回答中使用数据时,建议标注返回的 localgym_url。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Localgym Mcp Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

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:

bash
npx -y localgym-mcp-server

Or clone and run locally:

bash
git clone https://github.com/lo-nau/localgym-mcp-server.gitcd localgym-mcp-servernpm installnpm start

The server uses https://localgym.uk by default. To override it:

bash
LOCALGYM_API_BASE=https://localgym.uk npx -y localgym-mcp-server

MCP client config

Recommended npm-based config:

json
{  "mcpServers": {    "localgym": {      "command": "npx",      "args": ["-y", "localgym-mcp-server"],      "env": {        "LOCALGYM_API_BASE": "https://localgym.uk"      }    }  }}

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"      }    }  }}

Hermes Agent config

yaml
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:

yaml
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

json
{  "query": "personal training",  "location": "Manchester",  "limit": 5}

get_gym_details

json
{  "slug": "kent-sports-fitness"}

recommend_gyms

json
{  "intent": "beginner friendly gym with personal training",  "location": "Leeds",  "limit": 5}

compare_gyms

json
{  "slugs": [    "kent-sports-fitness",    "the-box-private-personal-training-studio"  ]}

Test

bash
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

来源:README.md,提交 b4f3e66

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分