core_api/mcp directory of the LoyaltyDog core API repository. It’s a Python process you start locally via your AI assistant’s MCP config.
Prerequisites
- Python 3.11 or later
- A LoyaltyDog API token (see Authentication)
- An MCP-capable client: Claude Desktop, Claude Code, Cursor, Windsurf, or any other MCP host
Install
Configure
The server reads two environment variables:| Variable | Purpose | Example |
|---|---|---|
LOYALTYDOG_API_URL | Base URL for the v2 API (no trailing slash) | https://api.loyalty.dog/api/v2 |
LOYALTYDOG_API_TOKEN | Bearer token for API authentication | eyJhbGc… |
.env:
Sanity-check the server
You can start the server manually to verify your token works:Next steps
Connect a client
Step-by-step config for Claude Desktop, Claude Code, Cursor, and Windsurf.
