social listening
An MCP server offering AI-driven social mention analysis via Syften's API, featuring real-time notifications and trend analysis.
An MCP server offering AI-driven social mention analysis via Syften's API, featuring real-time notifications and trend analysis.
A Model Context Protocol (MCP) server that provides social listening capabilities through Syften's API. This server enables AI-powered analysis of social mentions, with support for real-time notifications via webhooks.
Clone the repository:
git clone https://github.com/fred-em/social-listening.git
cd social-listening
Install dependencies:
npm install
Build the server:
npm run build
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"
}
}
}
}
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"
}
}
}
}
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"
}
Configure webhook endpoint for real-time notifications.
{
"endpoint_url": "https://your-webhook.com/endpoint",
"secret_token": "your-secret-token",
"enabled": true
}
Backfill mentions for a specific month.
{
"year": 2024,
"month": 2
}
Sync new mentions since last update.
{}
Analyze mention trends over time.
{
"start_date": "2024-01-01",
"end_date": "2024-02-01",
"group_by": "day",
"tags": ["feature", "bug"]
}
Get top mention sources/authors.
{
"start_date": "2024-01-01",
"end_date": "2024-02-01",
"limit": 10
}
Process natural language queries.
{
"prompt": "show me feedback mentions from last week"
}
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
}
Here are some example prompts you can use with Claude:
Configure AI filtering:
Configure the social listening AI filter to detect bug reports and feature requests with 80% confidence.
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".
Analyze trends:
Show me the trend of bug reports and feature requests from last month.
Get filtered mentions:
Show me all high-confidence bug reports from the past week.
Natural language queries:
What kind of feedback have we received about the new feature launch?
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
# Install dependencies
npm install
# Build the server
npm run build
# Run tests
npm test
src/
tests/
data
directory exists and is writableMIT License - see LICENSE file for details