Social Listening (Syften) MCP server

Integrates with Syften's API to enable real-time social listening, content categorization, and trend analysis for enhanced social media strategies.
Back to servers
Setup instructions
Provider
Fred Em
Release date
Feb 13, 2025
Language
TypeScript
Stats
1 star

The Social Listening MCP server enables AI-powered analysis of social mentions through Syften's API, offering real-time monitoring and notifications via webhooks. It helps you track, categorize, and respond to mentions across various platforms.

Prerequisites

  • Node.js (v16 or later)
  • A Syften account with API access
  • Claude Desktop app or VSCode with Claude extension

Installation

  1. Clone the repository:

    git clone https://github.com/fred-em/social-listening.git
    cd social-listening
    
  2. Install dependencies:

    npm install
    
  3. Build the server:

    npm run build
    

Configuration

Syften API Setup

  1. Log in to your Syften account
  2. Go to Settings > API Access
  3. Generate an API key if you haven't already
  4. Copy your API key for the next step

Claude Desktop Configuration

Add the server configuration to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "social-listening": {
      "command": "node",
      "args": ["/absolute/path/to/social-listening/build/index.js"],
      "env": {
        "SYFTEN_API_KEY": "your-api-key-here"
      }
    }
  }
}

VSCode Configuration (Optional)

If you're using VSCode with the Claude extension, add the configuration to /Users/YOUR_USERNAME/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json:

{
  "mcpServers": {
    "social-listening": {
      "command": "node",
      "args": ["/absolute/path/to/social-listening/build/index.js"],
      "env": {
        "SYFTEN_API_KEY": "your-api-key-here"
      }
    }
  }
}

Available Tools

configure_ai_filter

Configure AI filtering settings for mention analysis.

{
  "enabled": true,
  "min_confidence": 0.7,
  "categories": ["spam", "support", "feedback", "bug_report", "feature_request"],
  "webhook_url": "https://your-webhook.com/endpoint",
  "webhook_secret": "your-secret-token"
}

setup_webhook

Configure webhook endpoint for real-time notifications.

{
  "endpoint_url": "https://your-webhook.com/endpoint",
  "secret_token": "your-secret-token",
  "enabled": true
}

backfill_month

Backfill mentions for a specific month.

{
  "year": 2024,
  "month": 2
}

sync_latest

Sync new mentions since last update.

{}

analyze_trends

Analyze mention trends over time.

{
  "start_date": "2024-01-01",
  "end_date": "2024-02-01",
  "group_by": "day",
  "tags": ["feature", "bug"]
}

get_top_sources

Get top mention sources/authors.

{
  "start_date": "2024-01-01",
  "end_date": "2024-02-01",
  "limit": 10
}

nlp_prompt

Process natural language queries.

{
  "prompt": "show me feedback mentions from last week"
}

get_ai_filtered_mentions

Get mentions processed by AI filtering.

{
  "start_date": "2024-01-01",
  "end_date": "2024-02-01",
  "min_confidence": 0.8,
  "categories": ["feedback", "bug_report"],
  "limit": 50
}

Example Usage in Claude

Here are some example prompts you can use with Claude:

  1. Configure AI filtering:

    Configure the social listening AI filter to detect bug reports and feature requests with 80% confidence.
    
  2. Set up webhook notifications:

    Set up a webhook for the social listening server to send notifications to https://my-server.com/webhook with the secret token "my-secret".
    
  3. Analyze trends:

    Show me the trend of bug reports and feature requests from last month.
    
  4. Get filtered mentions:

    Show me all high-confidence bug reports from the past week.
    
  5. Natural language queries:

    What kind of feedback have we received about the new feature launch?
    

Webhook Integration

When configuring webhooks, the server will send notifications in this format:

{
  "mention_url": "https://example.com/post",
  "ai_score": 0.95,
  "ai_categories": ["bug_report", "feature_request"],
  "timestamp": "2024-02-12T15:30:00Z"
}

Headers included with webhook requests:

  • Content-Type: application/json
  • X-Webhook-Secret: your-secret-token

Troubleshooting

  • Webhook errors: Ensure your webhook endpoint is accessible and supports HTTPS
  • API key issues: Verify your Syften API key is correctly set in the configuration
  • Database errors: Check if the data directory exists and is writable

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "social-listening" '{"command":"node","args":["/absolute/path/to/social-listening/build/index.js"],"env":{"SYFTEN_API_KEY":"your-api-key-here"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "social-listening": {
            "command": "node",
            "args": [
                "/absolute/path/to/social-listening/build/index.js"
            ],
            "env": {
                "SYFTEN_API_KEY": "your-api-key-here"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "social-listening": {
            "command": "node",
            "args": [
                "/absolute/path/to/social-listening/build/index.js"
            ],
            "env": {
                "SYFTEN_API_KEY": "your-api-key-here"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later