Create Your First API Key
Set up your first MCP API key to connect to n8n
Create Your First API Key
MCP API keys allow AI clients like Claude Desktop to connect to your n8n instance through the MCP server.
Prerequisites
Before creating an API key, ensure you have:
- Signed in to the n8n MCP Bridge dashboard
- n8n instance running (self-hosted or cloud)
- n8n API key from your n8n instance
Get Your n8n API Key
For Self-Hosted n8n
- Open your n8n instance
- Go to Settings → API
- Click Create API Key
- Give it a name (e.g., "MCP Bridge")
- Copy the API key immediately (you won't see it again)
For n8n Cloud
- Log in to n8n.cloud
- Go to Settings → API
- Generate a new API key
- Copy the key
Create MCP API Key
Step 1: Navigate to Dashboard
- Sign in to n8n MCP Bridge at http://localhost:3000
- Click Dashboard in the navigation
- You'll see the Overview tab by default
Step 2: Add n8n Connection
If you don't have an n8n connection yet:
- Click Add n8n Connection button
- Enter the following details:
- Connection Name: A friendly name (e.g., "My n8n Instance")
- n8n URL: Your n8n instance URL (e.g.,
https://n8n.example.com) - n8n API Key: Paste the API key from n8n
- Click Test Connection to verify
- Click Create Connection
Step 3: Create API Key
- Navigate to the API Keys tab
- Click Create API Key
- Fill in the form:
- API Key Name: Descriptive name (e.g., "Claude Desktop - MacBook")
- Select n8n Connection: Choose the connection you created
- Click Create API Key
Step 4: Save Your API Key
The MCP API key will be displayed only once:
mcp_abc123xyz456def789ghi012jkl345
Important: Copy this key immediately and store it securely. You won't be able to see it again.
Verify Your API Key
Test that your API key works:
- The dashboard shows a connection status indicator
- Click Test Connection next to your API key
- You should see: "Connection successful ✓"
If the test fails, check:
- n8n instance is accessible
- n8n API key is valid
- Network connectivity
API Key Details
Your API key entry shows:
- Name: The descriptive name you provided
- Connection: Which n8n connection it uses
- Created: When the key was created
- Last Used: When it was last accessed
- Status: Active or inactive
Security Best Practices
Keep Your Keys Secure
- Never commit API keys to version control
- Don't share keys with others
- Use separate keys for different clients/devices
- Rotate keys regularly for enhanced security
Revoke Compromised Keys
If an API key is compromised:
- Go to the API Keys tab
- Find the compromised key
- Click the trash icon to delete it
- Create a new API key immediately
- Update all clients using the old key
API Key Format
MCP API keys follow this format:
mcp_[random-characters]
- Prefix:
mcp_ - Length: 32+ characters
- Characters: Alphanumeric
Usage Limits
Current limitations:
- No usage limits by default
- Usage is tracked for analytics
- Can be configured per-key in the future
Next Steps
Now that you have an API key, connect it to Claude Desktop:
Managing Multiple Keys
You can create multiple API keys for:
- Different devices: Separate keys for laptop, desktop, etc.
- Different clients: Claude Desktop, VS Code, Cursor
- Team members: Individual keys for team collaboration
- Testing: Separate keys for development and production
To create additional keys, repeat the process above.
API Key Metadata
Each API key stores:
- Connection details: Which n8n instance it connects to
- Access logs: When and how it was used
- Memory settings: Associated memory items (optional)
View this information in the dashboard under API Keys tab.