RevenueCat MCP Server Setup
Prerequisites
- RevenueCat project with API v2 access
- RevenueCat API v2 secret key
Getting Your API Key
- Open your RevenueCat dashboard
- Navigate to your project's API Keys page
- Create a new API v2 secret key and copy it
💡 Tip: Create a dedicated API key for the MCP server to keep your credentials organized.
⚠️ Permissions:
- Use a write-enabled key if you plan to create/modify resources
- A read-only key works if you only need to view data
Cloud MCP Server Setup
Using with MCP Inspector
For testing and development:
npx @modelcontextprotocol/inspector@latest
Configure the inspector with:
- Transport Type: Streamable HTTP
- URL:
https://mcp.revenuecat.ai/mcp
- Authentication: Bearer Token with your RevenueCat API v2 secret key
Using with VS Code Copilot
Add to your VS Code settings:
{
"mcp": {
"servers": {
"revenuecat": {
"type": "http",
"url": "https://mcp.revenuecat.ai/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_V2_SECRET_KEY"
}
}
}
}
}
Using with Claude Desktop
Add to your Claude Desktop configuration:
{
"mcpServers": {
"revenuecat": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-fetch"],
"env": {
"FETCH_BASE_URL": "https://mcp.revenuecat.ai/mcp",
"FETCH_HEADERS": "{\"Authorization\": \"Bearer YOUR_API_V2_SECRET_KEY\"}"
}
}
}
}
Local MCP Extension Setup
1. Install Extension
- Open VS Code or Cursor
- Go to Extensions marketplace
- Search for "RevenueCat MCP"
⚠️ Visual Studio Marketplace:
This only works if your VS Code fork has access to the Visual Studio Marketplace.
If not, you can install the extension manually by downloading the VSIX file.
- Click Install
2. Configure Extension
- Open Command Palette (
Cmd+Shift+P
orCtrl+Shift+P
) - Run: RevenueCat: Set Project Secret Key
- Paste your API key when prompted
This creates an mcp.json
file in your workspace with the MCP server configuration.
🔒 Security: Add
mcp.json
to your.gitignore
to avoid committing your API credentials.
3. Enable MCP in Cursor
- Go to Cursor Settings → MCP
- Click the Enable button
- Click the Refresh icon to activate the server
VS Code Extension Commands
The local extension provides additional VS Code commands for key management:
Command | Description |
---|---|
RevenueCat: Set Project Secret Key | Set or update your API key |
RevenueCat: Remove Project Secret Key | Delete your stored API key |
RevenueCat: Show your project secret key | Display your current API key (masked) |