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.
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
data
directory exists and is writableTo 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.
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.
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"
}
}
}
}
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.
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.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.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