# X (Twitter) Public Intel - MCP Server (`seibs.co/mcp-x-twitter-intel`) Actor

MCP tool server giving AI agents logged-out X/Twitter profile intel, post lookups, and engagement-velocity signals as structured tools. No login, no API keys. Four tools: get\_profile\_intel, get\_recent\_posts, get\_posts, compare\_profiles. x402 (USDC on Base) and Skyfire agentic-payment ready.

- **URL**: https://apify.com/seibs.co/mcp-x-twitter-intel.md
- **Developed by:** [Seibs.co](https://apify.com/seibs.co) (community)
- **Categories:** MCP servers, Social media, Marketing
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 mcp tool calls

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## X (Twitter) Public Intel - MCP Server

> Model Context Protocol (MCP) server wrapper for [x-twitter-intel](https://apify.com/seibs.co/x-twitter-intel). Gives AI agents direct, pay-per-call access to logged-out X / Twitter profile intel, post lookups, and engagement-velocity signals - no login, no API key required, and token-less per-call payment over x402 / Skyfire.

### What it is

A thin MCP server that exposes the X public-intel engine as four typed tools an AI agent can call. Each tool runs the upstream `x-twitter-intel` actor against X's public, logged-out syndication surface and reshapes the result into small, deterministic JSON (no megabyte payloads). Built for social-monitoring copilots, competitive-intel agents, and brand-watch bots.

### Tools

| Tool | What it does |
|---|---|
| `get_profile_intel` | Slim public profile snapshot for one handle (followers, bio, cadence) plus its engagement-velocity signal and a momentum flag. |
| `get_recent_posts` | The most recent public posts for one handle, newest first, as slim post records with full profile-timeline metrics. |
| `get_posts` | Resolve 1-50 tweet ids or status URLs to slim post records (per-post surface exposes like_count + reply_count). |
| `compare_profiles` | Compare 2-5 handles, ranked by engagement-per-follower, with a one-line comparison summary naming the leader. |

### Run modes

- `list_tools` - emit the tool catalog (free, no charge) including the agentic-payment descriptor.
- `call_tool` - invoke one tool. Requires `tool` + `args`.
- `batch` - invoke up to 10 `{tool, args}` calls in one run.

```json
{
  "mode": "call_tool",
  "tool": "get_profile_intel",
  "args": { "handle": "nasa", "max_posts": 20 }
}
````

```json
{
  "mode": "call_tool",
  "tool": "compare_profiles",
  "args": { "handles": ["nasa", "spacex", "esa"] }
}
```

### Honest scope and limits

- **About 20 most recent posts per profile.** That is roughly what X's public, logged-out syndication surface renders. There is no public "load more" without a login, so this server does not pretend to firehose. `max_posts` is capped at 20. This is an intel tool, not a volume scraper.
- **Per-post surface is partial.** `get_posts` (tweet ids / status URLs) returns the metrics X's per-post surface exposes - `like_count` and `reply_count` - but not separate retweet/quote counts. Use `get_recent_posts` for full per-post metrics.
- **Private accounts are not readable.** Protected (private) accounts are not part of the public surface; they come back as an error, not data.
- **Rate limits happen.** The profile-timeline surface blocks bare datacenter IPs aggressively. The upstream actor handles retries and proxy rotation; a hard block becomes an error message, never a crashed run.

### Responsible use / data scope

This server reads only **logged-out, public X / Twitter data** - the same data X serves to anonymous visitors through its embeddable widgets. No accounts, no cookies, no session tokens, no paid X API, no paywall bypass. PII is minimized to what X already shows publicly (handle, display name, public bio, public counts). **This actor is not affiliated with, endorsed by, or sponsored by X Corp.** You are responsible for lawful use of the outputs. See the upstream actor's README for the full data-scope note.

### Agentic payments (x402 + Skyfire)

This server is **x402 (USDC on Base)** and **Skyfire** ready. When the operator enables Apify MCP monetization, an AI agent can pay per tool call with no pre-provisioned API token. The `list_tools` response includes a `payments` descriptor advertising the accepted rails and per-call price. Operators enable rails via environment variables:

| Env | Purpose |
|---|---|
| `X402_ENABLED` | `1` to advertise x402 acceptance |
| `X402_PAY_TO_ADDRESS` | receiving wallet (USDC on Base) |
| `X402_PRICE_USD` | per-call price advertised (default 0.005) |
| `SKYFIRE_ENABLED` | `1` to advertise Skyfire acceptance |
| `SKYFIRE_SELLER_ID` | Skyfire seller identity |

Calls through Apify always bill via standard PPE (`mcp_tool_call` $0.005 + upstream pass-through); x402/Skyfire are the token-less rails layered on top for direct agents.

### Pricing

Flat **$0.005 per MCP tool call**, plus the upstream `x-twitter-intel` PPE pass-through (`profile_record`, `post_record`, `engagement_velocity_signal`) billed to the same run. `list_tools` is free. A run that returns nothing costs nothing beyond the tool call you triggered.

### Use cases

- A brand-watch agent calls `get_profile_intel` on a competitor handle to read followers, cadence, and whether a post is taking off (momentum flag).
- A competitive-intel agent calls `compare_profiles` across a peer set to rank who gets the most engagement per follower.
- A research agent resolves a list of viral tweet URLs with `get_posts` to pull their text and like/reply counts.
- A monitoring copilot polls `get_recent_posts` to summarize what a handle has posted since the last check.

### Related Actors

- [x-twitter-intel](https://apify.com/seibs.co/x-twitter-intel) - the non-MCP actor with full input controls, brand-monitor schedule mode, follower/new-post deltas, and CSV/HTML artifacts.
- [reddit-topic-watcher](https://apify.com/seibs.co/reddit-topic-watcher) - watch a topic across Reddit the same way.

### Found this useful?

Leave a quick review: https://apify.com/seibs.co/mcp-x-twitter-intel#reviews

# Actor input Schema

## `mode` (type: `string`):

list\_tools = emit the MCP tool catalog (free). call\_tool = invoke one tool (requires 'tool' + 'args'). batch = invoke a list of {tool, args} calls (max 10 per run).

## `tool` (type: `string`):

Required when mode=call\_tool. One of: get\_profile\_intel, get\_recent\_posts, get\_posts, compare\_profiles.

## `args` (type: `object`):

Arguments for the selected tool. Examples: get\_profile\_intel {"handle": "nasa", "max\_posts": 20}. get\_recent\_posts {"handle": "openai", "include\_replies": false}. get\_posts {"post\_inputs": \["https://x.com/nasa/status/1234567890123456789"]}. compare\_profiles {"handles": \["nasa", "spacex"]}. max\_posts is capped at 20; post\_inputs takes 1-50; handles takes 2-5.

## `calls` (type: `array`):

Required when mode=batch. Each entry is an object with 'tool' and 'args'. Example: \[{"tool": "get\_profile\_intel", "args": {"handle": "nasa"}}, {"tool": "compare\_profiles", "args": {"handles": \["nasa", "spacex"]}}]. Max 10 calls per run.

## Actor input object example

```json
{
  "mode": "list_tools",
  "tool": "get_profile_intel",
  "args": {
    "handle": "nasa",
    "max_posts": 20
  },
  "calls": []
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "list_tools",
    "args": {
        "handle": "nasa",
        "max_posts": 20
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("seibs.co/mcp-x-twitter-intel").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "list_tools",
    "args": {
        "handle": "nasa",
        "max_posts": 20,
    },
}

# Run the Actor and wait for it to finish
run = client.actor("seibs.co/mcp-x-twitter-intel").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "list_tools",
  "args": {
    "handle": "nasa",
    "max_posts": 20
  }
}' |
apify call seibs.co/mcp-x-twitter-intel --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=seibs.co/mcp-x-twitter-intel",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "X (Twitter) Public Intel - MCP Server",
        "description": "MCP tool server giving AI agents logged-out X/Twitter profile intel, post lookups, and engagement-velocity signals as structured tools. No login, no API keys. Four tools: get_profile_intel, get_recent_posts, get_posts, compare_profiles. x402 (USDC on Base) and Skyfire agentic-payment ready.",
        "version": "0.1",
        "x-build-id": "MPedRfImYZVPPdQj5"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/seibs.co~mcp-x-twitter-intel/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-seibs.co-mcp-x-twitter-intel",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/seibs.co~mcp-x-twitter-intel/runs": {
            "post": {
                "operationId": "runs-sync-seibs.co-mcp-x-twitter-intel",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/seibs.co~mcp-x-twitter-intel/run-sync": {
            "post": {
                "operationId": "run-sync-seibs.co-mcp-x-twitter-intel",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "list_tools",
                            "call_tool",
                            "batch"
                        ],
                        "type": "string",
                        "description": "list_tools = emit the MCP tool catalog (free). call_tool = invoke one tool (requires 'tool' + 'args'). batch = invoke a list of {tool, args} calls (max 10 per run).",
                        "default": "list_tools"
                    },
                    "tool": {
                        "title": "Tool name",
                        "enum": [
                            "get_profile_intel",
                            "get_recent_posts",
                            "get_posts",
                            "compare_profiles"
                        ],
                        "type": "string",
                        "description": "Required when mode=call_tool. One of: get_profile_intel, get_recent_posts, get_posts, compare_profiles.",
                        "default": "get_profile_intel"
                    },
                    "args": {
                        "title": "Tool arguments (JSON object)",
                        "type": "object",
                        "description": "Arguments for the selected tool. Examples: get_profile_intel {\"handle\": \"nasa\", \"max_posts\": 20}. get_recent_posts {\"handle\": \"openai\", \"include_replies\": false}. get_posts {\"post_inputs\": [\"https://x.com/nasa/status/1234567890123456789\"]}. compare_profiles {\"handles\": [\"nasa\", \"spacex\"]}. max_posts is capped at 20; post_inputs takes 1-50; handles takes 2-5."
                    },
                    "calls": {
                        "title": "Batch calls",
                        "maxItems": 10,
                        "type": "array",
                        "description": "Required when mode=batch. Each entry is an object with 'tool' and 'args'. Example: [{\"tool\": \"get_profile_intel\", \"args\": {\"handle\": \"nasa\"}}, {\"tool\": \"compare_profiles\", \"args\": {\"handles\": [\"nasa\", \"spacex\"]}}]. Max 10 calls per run.",
                        "default": []
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
