# Redirectly MCP Server: Use AI Editors to Build Deep Links > Leverage AI editors to build deep links with Redirectly's MCP server. Setup guides for Cursor, Claude Desktop, VS Code, and more for vibe coding. - Canonical: https://redirectly.app/blog/redirectly-mcp-server-ai-editors - Site: [Redirectly](https://redirectly.app) — deferred deep linking for Flutter & React Native - Published: 2024-02-25 - Author: Redirectly - Category: AI Tools · 8 min read Leverage AI assistants to build, generate, and manage deep links directly from your editor ## What is MCP and Why It Matters The Model Context Protocol (MCP) is a new standard that enables AI models to connect with tools, services, and data sources. MCP transforms AI editors from simple code assistants into powerful development platforms where AI can directly access external tools without leaving your editor. Before MCP, if you wanted AI to help with deep linking, you'd need to manually copy API calls, run commands separately, or constantly switch between tools. Now, with MCP servers, AI editors can: - Generate deep links with a simple natural language prompt - Validate AASA and assetlinks.json configurations - Create referral and marketing campaign links - Integrate link generation into your development workflow This is "vibe coding"—building software by conversing with AI while having access to real tools that execute actual work. ## Redirectly is the First Deep Linking MCP Server Redirectly's MCP server is the first tool of its kind for deep linking. While other platforms require navigating dashboards or APIs, Redirectly brings deep linking into your AI editor where you're already writing code. With Redirectly's MCP server, you can: - **Generate Referral Links** — Ask your AI editor to create a referral link for a specific user. It generates the link, returns the code, and you can immediately test it. - **Create Marketing Campaign Links** — Generate campaign-specific deep links with custom parameters. Ideal for promotional emails, social media, and ads. - **Validate Configurations** — Check your AASA and assetlinks.json files without leaving your editor. - **Integrate with Development** — Generate links as part of your coding workflow, testing, or documentation. ## Getting Started with Cursor (Most Popular AI Editor) Cursor is the most popular AI-powered code editor. Here's how to set up Redirectly's MCP server: ### 1. Install Redirectly MCP Server First, install the Redirectly MCP server globally via npm: ```bash npm install -g @redirectly/mcp-server ``` ### 2. Configure Cursor Settings Open Cursor settings (Cmd/Ctrl + Shift + P, then "Settings") and add the MCP configuration: ```json { "mcpServers": { "redirectly": { "command": "redirectly-mcp-server", "args": ["--api-key", "your_api_key_here"] } } } ``` Replace "your_api_key_here" with your Redirectly API key (get one at redirectly.app). ### 3. Restart Cursor Close and reopen Cursor. The MCP server is now connected and ready to use. ## Example Session: Building a Referral Deep Link with AI Here's how a typical vibe coding session looks with Redirectly MCP: **You (in Cursor):** "Create a referral deep link for user john@example.com with the code JOHN_FRIEND_2024" **Cursor with Redirectly MCP:** ```json { "success": true, "link": "https://example.com/r/john_friend_2024", "customCode": "JOHN_FRIEND_2024", "deepLinks": { "iOS": "myapp://referral?code=JOHN_FRIEND_2024", "android": "myapp://referral?code=JOHN_FRIEND_2024" } } ``` **You (continuing):** "Now create a marketing campaign link for our new product launch. Track it with campaign=product_launch_march_2024" **Cursor generates and inserts code:** ```javascript // Marketing campaign deep link const productLaunchLink = { url: "https://example.com/launch", ios: "myapp://launch?campaign=product_launch", android: "myapp://launch?campaign=product_launch" }; export const campaignLinks = { email: productLaunchLink.url, social: productLaunchLink.url }; ``` The entire process—generating deep links, getting the code, and integrating it into your project—happens without leaving Cursor. This is the power of MCP-enabled development. ## Supported AI Editors Redirectly's MCP server works with all major AI-powered editors: - **Cursor** — Most popular AI editor with Claude integration - **Claude Desktop** — Anthropic's native desktop application - **Windsurf** — AI-native IDE built for flow - **VS Code + Cody** — VS Code with Sourcegraph's AI assistant - **Zed** — High-performance code editor with AI features - **Continue.dev** — Open-source AI code assistant Setup instructions are similar across all editors. Refer to the specific editor's MCP documentation for detailed configuration steps. ## MCP Server Capabilities Redirectly's MCP server exposes these tools to your AI assistant: - **generate_link** — Create a deep link with custom parameters and metadata - **create_referral_link** — Generate referral links with custom codes and user associations - **create_campaign_link** — Create marketing campaign deep links with campaign tracking - **validate_aasa** — Validate Apple App Site Association configurations - **validate_assetlinks** — Validate Android assetlinks.json configurations - **get_link_analytics** — Retrieve analytics and usage data for your deep links ## Real-World Use Cases Here's how teams use Redirectly's MCP server: - **Onboarding Flows** — Generate verification and password reset links during user onboarding. AI helps create contextual URLs specific to each onboarding step. - **Marketing Campaigns** — Create campaign-specific deep links for email, social media, and paid ads. Track which channels drive installs and engagement. - **Referral Programs** — Generate unique referral codes and deep links for each user. Automate link creation as users opt into referral programs. - **QA and Testing** — Quickly generate test deep links with various parameters to verify your app's deep linking implementation. - **Configuration Validation** — Check AASA and assetlinks.json files while developing, catching issues before deployment. ## Advanced Workflow: Vibe Coding a Referral System Here's an advanced example of vibe coding with Redirectly MCP: ```plaintext You: "Build a referral system with deep links for user alice@example.com" Cursor: - Calls create_referral_link API - Returns referral link and deep link formats - Inserts working code into your file You: "Validate our AASA configuration" Cursor: - Checks AASA file - Reports issues and fixes - Updates configuration You: "Create tests for 10 referral links" Cursor: - Generates test data - Creates test assertions - Ready to run ``` ## Getting Your API Key To use Redirectly's MCP server, you need an API key: 1. **Sign Up or Log In** — Visit redirectly.app and create an account or log in. 2. **Navigate to API Keys** — Go to Settings > API Keys in your dashboard. 3. **Create a New Key** — Click "Create API Key" and give it a name (e.g., "MCP Server"). 4. **Copy and Store Securely** — Copy the key and store it securely. You'll use it in your editor configuration. **Security Note:** Never commit your API key to version control. Use environment variables or secure secret management. ## Learn More About Redirectly Explore more about Redirectly's platform and capabilities: - [Redirectly MCP Platform](https://redirectly.app/mcp.md) — Full documentation and technical details about MCP integration. - [Deep Linking Guide](https://redirectly.app/deep-linking-guide.md) — Comprehensive guide to deep linking fundamentals and best practices. - [Deferred Deep Linking in Flutter](https://redirectly.app/flutter-deferred-deep-linking.md) — Implement deferred deep linking in your Flutter apps with Redirectly. ## Summary Redirectly's MCP server brings deep linking into your AI editor, enabling vibe coding workflows where AI assists with real deep linking tasks. You can: - Generate referral and campaign deep links by asking your AI editor - Validate AASA and assetlinks.json configurations without context switching - Integrate deep linking into your development workflow seamlessly - Use with all major AI editors (Cursor, Claude Desktop, VS Code, Zed, etc.) - Build faster with AI assistance on deep linking tasks **Ready to try MCP-powered deep linking?** Install Redirectly's MCP server and start vibe coding your next deep link feature. [Explore Redirectly MCP](https://redirectly.app/mcp.md) --- Full site index for AI agents: https://redirectly.app/llms.txt