Manage your app's deep links from Claude Code, Cursor and Claude
Published · Last verified
Most deep links get made in a hurry: a campaign goes out tomorrow, a support email needs a link that opens one screen, a teammate wants yesterday's link to point somewhere else. Grivn runs an MCP server, so you can do these from the AI assistant you already have open (Claude Code, Cursor or Claude) instead of switching to a dashboard.
This guide is for teams with a native iOS or Android app. It covers the tools every plan has: listing projects, and creating, reading, updating, archiving and deleting links. Click analytics over MCP need the Growth plan or above; see the MCP docs for those.
Before you start
- A Grivn project for your app. Create it in the dashboard with your iOS App ID and Android package name. Your assistant can list projects and work with links, but it doesn't create projects.
- A secret API key. In the dashboard, open Settings → API Keys and create a Secret key. Copy it when it is shown. The MCP server only accepts secret keys (
grivn_sk_…); a publishable key, the kind that goes in your app, is refused.
A secret key can change your account's links, so keep it on your own machine. Never put it in a mobile app, a web page or a code repository.
Connect your assistant
The endpoint is https://www.grivn.com/mcp/ (Streamable HTTP), and every request sends the key in an X-API-Key header.
Claude Code. Run in your terminal, replacing YOUR_SECRET_KEY:
claude mcp add --transport http grivn-deeplink https://www.grivn.com/mcp/ \
--header "X-API-Key: YOUR_SECRET_KEY"
Cursor. Add this to .cursor/mcp.json in your project, or to ~/.cursor/mcp.json for every project:
{
"mcpServers": {
"grivn-deeplink": {
"url": "https://www.grivn.com/mcp/",
"headers": {
"X-API-Key": "YOUR_SECRET_KEY"
}
}
}
}
Cursor can also read the key from an environment variable: "X-API-Key": "${env:GRIVN_SECRET_KEY}".
Claude (desktop app and claude.ai). Add Grivn as a custom connector in your account settings, with No sign in and the key as a request header. The MCP docs list the exact steps.
To check the connection, ask your assistant to list my Grivn projects.
Things to ask
Write requests the way you would ask a teammate. Your assistant picks the tool and fills in the fields. Most clients show you each tool call before it runs.
See what you have
List my Grivn projects.
Show the links in my "Acme app" project.
Create a link
In "Acme app", create a deep link called spring-promo that opens https://acme.com/promo/spring. On iPhone, send people who don't have the app to App Store ID 1234567890. Use "Spring sale" as the preview title.
Your assistant calls create_deeplink with the project, the name, the destination link and the options you gave: App Store ID, Android package, fallback pages, and the social preview title, description and image. It replies with the new link, including its short link, ready to share. After someone installs your app from that link, the Grivn SDK hands your app the destination on first open.
Change a link
Point spring-promo to https://acme.com/promo/spring-2 instead.
Change spring-promo's preview image to https://acme.com/img/spring.png.
The short link stays the same, so anything you already shared starts going to the new place.
Retire a link
Archive spring-promo.
An archived link stops redirecting and shows an "unavailable" page. You can unarchive it later.
Delete the link called test-link.
Deleting can't be undone. Archive instead if you might want the link back.
Good habits
- Check before destructive actions. Leave your client's tool approvals on for
update_deeplinkanddelete_deeplink, at least until you trust your prompts. - One key per machine or teammate. If a laptop is lost or someone leaves, delete just that key in Settings → API Keys. A deleted key stops working at once.
- Keep the key out of shared files. Prefer an environment variable or your client's secret storage over pasting it into a file you commit.
If it doesn't connect
- Claude Code says "Dynamic Client Registration" or asks you to sign in. That is how it shows a 401: the key is missing, wrong or deleted. Check it with
claude mcp get grivn-deeplink. - 403
CREDENTIAL_NOT_ALLOWED. You used a publishable key. Create a secret key. - Make sure the address is exactly
https://www.grivn.com/mcp/, including the trailing slash.
The full list of tools and errors is in the MCP docs. New to Grivn? Start free: the Hacker plan includes these tools.