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 分