Audiense/mcp-tweetbinder
Built by Metorial, the integration platform for agentic AI.
Audiense/mcp-tweetbinder
Server Summary
Analyze hashtags
Analyze users
Analyze conversations
Generate engagement metrics
Perform sentiment analysis
Create custom Twitter reports
Check report generation status
Retrieve report statistics
Get account balance and quota information
Count matching tweets
This is a Model Context Protocol (MCP) server for the TweetBinder by Audiense API, allowing Claude and other MCP-compatible AI models to access TweetBinder by Audiense analytics data.
To install mcp-tweetbinder for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @AudienseCo/mcp-tweetbinder --client claude
npm install
npm run build
You need a valid TweetBinder API Bearer Token to use this service. Set it in your environment:
export TWEETBINDER_API_TOKEN='your-bearer-token-here'
Edit your Claude Desktop configuration file:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
code %AppData%\Claude\claude_desktop_config.json
Add this configuration:
"mcpServers": {
"tweetbinder": {
"command": "node",
"args": [
"/absolute/path/to/build/index.js"
],
"env": {
"TWEETBINDER_API_TOKEN": "your-bearer-token-here"
}
}
}
create-twitter-report
Creates a new report that analyzes Twitter/X data based on a search query.
Parameters:
query
(string): The search query for Twitter data. Can include operators like AND, OR, hashtags, mentions, etc.limit
(number, optional): Maximum number of tweets to retrieve (up to 50,000).startDate
(number, optional): Start date as Unix timestamp (seconds since epoch).endDate
(number, optional): End date as Unix timestamp (seconds since epoch).reportType
(enum, optional): Type of report to create: "7-day" for last week or "historical" for all time. Default: "7-day".Response:
create-twitter-count
Creates a new report that counts tweets matching a search query.
Parameters:
query
(string): The search query for Twitter data. Can include operators like AND, OR, hashtags, mentions, etc.reportType
(enum, optional): Type of report to create: "7-day" for last week or "historical" for all time. Default: "7-day".Response:
status
: The status of the report creationresourceId
: The ID of the created reporterror
/message
: Any error or status messageslist-reports
Retrieves a list of all your TweetBinder reports with sorting capabilities.
Parameters:
order
(string, optional): Sorting parameter in the format 'field|direction'. Example: 'createdAt|-1' for newest first, 'createdAt|1' for oldest first.Response:
id
: Report IDname
: Report namestatus
: Current status (Generated, Waiting, etc.)createdAt
: Creation timestampupdatedAt
: Last update timestamptype
: Report typesource
: Report sourcequery
: Original search queryget-report-content
Retrieves the actual tweets or users from a generated report with advanced filtering and pagination.
Parameters:
reportId
(string): The ID of the report to retrieve content for.contentType
(enum): The type of content to retrieve: 'tweets' for tweet data or 'users' for user data.page
(number, optional): Page number for pagination. Starts at 1.perPage
(number, optional): Number of items per page.sortBy
(string, optional): Field to sort by (e.g., 'createdAt', 'counts.favorites').sortDirection
(enum, optional): Sort direction: '1' for ascending, '-1' for descending.filter
(string, optional): JSON string with filter criteria. Example: '{"counts.favorites":{"$gt":10}}'Response:
items
: Array of tweet or user objectspagination
: Information about total items and pagesWhen requesting tweets, detailed information is returned, including:
When requesting users, information includes:
Note: Report must be in 'Generated' status to access content. Use the get-report-status
tool to check if a report is ready.
Query Syntax Examples:
#apple
: Tweets containing the hashtag #appleapple lang:en
: English tweets containing "apple"(#apple OR #iphone) -#android
: Tweets with #apple or #iphone but not #android@apple
: Tweets mentioning @applefrom:apple
: Tweets posted by user "apple"Note: After creating the count report, use the get-report-status
tool to check when it's ready, then use get-report-stats
to get the actual count.
get-report-status
Checks the current status of a TweetBinder report.
Parameters:
reportId
(string): The ID of the report to check.Response:
Note: You must first create a report using the create-twitter-report
or create-twitter-count
tool to get a report ID.
get-report-stats
Retrieves comprehensive statistics and analytics for a TweetBinder report.
Parameters:
reportId
(string): The ID of the report to retrieve statistics for.Response:
Note: The report must have "Generated" status before statistics can be retrieved. Use the get-report-status
tool to check if a report is ready.
get-account-balances
Retrieves information about your account's credit balance, usage, and remaining quota.
Parameters:
Returns:
total
: Total credits availableused
: Credits usedavailable
: Credits currently availablediscount
: Any applicable discountremainingReports
: Number of reports remainingquota
: Quota information including:
startedAt
: Quota period start datefinishedAt
: Quota period end dateremaining
: Remaining quotaused
: Used quotatotal
: Total quotatail -f ~/Library/Logs/Claude/mcp*.log
To check server logs:
tail -n 20 -f ~/Library/Logs/Claude/mcp*.log
Get-Content -Path "$env:AppData\Claude\Logs\mcp*.log" -Wait -Tail 20
This project is licensed under the Apache 2.0 License. See the LICENSE file for more details.