๐ Getting Started
This guide will help you integrate the ClosedLoop MCP Server with your AI client (Claude, Cursor, or custom MCP client).๐ Prerequisites
Required
- Valid ClosedLoop AI account
- API key from your team
- MCP-compatible AI client
API Key Setup
- Visit ClosedLoop AI Dashboard
- Generate a new API key for your team
- Copy the 64-character API key
- Store it securely (environment variable recommended)
๐ง MCP Server Access
The ClosedLoop MCP Server is deployed as a standalone service and can be accessed via HTTP MCP protocol.Server Information
- Server URL:
https://mcp.closedloop.sh - Protocol: HTTP MCP (JSON-RPC 2.0)
- Authentication: Bearer token (API key) in Authorization header
Available Endpoints
- MCP Protocol:
POST https://mcp.closedloop.sh/ - Health Check:
GET https://mcp.closedloop.sh/health
MCP Protocol Usage
List Available Tools
Call a Tool
๐ Security Configuration
Environment Variables
API Key Security
- Never commit API keys to version control
- Use environment variables or secure key management
- Rotate API keys regularly
- Monitor API key usage
Network Security
- Use HTTPS for all connections
- Consider VPN for sensitive environments
- Monitor network traffic
๐งช Testing Your Integration
1. Verify Connection
2. Test Date Filtering
3. Test Detail Retrieval
๐ง Troubleshooting
For comprehensive troubleshooting information, see the Error Handling Guide.Debug Mode
Enable Verbose Logging
Check Server Health
๐ Usage Examples
Basic Insight Analysis
Sentiment Analysis
Detailed Investigation
๐ฏ Best Practices
Efficient Data Usage
- Use date ranges to limit results
- Start with small page sizes for testing
- Cache results when appropriate
- Use
get_insight_detailonly when needed
Security
- Store API keys securely
- Monitor API key usage
- Rotate keys regularly
- Use least-privilege access
Performance
- Use pagination for large datasets
- Consider date ranges for historical data
- Implement caching where appropriate
๐ Multiple Teams
To access data from multiple teams, use different API keys for each team:๐ Support
Documentation
- MCP Tools Reference - Complete tool documentation
- MCP Server Overview - Architecture and features
- API Reference - REST API documentation
Contact
- Technical Support: support@closedloop.sh
- Security Issues: security@closedloop.sh
- Health Check: https://mcp.closedloop.sh/health
Community
- GitHub Issues: Report bugs and request features
- Discord: Join our community for discussions
- Documentation: Check our comprehensive guides
Ready to Use MCP Tools?
Learn about the available MCP tools and how to use them effectively