io.github.lo-nau/localgym-mcp-server

السجل الرسمي البحث والويب

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

التثبيت

أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: ‏.cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).

NPM package localgym-mcp-server
Claude Code
claude mcp add localgym-mcp-server -e 'LOCALGYM_API_BASE=<LOCALGYM_API_BASE>' -e 'LOCALGYM_MCP_RATE_LIMIT_MAX=<LOCALGYM_MCP_RATE_LIMIT_MAX>' -e 'LOCALGYM_MCP_RATE_LIMIT_WINDOW_MS=<LOCALGYM_MCP_RATE_LIMIT_WINDOW_MS>' -- npx -y localgym-mcp-server@0.1.2
إعداد JSON (Claude Desktop وCursor وVS Code)
{
    "mcpServers": {
        "localgym-mcp-server": {
            "command": "npx",
            "args": [
                "-y",
                "localgym-mcp-server@0.1.2"
            ],
            "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>"
            }
        }
    }
}

متغيرات البيئة

  • LOCALGYM_API_BASE Optional LocalGym API base URL override; defaults to https://localgym.uk.
  • LOCALGYM_MCP_RATE_LIMIT_MAX Optional local MCP client-side rate limit per window; defaults to 60. The public API also enforces server-side limits.
  • LOCALGYM_MCP_RATE_LIMIT_WINDOW_MS Optional local MCP client-side rate limit window in milliseconds; defaults to 60000.

التوثيق

مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.

المحتويات
  1. LocalGym MCP Server
  2. Why this exists
  3. Tools
  4. Quick start
  5. MCP client config
  6. Hermes Agent config
  7. Example tool arguments
  8. Test
  9. Usage policy
  10. License

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 enquiries@localgym.uk.

License

MIT

الأسئلة الشائعة

ما هو io.github.lo-nau/localgym-mcp-server؟

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

كيف أثبّت io.github.lo-nau/localgym-mcp-server؟

يعمل على جهازك. في Claude Code: claude mcp add localgym-mcp-server -e 'LOCALGYM_API_BASE=<LOCALGYM_API_BASE>' -e 'LOCALGYM_MCP_RATE_LIMIT_MAX=<LOCALGYM_MCP_RATE_LIMIT_MAX>' -e 'LOCALGYM_MCP_RATE_LIMIT_WINDOW_MS=<LOCALGYM_MCP_RATE_LIMIT_WINDOW_MS>' -- npx -y localgym-mcp-server@0.1.2. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.

هل يحتاج io.github.lo-nau/localgym-mcp-server إلى مفتاح API؟

لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.

هل io.github.lo-nau/localgym-mcp-server مفتوح المصدر؟

نعم. شيفرته متاحة على GitHub بترخيص MIT.

من يصون io.github.lo-nau/localgym-mcp-server؟

ينشره lo-nau. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.

من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.