Tweet Binder
Run the TweetBinder agent and tools securely in the cloud using Meshagent Rooms.
Environment Variables Needed:
TWEETBINDER_API_TOKEN
– Your TweetBinder API bearer token.
Steps:
-
Install Meshagent CLI:
-
Sign up and Authenticate with Meshagent:
- Follow steps at Meshagent CLI Getting Started
-
Start MCP TweetBinder as a Meshagent Service Room:
- This command will launch a Meshagent room hosting the MCP TweetBinder server.
- Replace
your-bearer-token-here
with your TweetBinder API token. - Rooms will close automatically if they go inactive.
-
Join and Use the TweetBinder Tools with an Agent (Chatbot) in the Room:
- Starts a chatbot linked to the TweetBinder toolkit within the room.
- You may use multiple toolkits in the same room for richer interactions.
- The CLI output will provide a link to the room for web or API-based interaction with the agent and tools.
Tools Available
The following tools are available through the MCP TweetBinder server when used with Meshagent Rooms:
Tool | Short Description |
---|---|
create-twitter-count | Creates a new report that counts tweets matching a search query. |
create-twitter-report | Creates a new report that analyzes Twitter/X data based on a search query. |
get-account-balances | Retrieves information about your account’s credit balance, usage, and remaining quota. |
get-report-content | Retrieves the content (tweets or users) of a TweetBinder report. |
get-report-stats | Retrieves comprehensive statistics and analytics for a TweetBinder report. |
get-report-status | Checks the current status of a TweetBinder report. |
list-reports | Retrieves a list of all your TweetBinder reports. |
Tool Details
create-twitter-count
Creates a new report that counts tweets matching a search query. Returns raw JSON response.
Parameter | Type | Description |
---|---|---|
query | string | The search query for Twitter data. Can include operators like AND, OR, hashtags, mentions, etc. |
reportType | string, optional | Type of report to create: ‘7-day’ for last week or ‘historical’ for all time. |
create-twitter-report
Creates a new report that analyzes Twitter/X data based on a search query. The report provides statistics and tweet data. Returns raw JSON response.
Parameter | Type | Description |
---|---|---|
query | string | The search query for Twitter data. Can include operators like AND, OR, hashtags, mentions, etc. |
endDate | number, optional | End date as Unix timestamp (seconds since epoch). |
limit | number, optional | Maximum number of tweets to retrieve (up to 50,000). |
reportType | string, optional | Type of report to create: ‘7-day’ for last week or ‘historical’ for all time. |
startDate | number, optional | Start date as Unix timestamp (seconds since epoch). |
get-account-balances
Retrieves information about your account’s credit balance, usage, and remaining quota. Returns raw JSON response.
get-report-content
Retrieves the content (tweets or users) of a TweetBinder report. The report must be in ‘Generated’ status. Returns raw JSON response.
Parameter | Type | Description |
---|---|---|
contentType | string | The type of content to retrieve: ‘tweets’ for tweet IDs or ‘users’ for user IDs. |
reportId | string | The ID of the report to retrieve content for. |
filter | string, optional | JSON string with filter criteria. Example: {"counts.favorites":{"$gt":10}} |
page | number, optional | Page number for pagination. Starts at 1. |
perPage | number, optional | Number of items per page (default varies by endpoint). |
sortBy | string, optional | Field to sort by (e.g., ‘createdAt’, ‘counts.favorites’). |
sortDirection | string, optional | Sort direction: ‘1’ for ascending, ‘-1’ for descending. |
get-report-stats
Retrieves comprehensive statistics and analytics for a TweetBinder report. The report must be in ‘Generated’ status to access statistics. Returns raw JSON response.
Parameter | Type | Description |
---|---|---|
reportId | string | The ID of the report to retrieve statistics for. |
get-report-status
Checks the current status of a TweetBinder report. Returns raw JSON response.
Parameter | Type | Description |
---|---|---|
reportId | string | The ID of the report to check. |
list-reports
Retrieves a list of all your TweetBinder reports. Reports can be sorted by different fields. Returns raw JSON response.
Parameter | Type | Description | |||
---|---|---|---|---|---|
order | string, optional | Optional sorting parameter in the format ‘field | direction’. Example: ‘createdAt | -1’ for newest first, ‘createdAt | 1’ for oldest first. |
Meshagent Links
- Meshagent Website: https://www.meshagent.com/
- Getting Started Guide: https://docs.meshagent.com/room_api/get_started
- Room API Overview: https://docs.meshagent.com/room_api/overview
- Meshagent MCP Tool Docker Image: https://hub.docker.com/r/meshagent/mcp-tweetbinder