
SurePetcare
io.github.dirkjanfaberv0.3.0Updated Oct 3, 2026
Unofficial MCP server for SurePetcare devices: SureFlap pet/cat flaps and SureFeed feeders.
Overview
Unofficial MCP server that lets an assistant read SurePetcare pet locations and control SureFlap locks, feeders and hub LEDs.
- What it does
- Connects to the unofficial SurePetcare cloud API and exposes pet and device tools. It can list pets with their inside/outside location, fetch raw pet details including microchip tag data, list devices with live lock state and curfew schedule, set a SureFlap lock state, rename a device, manually mark a pet inside or outside, set the hub LED ring brightness, and return aggregated inside/outside activity stats over a date range.
- When to use it
- Useful if you own SureFlap cat flaps, SureFeed feeders or a SurePetcare hub and want an assistant to check where pets are, adjust lock states, or pull activity reports. It is a community integration, not an official Sure Petcare product.
- Requirements
- Runs locally over stdio via the npm package mcp-server-surepetcare (Node.js/npx), or in HTTP mode for claude.ai connectors. Needs a SurePetcare account email in SUREPETCARE_EMAIL and password in SUREPETCARE_PASSWORD; SUREPETCARE_DEVICE_ID is optional. HTTP mode additionally needs MCP_PUBLIC_URL and MCP_OWNER_PASSWORD, plus a public HTTPS URL and network access.
Installation
In SourceWeft
- Open SurePetcare in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
mcp-server-surepetcare
MCP (Model Context Protocol) server for the SurePetcare cloud API. Exposes pet location monitoring, SureFlap lock control, device renaming, and hub LED control as MCP tools.
Disclaimer: This project is not affiliated with, endorsed by, or in any way associated with Sure Petcare Ltd. It is an independent, community-developed integration created by happy users of their hardware and software. SurePetcare, SureFlap, and SureFeed are trademarks of Sure Petcare Ltd. Use of this package is at your own risk. The underlying API is unofficial and reverse-engineered by the community - it may change or break without notice.
Tools
Lock state values
LED mode values
Configuration
Set the following environment variables before starting the server:
Usage with Claude Desktop
Add to your claude_desktop_config.json:
Remote use: claude.ai connector (HTTP + OAuth)
To use the server from claude.ai and the Claude mobile apps, run it in HTTP mode on an
always-on machine and add it as a custom connector. claude.ai connects from the
internet, so the server needs a public https:// URL. A Cloudflare Tunnel or
Tailscale Funnel gives you one without opening ports on your router. Private overlay
networks such as ZeroTier or plain Tailscale aren't enough: claude.ai connects from
Anthropic's servers, not from your devices.
HTTP mode is single-user: when you connect Claude, the server shows a page asking for your owner passphrase. Anyone who knows it can authorize a client, and anyone with a token can unlock your cat flap - pick a strong one.
plus the SUREPETCARE_* variables from Configuration. Set
SUREPETCARE_DEVICE_ID to a fixed UUID, or every restart looks like a new device
logging in.
Docker (e.g. on a Raspberry Pi)
Each release publishes ghcr.io/dirkjanfaber/mcp-server-surepetcare for amd64, arm64
and arm/v7 (32-bit Raspberry Pi OS), tagged with the version and latest. Publish its
port on loopback only, so the tunnel is the only way in:
With Tailscale Funnel (no domain needed), run sudo tailscale funnel --bg 3200 and
use the URL tailscale funnel status shows as MCP_PUBLIC_URL.
claude.ai only connects on port 443, so Funnel's other ports (8443, 10000) don't work
for a connector. If the machine's own name is already taken by another server, give
this one its own tailnet machine with a Tailscale container next to it. Drop the
ports: mapping above, set MCP_PUBLIC_URL to https://surepet.<tailnet>.ts.net, and add:
with surepetcare-tailscale: added under volumes:, and surepet-ts/serve.json:
Generate the auth key in the Tailscale admin console under Settings → Keys. Without one, the container prints a login link that expires after about a minute. Once logged in, the machine stays logged in through the volume and the key can be removed.
With a Cloudflare Tunnel (needs a domain on Cloudflare), point a public hostname at the server instead. Don't put Cloudflare Access in front of it: claude.ai can't get past its login page.
Check the public URL before connecting Claude:
It should return JSON whose issuer matches MCP_PUBLIC_URL.
Update with docker compose pull && docker compose up -d. The server trusts one proxy
hop (X-Forwarded-For from the tunnel in front of it) for rate limiting. Don't also
publish its port directly to the internet.
Connecting Claude
In claude.ai: Settings → Connectors → Add custom connector, with URL
https://<your public host>/mcp. Claude registers itself, opens the passphrase page,
and once you allow it, the tools show up in claude.ai and the mobile apps.
References
- Reverse-engineered API (PHP): https://github.com/alextoft/sureflap
- Python client (surepy): https://github.com/benleb/surepy
- Local MQTT alternative (PetHubLocal): https://github.com/PetHubLocal/pethublocal
Source: README.md at commit 590e092
Tools
0Version history
1- v0.3.0LatestOct 3, 2026