Harness the power of AI-native development. Use Cursor with Redirectly's MCP server to automate and streamline your deep linking setup in minutes.
MCP is an open protocol that connects AI systems like Cursor to external tools and services. It enables AI editors to understand your codebase, access APIs, and execute tasks with precise context—transforming them from general-purpose assistants into specialized tools for your specific workflow.
The Redirectly MCP server is available on npm. Install it globally or locally in your project:
npm install -g @redirectly/mcp-server
Tip: Global installation makes the server available from any directory.
Verify that the MCP server is installed correctly:
redirectly-mcp --version
You should see a version number like 1.0.0
Open Cursor and access the MCP configuration:
1. Press Cmd/Ctrl + K to open Command Palette
2. Search for "MCP" or "Model Context Protocol"
3. Select "Cursor Settings: MCP"
4. Open the JSON configuration file
Add the Redirectly MCP server to your Cursor configuration:
{
"mcpServers": {
"redirectly": {
"command": "redirectly-mcp",
"args": [],
"env": {
"REDIRECTLY_API_KEY": "your-api-key-here"
}
}
}
}Get your API key from Redirectly and add it to the configuration. Visit your dashboard to find your API key.
Security: Never commit your API key to version control. Use environment variables or a .env.local file instead.
Close and reopen Cursor to apply the new MCP server configuration.
Cmd/Ctrl + Q to quit Cursor Reopen Cursor from your applications
Now you can ask Cursor to handle deep linking setup directly. Use natural language to describe what you need:
Ask Cursor to set up Universal Links for iOS:
@redirectly Set up Universal Links for iOS in my Flutter app. My domain is myapp.com. Configure Associated Domains, create the AASA file, and add the deep link handler to my main.dart.
Ask Cursor to configure Android App Links:
@redirectly Configure App Links for Android in my React Native app. Domain: myapp.com App packages: com.myapp.dev, com.myapp.prod Add all required manifest configurations and deep link handlers.
Ask for complete deep linking implementation across platforms:
@redirectly Set up complete deep linking for my app: - iOS: Universal Links for myapp.com and www.myapp.com - Android: App Links for the same domains - Create AASA file and assetlinks.json - Configure routing for /products/:id, /users/:id, and /share/:code paths - Add handlers to my app startup code
When you use the @redirectly mention, Cursor:
After Cursor completes the setup, verify that all necessary files have been created:
# iOS ls ios/Runner.xcodeproj/ # Android ls android/app/src/ # Web (AASA file) ls web/.well-known/apple-app-site-association
Build and test your app on real devices to verify deep linking works:
iOS: Run flutter run on a real device and test with deep links in Notes or Safari
Android: Test with adb command to trigger deep links: adb shell am start -a android.intent.action.VIEW -d "myapp.com/products/123"
Validate your configuration using our online tools:
Issue: Cursor doesn't recognize the @redirectly mention
Solution:
redirectly-mcp --versionIssue: Cursor generated code that doesn't compile
Solution:
Issue: "Invalid API key" or authentication errors
Solution:
Transform your deep linking workflow with AI-native development. Set up complex routing in minutes instead of hours.