spark-mcp

spark-mcp

MCP server for the Spark Membership platform enabling class scheduling, bookings, attendance management through any MCP client.

Category
访问服务器

README

spark-mcp logo

spark-mcp

MCP server for the Spark Membership platform — a CRM used by hundreds of martial arts studios. Manage class scheduling, bookings, attendance, and more through any MCP client (e.g. Claude Code).

Built by reverse-engineering the Spark Membership mobile app API.

Quick Start (Docker)

Docker is the preferred way to run spark-mcp — no Python install needed.

1. Pull the image:

docker pull ghcr.io/aserper/spark-mcp:latest

2. Add to your Claude Code config (.mcp.json in your project root or ~/.claude/settings.json):

{
  "mcpServers": {
    "spark": {
      "type": "stdio",
      "command": "docker",
      "args": ["run", "--rm", "-i",
        "-e", "SPARK_EMAIL", "-e", "SPARK_PASSWORD", "-e", "SPARK_LOCATION_ID",
        "ghcr.io/aserper/spark-mcp"],
      "env": {
        "SPARK_EMAIL": "your-email@example.com",
        "SPARK_PASSWORD": "your-password",
        "SPARK_LOCATION_ID": "1234"
      }
    }
  }
}

3. Restart Claude Code and start asking about your classes.

Finding your Location ID

Every studio on Spark Membership has a numeric location ID. Use the included find_location.py script to look it up.

Search by state code:

# Docker
docker run --rm --entrypoint python ghcr.io/aserper/spark-mcp find_location.py MA

# Local
python find_location.py MA

Search by studio name:

# Docker
docker run --rm --entrypoint python ghcr.io/aserper/spark-mcp find_location.py "jiu jitsu"

# Local
python find_location.py natick

Interactive mode (lists countries, states, then locations):

# Docker
docker run --rm -it --entrypoint python ghcr.io/aserper/spark-mcp find_location.py

# Local
python find_location.py

Example output:

    ID  Name
    --  ----
  1588  Metrowest Academy of Jiu Jitsu (Natick)
  6218  Villaris Martial Arts of Natick (Natick)

Use the ID value as your SPARK_LOCATION_ID.

Tools

Tool Description
login Authenticate with email, password, and location ID
list_classes List available classes for a given date
my_classes List classes you're currently enrolled in
book_class Book a class by roster ID and date
cancel_booking Cancel a class reservation
join_waitlist Join the waitlist for a full class
get_waitlist List classes you're on the waitlist for
checkin Check in to a class
dashboard Get the studio dashboard overview
attendance View attendance history
announcements Get studio announcements
memberships Get membership status

Usage Examples

Once configured, you can ask Claude things like:

  • "What classes are available this Saturday?"
  • "Book me into the 9am Ninjas class on March 21"
  • "What am I signed up for?"
  • "Cancel my Saturday booking"
  • "Show my attendance history"
  • "Any new announcements from the studio?"

Alternative: Local Install

If you prefer not to use Docker:

git clone https://github.com/aserper/spark-mcp.git
cd spark-mcp
uv venv && source .venv/bin/activate
uv pip install -e .

Then configure Claude Code with:

{
  "mcpServers": {
    "spark": {
      "type": "stdio",
      "command": "/path/to/spark-mcp/.venv/bin/python",
      "args": ["-m", "spark_mcp"],
      "env": {
        "SPARK_EMAIL": "your-email@example.com",
        "SPARK_PASSWORD": "your-password",
        "SPARK_LOCATION_ID": "1234"
      }
    }
  }
}

Authentication

Credentials can be provided in three ways:

  1. Environment variables (recommended) — set SPARK_EMAIL, SPARK_PASSWORD, and SPARK_LOCATION_ID in your MCP config. The server auto-authenticates on first tool call.
  2. login tool — call it manually at runtime without any env vars.
  3. Mix — set email/password in env vars and use login to switch locations.

Tokens are automatically refreshed when they expire.

API Reference

All endpoints hit https://mobileapi.sparkmembership.com/api/student/. Auth uses Bearer tokens with automatic refresh. See api-discovery.md for the full endpoint reference.

OpenClaw / Claude Code Skill (Optional)

For a higher-level, natural language interface, install the spark skill:

# Via mcporter
mcporter config import spark ./openclaw-skill/SKILL.md

# Or manually copy to your OpenClaw skills directory
cp -r openclaw-skill ~/.openclaw/skills/spark

Then use natural language commands:

spark who                          # Discover family members
spark book hailey thursday         # Book Hailey for next Thursday
spark bulk "ily saturdays 4 weeks" # Bulk book Saturdays
spark my-classes                   # Show current bookings

See openclaw-skill/SKILL.md for full documentation.

Requirements

  • Docker (preferred), or Python 3.11+
  • A Spark Membership account (through your studio's app)

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选