Skip to main content
Cursor is an AI-powered code editor that can help you build applications faster. When combined with Unkey’s APIs, you can quickly generate secure, scalable applications with API keys and rate limiting.

Prerequisites

Getting Started

1. Set Up Your Unkey Workspace

First, create your Unkey workspace and get your API keys:
1

Create a keyspace

Navigate to the Unkey Dashboard and create a new keyspace for your project.
2

Get Your Root Key

Go to Settings > Root Keys and create a new root key with the necessary permissions.
3

Note Your API ID

Copy your API ID from the dashboard - you’ll need this for generating API keys.

2. Set Up Unkey MCP Server (Optional)

Cursor supports the Model Context Protocol (MCP) which allows you to connect directly to Unkey’s APIs. This gives Cursor access to your Unkey workspace for more intelligent suggestions.

Install Unkey MCP Server

  1. Configure the MCP Server Create or update your Cursor configuration file with the Unkey MCP server:
    For ratelimiting specific operations, you can also add:
  2. Set Environment Variable
  3. Restart Cursor Restart Cursor to load the MCP server configuration.

Tips and Tricks for Cursor with Unkey

1. Keep Your Requests Small

When working with Cursor, break down complex tasks into smaller, focused requests: Good:
Better:

2. Update and Reference Your README.md

Keep your project’s README.md updated with Unkey-specific information. Cursor uses this context to provide better suggestions:

Add Unkey Documentation Context

Adding Unkey docs can let you specifically refer to Unkey features when building your app. From Cursor Settings > Features > Docs add new doc, use the URL “https://unkey.com/docs
Last modified on June 2, 2026