Installation
This guide walks you through setting up the recapt MCP server in your AI coding assistant.
Prerequisites
- Node.js 18+ installed on your machine
- Recapt account with session recording set up
- MCP key from your recapt dashboard
Getting Your MCP Key
- Go to dash.recapt.app/settings
- Navigate to the MCP Keys tab
- Click Create New Key
- Copy the key (starts with
mcp_sk_)
Your MCP key provides access to your behavioral data. Don't commit it to version control or share it publicly.
Quick Setup (Recommended)
The easiest way to set up the MCP server is with the interactive setup wizard:
npx @recapt/cli setup
This will:
- Detect which AI IDEs you have installed
- Prompt you for your MCP key
- Configure the selected IDEs automatically
- Optionally install workflow skills
After setup, restart your IDE to activate the MCP server.
Manual Setup
If you prefer to configure manually, add the recapt server to your IDE's MCP configuration.
Cursor
Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project):
{
"mcpServers": {
"recapt": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@recapt/mcp@latest"],
"env": {
"RECAPT_SECRET_KEY": "mcp_sk_your_key_here"
}
}
}
}
Claude Code
Add to ~/.claude.json (global) or .mcp.json (project):
{
"mcpServers": {
"recapt": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@recapt/mcp@latest"],
"env": {
"RECAPT_SECRET_KEY": "mcp_sk_your_key_here"
}
}
}
}
Windsurf
Add to ~/.windsurf/mcp.json (global) or .windsurf/mcp.json (project):
{
"mcpServers": {
"recapt": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@recapt/mcp@latest"],
"env": {
"RECAPT_SECRET_KEY": "mcp_sk_your_key_here"
}
}
}
}
VS Code
Add to .vscode/mcp.json in your project:
{
"servers": {
"recapt": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@recapt/mcp@latest"],
"env": {
"RECAPT_SECRET_KEY": "mcp_sk_your_key_here"
}
}
}
}
Zed
Add to ~/.config/zed/settings.json (global) or .zed/settings.json (project):
{
"context_servers": {
"recapt": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@recapt/mcp@latest"],
"env": {
"RECAPT_SECRET_KEY": "mcp_sk_your_key_here"
}
}
}
}
Codex CLI
Add to ~/.codex/config.toml (global) or .codex/config.toml (project):
[mcp_servers.recapt]
type = "stdio"
command = "npx"
args = ["-y", "@recapt/mcp@latest"]
[mcp_servers.recapt.env]
RECAPT_SECRET_KEY = "mcp_sk_your_key_here"
GitHub Copilot
Add to .github/mcp.json in your project:
{
"servers": {
"recapt": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@recapt/mcp@latest"],
"env": {
"RECAPT_SECRET_KEY": "mcp_sk_your_key_here"
}
}
}
}
Installing Skills
Skills are guided workflows that help your AI assistant tackle complex tasks. We recommend installing the self-improvement skill:
npx @recapt/cli skill install self-improvement
This creates an AGENTS.md file in your project that guides your AI through the full self-improvement workflow.
Available skills:
self-improvement: End-to-end issue detection, fixing, and validationregression-hunt: Find what broke after a deploymentdeep-dive: Comprehensive page or flow analysis
Install all skills at once:
npx @recapt/cli skill install --all
List available skills:
npx @recapt/cli skill list
Verifying Installation
After restarting your IDE, test the connection by asking your AI assistant:
What domains are configured in recapt?
If configured correctly, the AI will list your tracked domains.
You can also try:
Run a diagnostic on my site
This will analyze your site and show any detected UX issues.
Troubleshooting
"API not configured" error
Make sure your RECAPT_SECRET_KEY is set correctly in the MCP configuration. The key should start with mcp_sk_.
MCP server not appearing
- Ensure you've restarted your IDE after configuration
- Check that the config file is valid JSON
- Verify the file is in the correct location for your IDE
No data returned
Make sure you have:
- The recapt script installed on your website
- Session recordings being captured
- At least a few days of data for meaningful analysis
Next Steps
- Self-Improvement Workflow: Learn how to use the full self-improvement loop
- Other Capabilities: Explore additional features