Overview
Connect Claude Desktop to ClosedLoop AI using the Model Context Protocol (MCP). This integration enables Claude to access your customer insights, search feedback, and analyze patterns directly in conversations.MCP (Model Context Protocol) is an open standard that allows AI assistants to securely connect to external data sources and tools.
Prerequisites
Before you begin, ensure you have:- Claude Desktop installed (Download here)
- ClosedLoop AI account with an active team
- API key from your ClosedLoop dashboard
- Node.js 18+ installed on your system
Quick Setup
Step 1: Get Your API Key
- Go to ClosedLoop AI Dashboard
- Click Create API Key
- Copy your 64-character API key
- Keep it secure — you’ll need it for configuration
Step 2: Configure Claude Desktop
Open your Claude Desktop configuration file:- macOS
- Windows
Step 3: Add ClosedLoop Configuration
Add the following configuration to yourclaude_desktop_config.json:
Step 4: Restart Claude Desktop
- Quit Claude Desktop completely
- Reopen Claude Desktop
- Look for the MCP tools icon (hammer) in the input area
Verify Connection
Once configured, test the integration by asking Claude:- list_insights — Browse customer feedback
- get_insight_detail — Get detailed insight information
- search_insights — Search across all feedback
Example Prompts
Browse Recent Feedback
Search for Specific Topics
Analyze Patterns
Find Feature Requests
Investigate Specific Issues
Configuration Options
Full Configuration Reference
| Variable | Required | Description |
|---|---|---|
CLOSEDLOOP_API_KEY | Yes | Your 64-character API key |
CLOSEDLOOP_SERVER_URL | No | Server URL (default: https://mcp.closedloop.sh) |
DEBUG | No | Enable debug logging (true/false) |
Enable Debug Mode
For troubleshooting, enable debug output:Troubleshooting
MCP Tools Not Appearing
- Check configuration syntax — Ensure valid JSON format
- Verify API key — Make sure the key is correct and active
- Restart Claude Desktop — Quit completely and reopen
- Check Node.js — Run
node --version(requires 18+)
Connection Errors
View Debug Logs
On macOS, view Claude Desktop logs:Common Errors
| Error | Solution |
|---|---|
401 Unauthorized | Check your API key is correct |
403 Forbidden | Verify your team has access |
Connection refused | Check internet connection |
npx not found | Install Node.js 18+ |
Security Best Practices
API Key Security
API Key Security
- Never share your API key publicly
- Don’t commit config files with API keys to git
- Rotate API keys regularly in the dashboard
- Each team member should use their own API key
Data Privacy
Data Privacy
- All connections use HTTPS encryption
- API keys are scoped to your team’s data only
- No customer data is stored by the MCP client
- Audit API key usage in the dashboard
Next Steps
MCP Tools Reference
Learn about all available tools and their parameters
Search Best Practices
Master advanced search queries for better results
API Reference
Explore the REST API for custom integrations
Rate Limits
Understand usage limits and quotas
Support
Need help? Contact us:- Email: [email protected]
- Documentation: MCP Server Docs
- Status: Check server health