Skip to main content
Here you’ll integrate your application with Trophy and start building your first gamified feature.
These instructions are for those who prefer to develop using coding agents like Cursor and Claude Code.
1

Create your Trophy account

First, create a new account if you don’t already have one and head into the Trophy dashboard.Head through onboarding to get your account set up.
2

Configure MCP servers

For the best AI setup experience, connect Trophy through MCP:
  • Docs MCP server URL: https://docs.trophy.so/mcp (live documentation context)
  • Account MCP server URL: https://mcp.trophy.so (account actions — see MCP; requires x-trophy-api-key)
Use the Docs MCP as on-demand docs context and the Account MCP for account changes. Use both for best practice.
3

Tell your agent to perform initial setup

Here’s a prompt you can use with your coding agent to perform initial Trophy setup:

Perform initial Trophy setup

Open in Cursor
Make sure to replace <metric> with the metric you set up during onboarding.
This will:
  1. Add the relevant Trophy SDK to your app based on your tech stack
  2. Add a new TROPHY_API_KEY variable to your environment settings
  3. Add code to send events to Trophy based on the metric you set up during onboarding.
4

Grab your API key

Once the set up is complete, create an API key from the integration page of the Trophy dashboard and add it to your environment.
5

Build your first gamification feature

Once initial setup is complete, use this follow-up prompt to prepare your agent for the next step and have it ask you what to build next:

Build your first gamification feature

Open in Cursor
For ideas on what to build next, explore:

Achievements

Reward users for continued progress or taking specific actions.

Streaks

Motivate users to build regular usage habits.

Points

Build sophisticated points systems to reward and retain users.

Leaderboards

Create friendly competitions to increase user engagement.

Emails

Deliver personalized lifecycle emails to users at the perfect moment.

Push Notifications

Drive automated notification flows using personalized gamification data.
Or, explore our API reference to get familiar with what Trophy can do.

Get Support

Want to get in touch with the Trophy team? Reach out to us via email. We’re here to help!