Installing the MCP Server
Set up the Loyalteez MCP server to enable AI-assisted loyalty program management.
Prerequisites
- Node.js 18+ installed
- AI assistant that supports MCP (Claude Desktop, Cursor, etc.)
- Loyalteez Partner Portal account
Install via npm
npm install -g @loyalteez/mcp-server
Or use npx (no installation required):
npx @loyalteez/mcp-server
Configure Claude Desktop
Add to your Claude Desktop MCP configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
"mcpServers": {
"loyalteez": {
"command": "npx",
"args": ["@loyalteez/mcp-server"],
"env": {
"LOYALTEEZ_NETWORK": "mainnet",
"LOYALTEEZ_BRAND_ID": "0xYourBrandId"
}
}
}
}
Configure Cursor
Add to your Cursor MCP settings (Settings → MCP → Add Server):
{
"name": "loyalteez",
"command": "npx",
"args": ["@loyalteez/mcp-server"],
"env": {
"LOYALTEEZ_NETWORK": "mainnet",
"LOYALTEEZ_BRAND_ID": "0xYourBrandId"
}
}
Environment Variables
| Variable | Description | Default |
|---|---|---|
LOYALTEEZ_NETWORK | mainnet or testnet | mainnet |
LOYALTEEZ_BRAND_ID | Your brand wallet address | (required) |
Finding Your Brand ID
- Log in to partners.loyalteez.app
- Go to Settings → Account
- Copy your Brand ID (starts with
0x)
Verify Installation
After configuring, restart your AI assistant and try:
"What Loyalteez tools do you have available?"
The AI should list all 30 available tools.
Test with a Simple Query
Try asking:
"Show me the Loyalteez contract addresses"
The AI should return the contract addresses from the MCP resources.
Troubleshooting
"MCP server not found"
- Verify npm/npx is in your PATH
- Try installing globally:
npm install -g @loyalteez/mcp-server - Check the command path in your config
"Brand ID invalid"
- Verify your Brand ID is 42 characters
- Ensure it starts with
0x - Check you copied it correctly from Partner Portal
"Tools not appearing"
- Restart your AI assistant completely
- Check the MCP configuration file path
- Verify JSON syntax is correct
"Connection refused"
- Check your internet connection
- Verify you're not behind a restrictive firewall
- Try
testnetnetwork first
Network Options
| Network | Use Case |
|---|---|
mainnet | Production - real LTZ tokens |
testnet | Testing - test tokens only |
For development, start with testnet:
{
"env": {
"LOYALTEEZ_NETWORK": "testnet",
"LOYALTEEZ_BRAND_ID": "0xYourTestBrandId"
}
}
What's Next?
- Tools Reference — See all 30 tools
- Resources Reference — See all 11 resources
- Examples — Real conversation examples