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:
You can set them inline in your MCP client config (recommended — see the client setup guide) or via a local
.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.
