npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

aloop-mcp-server

v0.2.0

Published

Aloop MCP Server for LinkedIn Ads Analytics

Readme

Aloop MCP Server

An MCP (Model Context Protocol) server that provides LinkedIn Ads analytics capabilities for Aloop users.

Features

  • Check LinkedIn Ads connection status
  • Retrieve campaign analytics and performance metrics
  • Get campaign lists with detailed information
  • Generate AI-powered campaign recommendations
  • Get audience upload information
  • Supports both stdio and HTTP/SSE transport modes

Installation

npm install
npm run build

Configuration

Transport Modes

The Aloop MCP Server supports two transport modes:

1. Stdio Transport (Default)

Use this mode for Claude Desktop integration.

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "aloop": {
      "command": "node",
      "args": ["/path/to/aloop-mcp/build/index.js"],
      "env": {
        "ALOOP_API_GATEWAY_URL": "http://localhost:8000",
        "ALOOP_USER_JWT": "your-jwt-token-here",
        "TRANSPORT_MODE": "stdio"
      }
    }
  }
}

2. HTTP Transport (Streamable) - Multi-User Support

Use this mode for web-based clients, remote access, or multi-user scenarios where each user provides their own API key.

Step 1: Start the server in HTTP mode

Run the server with HTTP transport (no user-specific API key needed):

export ALOOP_API_GATEWAY_URL=http://localhost:8000
export TRANSPORT_MODE=http
export HTTP_PORT=3001
node build/index.js

Step 2: Each user configures Claude Desktop with their API key

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "aloop-http": {
      "url": "http://localhost:3001/mcp",
      "transport": {
        "type": "http",
        "headers": {
          "Authorization": "Bearer YOUR_ALOOP_API_KEY"
        }
      }
    }
  }
}

Key Benefits of HTTP Mode:

  • Multi-user: Multiple users can connect with their own API keys
  • Development friendly: Server stays running when Claude Desktop restarts
  • Better debugging: View server logs independently
  • Scalability: Deploy to shared server for team access

Note: With HTTP transport, you run the server separately (Step 1), and Claude Desktop connects to it via HTTP. Each user provides their own API key in the client configuration.

See AUTHENTICATION.md for detailed authentication setup.

Endpoints:

  • GET /health - Health check endpoint
  • POST /mcp - MCP protocol endpoint (initialize and requests)
  • GET /mcp - Server-Sent Events stream for server-to-client messages
  • DELETE /mcp - Session termination endpoint

Protocol: The server implements MCP over HTTP with Server-Sent Events for real-time communication.

Example configuration file: See claude_desktop_config_http.example.json

Environment Variables

  • ALOOP_API_GATEWAY_URL - Aloop API Gateway URL (default: http://localhost:8000)
  • ALOOP_USER_JWT - User's JWT token for authentication (stdio mode only)
  • TRANSPORT_MODE - Transport mode: stdio (default) or http
  • HTTP_PORT - HTTP server port when using HTTP transport (default: 3001)

Authentication

The server supports two authentication modes:

  • Stdio Mode: Uses ALOOP_USER_JWT environment variable (single user)
  • HTTP Mode: Uses per-request authentication headers (multi-user)

Each user provides their API key in their Claude Desktop configuration. See AUTHENTICATION.md for detailed setup.

Tools

1. check_linkedin_connection

Check if LinkedIn Ads is connected in Aloop.

2. get_campaign_analytics

Get detailed analytics for LinkedIn Ad campaigns.

3. get_campaigns_list

Get list of all LinkedIn Ad campaigns.

4. get_campaign_recommendations

Generate AI-powered recommendations for campaign optimization.

5. get_audience_uploads

Get information about audience uploads to LinkedIn.

Usage with Claude

Once configured, you can ask Claude:

  • "Show me my LinkedIn campaign analytics"
  • "What are my LinkedIn campaigns performing?"
  • "Give me recommendations for my LinkedIn ads"
  • "Is my LinkedIn connected in Aloop?"

License

MIT