🔌 Connection Methods
VS Code Integration (Recommended)
Add this configuration to your VS Code settings.json:
{
"mcp.servers": {
"countly": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@countly/countly-mcp-server"],
"env": {
"COUNTLY_SERVER_URL": "https://your-server.count.ly",
"COUNTLY_AUTH_TOKEN": "your-api-key"
}
}
}
}
Claude Desktop Integration
Configure Claude Desktop to connect with Countly:
{
"mcpServers": {
"countly": {
"command": "npx",
"args": ["-y", "@countly/countly-mcp-server"],
"env": {
"COUNTLY_SERVER_URL": "https://your-server.count.ly",
"COUNTLY_AUTH_TOKEN": "your-api-key"
}
}
}
}
HTTP/SSE Connection
Connect via HTTP with custom headers (recommended):
POST /mcp X-Countly-Server-Url: https://your-server.count.ly X-Countly-Auth-Token: your-api-key Content-Type: application/json
Or use URL parameters:
POST /mcp?server_url=https://your-server.count.ly&auth_token=your-api-key Content-Type: application/json