Skip to main content

AppsFlyer

AppsFlyer's official MCP server is in beta. It connects agents to AppsFlyer marketing data at https://mcp.appsflyer.com/auth/mcp over streamable HTTP. A call runs as the AppsFlyer user who signs in, or as the admin who created the MCP token. AppsFlyer uses that user's existing permissions. There is no separate MCP permission to grant. MCP is on by default; an admin can turn it off under Account & Profile → AI capabilities.

AppsFlyer only registers an OAuth client when the redirect URL is on its trusted list. Willow's hosted callback is refused with redirect_uri not in trusted list. AppsFlyer has no OAuth app to create. A redirect on the person's own computer, such as http://localhost, is accepted, and so is an MCP token. Agency users and ad network users are not supported. One connection uses one AppsFlyer account.

See [Beta] AppsFlyer MCP.

Local sign-in​

Each person signs in with their own AppsFlyer account. Willow's Local sign-in registers a http://localhost redirect, which AppsFlyer allows. A helper on each person's computer receives the sign-in and passes it to Willow. The helper is part of the Willow Scan Agent, or people can run it in a terminal.

1. In Willow — add the server​

  1. In the sidebar, go to MCP Servers under the Build section and click + Add MCP server.
  2. Find the AppsFlyer card with the Official badge and click + Use.
  3. Setup says Willow couldn't register itself with AppsFlyer and asks for an OAuth app's client ID. This is expected. Click Skip for now.
  4. Open the server, go to the Setup tab, and scroll to Authentication. OAuth sign-in is selected.
  5. Turn on Local sign-in. Willow registers itself with AppsFlyer and shows OAuth client registered for local sign-in.
  6. Click Save Changes.
  7. In Tools, turn on the tools you want, assign the server to groups, and click Publish.

2. Each person — sign in​

  1. Make sure the Willow Scan Agent is running, or run npx -y @mcp-s/mcp oauth-relay in a terminal and keep it open while signing in.
  2. The first time an assistant calls an AppsFlyer tool, Willow asks the person to sign in. Willow checks that the helper is running, then opens AppsFlyer. Sign in as a user with access to the apps and data.

OAuth sessions last about 7 days. When a session expires, the person signs in again with the helper running.

If you manage more than one AppsFlyer account under the same email, set the account you want as the primary account in AppsFlyer, then sign in again. One connection cannot query several accounts at once.

MCP token​

Use a token for a shared connection, a background agent, or anyone who should not sign in through a browser. The token is account-level. It inherits the permissions of the admin who created it and stays valid until someone revokes it.

  1. In AppsFlyer, go to Account menu → Security Center → AppsFlyer Tokens and create an MCP token.
  2. In Willow, choose API key under Sign-in:
    • One shared — leave Scheme as Bearer and paste the token itself. Willow keeps it in the vault and sends Authorization: Bearer <token> on every request.
    • Each person's own — each person pastes Bearer <token>, including the word Bearer, the first time they connect. Willow sends that value as the Authorization header and does not add a prefix.

To connect several accounts at once, create a token in each account and add a separate Willow connection for each token.

Hosted sign-in​

Willow's hosted callback works after AppsFlyer adds it to the trusted list. Copy the exact URL from the server's Setup tab and send it to your AppsFlyer CSM, or to hello@appsflyer.com. AppsFlyer asks platforms that are not already listed to do this.

  • SaaS: https://{org}.withwillow.ai/{org}/api/auth/callback
  • On-prem: {CONNECT_URL}/{org}/api/auth/callback

After AppsFlyer confirms, turn Local sign-in off and sign in again. Willow registers itself with the hosted callback.

Troubleshooting​

Registration fails with redirect_uri not in trusted list. Local sign-in is off, and AppsFlyer has not trusted Willow's hosted callback. Turn on Local sign-in, or send the callback URL from the Setup tab to AppsFlyer.

"One quick step before you sign in". Nothing on the person's computer is listening for the sign-in. Start the Willow Scan Agent, or run the command shown in a terminal, then click I've started it. If the browser asks to allow access to devices on your network, allow it.

Sign-in works, then tools fail or say MCP is blocked. An AppsFlyer admin may have turned MCP off under Account & Profile → AI capabilities. Ask them to turn it back on. The signed-in user, or the token's creator, also needs access to the apps the tool asks for.

An MCP token is rejected. The token may have been revoked. Tokens created before March 10, 2026, 19:00 UTC can stop working. In Security Center → Token Management, delete the old token, create a new MCP token, and update Willow. The header AppsFlyer expects is Authorization: Bearer <token>.

Additional Resources​