Skip to main content

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​

VariableDescriptionDefault
LOYALTEEZ_NETWORKmainnet or testnetmainnet
LOYALTEEZ_BRAND_IDYour brand wallet address(required)

Finding Your Brand ID​

  1. Log in to partners.loyalteez.app
  2. Go to Settings → Account
  3. 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"​

  1. Verify npm/npx is in your PATH
  2. Try installing globally: npm install -g @loyalteez/mcp-server
  3. Check the command path in your config

"Brand ID invalid"​

  1. Verify your Brand ID is 42 characters
  2. Ensure it starts with 0x
  3. Check you copied it correctly from Partner Portal

"Tools not appearing"​

  1. Restart your AI assistant completely
  2. Check the MCP configuration file path
  3. Verify JSON syntax is correct

"Connection refused"​

  1. Check your internet connection
  2. Verify you're not behind a restrictive firewall
  3. Try testnet network first

Network Options​

NetworkUse Case
mainnetProduction - real LTZ tokens
testnetTesting - test tokens only

For development, start with testnet:

{
"env": {
"LOYALTEEZ_NETWORK": "testnet",
"LOYALTEEZ_BRAND_ID": "0xYourTestBrandId"
}
}

What's Next?​