This MCP server enables Claude and other MCP-compatible AI models to access TweetBinder by Audiense analytics data from Twitter/X directly. It provides Twitter analytics capabilities including hashtag analysis, engagement metrics, sentiment analysis, and report generation with various filtering options.
The simplest way to install mcp-tweetbinder for Claude Desktop is via Smithery:
npx -y @smithery/cli install @AudienseCo/mcp-tweetbinder --client claude
npm install
npm run build
export TWEETBINDER_API_TOKEN='your-bearer-token-here'
To configure Claude Desktop to use the MCP server:
Edit your Claude Desktop configuration file:
MacOS:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
Windows:
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"
}
}
}
Restart Claude Desktop
You can create new Twitter analytics reports with:
create-twitter-report
Parameters:
query
(string): Search query for Twitter data. Can include operators like AND, OR, hashtags, etc.limit
(number, optional): Maximum tweets to retrieve (up to 50,000)startDate
(number, optional): Start date as Unix timestampendDate
(number, optional): End date as Unix timestampreportType
(enum, optional): "7-day" or "historical". Default: "7-day"For just counting tweets, use:
create-twitter-count
Parameters:
query
(string): Search queryreportType
(enum, optional): "7-day" or "historical". Default: "7-day"List all your reports:
list-reports
Parameters:
order
(string, optional): Sort parameter. Example: 'createdAt|-1' for newest firstCheck a report's status:
get-report-status
Parameters:
reportId
(string): ID of the report to checkGet report statistics:
get-report-stats
Parameters:
reportId
(string): ID of the report to retrieve statistics forGet report content (tweets or users):
get-report-content
Parameters:
reportId
(string): Report IDcontentType
(enum): 'tweets' or 'users'page
(number, optional): Page number for paginationperPage
(number, optional): Number of items per pagesortBy
(string, optional): Field to sort bysortDirection
(enum, optional): '1' for ascending, '-1' for descendingfilter
(string, optional): JSON string with filter criteriaCheck your account balance and quota:
get-account-balances
#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"tail -f ~/Library/Logs/Claude/mcp*.log
MacOS/Linux:
tail -n 20 -f ~/Library/Logs/Claude/mcp*.log
Windows:
Get-Content -Path "$env:AppData\Claude\Logs\mcp*.log" -Wait -Tail 20
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 > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
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 explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.