Overview
Cursor is an AI-powered IDE that supports MCP (Model Context Protocol) for enhanced code intelligence and tool integration. Through Portkey’s MCP Gateway, you can seamlessly connect any MCP server to Cursor without managing infrastructure or authentication.Key Benefits
- Secure Authentication: Portkey handles OAuth flows and token management.
- Unified Authentication: Single oauth token to rule them all
- Team Collaboration: Share MCP server configurations, manage access permissions, and ensure everyone on your team has the tools they need—configured correctly, every time.
- Complete Observability: See every request, track latency, monitor errors, and understand usage patterns.
Prerequisites
Before you begin, ensure you have:- Cursor IDE installed (version X.X or later)
- Portkey account with workspace access
- MCP server registered in Portkey’s MCP Hub
Quick Setup
Step 1: Get Your MCP Server URL
- Log in to Portkey Dashboard
- Navigate to MCP Hub → Your Servers
- Copy your server URL:
Step 2: Open Cursor MCP Settings
- Open Cursor IDE
- Use keyboard shortcut:
Cmd/Ctrl + Shift + P
- Type and select:
View: Open MCP settings
- Click “Add a new MCP server”
Step 3: Configure Your Server
Add this configuration to your MCP settings JSON:Step 4: Authentication
Portkey handles all authentication flows automatically:-
First Connection: When Cursor first connects to an authenticated MCP server, Portkey will:
- Open your browser for OAuth authorization (if required)
- Store credentials securely
- Maintain session state
- Subsequent Connections: Authentication tokens are refreshed automatically
- Team Access: Workspace members share the same authentication scope based on your Portkey settings
Configuration Examples
Single Server Setup
Multiple Servers Setup
Support
Need help? We’re here for you:- 📧 Email: [email protected]
- 💬 Discord: Join our community