MCP
X MonitorMCP服务器
The AI-powered X provides 360° Global Media Data & Intelligence on X (Twitter) users, community managers, journalists, brands, and real-time communication teams.
MCP 版本: 1.0.0 7 MCP工具 身份验证
基本网址
https://pressmonitor.com/mcp 身份验证
MCP 调用在每次 JSON-RPC 2.0 请求中都需要 x-api-key 和 x-subscription-id 标头。
x-api-key: YOUR_API_KEY
x-subscription-id: YOUR_SUB_ID twitter_user
Get a simplified user profile by screen name
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| username | string | 是 | Username |
代码示例
curl -X POST \
"https://pressmonitor.com/mcp" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-subscription-id: YOUR_SUB_ID" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "twitter_user",
"arguments": {
"username": "VALUE"
}
},
"id": 1
}' twitter_tweets
Get simplified tweets by screen name
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| username | string | 是 | Username |
| count | integer | 不 | Number of results |
代码示例
curl -X POST \
"https://pressmonitor.com/mcp" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-subscription-id: YOUR_SUB_ID" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "twitter_tweets",
"arguments": {
"username": "VALUE",
"count": 0
}
},
"id": 1
}' twitter_search
Search for simplified tweets
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query | string | 是 | Search query |
| count | integer | 不 | Number of results |
代码示例
curl -X POST \
"https://pressmonitor.com/mcp" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-subscription-id: YOUR_SUB_ID" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "twitter_search",
"arguments": {
"query": "VALUE",
"count": 0
}
},
"id": 1
}' twitter_tweet
Get a simplified tweet by its ID
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| pid | string | 是 | Tweet ID |
代码示例
curl -X POST \
"https://pressmonitor.com/mcp" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-subscription-id: YOUR_SUB_ID" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "twitter_tweet",
"arguments": {
"pid": "VALUE"
}
},
"id": 1
}' twitter_followers
Get simplified followers by numeric user ID
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user | string | 是 | Numeric user ID |
| count | integer | 不 | Number of results |
代码示例
curl -X POST \
"https://pressmonitor.com/mcp" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-subscription-id: YOUR_SUB_ID" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "twitter_followers",
"arguments": {
"user": "VALUE",
"count": 0
}
},
"id": 1
}' twitter_followers_page
Get a page of followers with the pagination cursor.
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user | string | 是 | Numeric user ID |
| count | integer | 不 | Number of results |
| cursor | string | 不 | Pagination cursor |
代码示例
curl -X POST \
"https://pressmonitor.com/mcp" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-subscription-id: YOUR_SUB_ID" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "twitter_followers_page",
"arguments": {
"user": "VALUE",
"count": 0,
"cursor": "VALUE"
}
},
"id": 1
}' twitter_followings_page
Get a page of accounts a user follows (following) with the pagination cursor.
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user | string | 是 | Numeric user ID |
| count | integer | 不 | Number of results |
| cursor | string | 不 | Pagination cursor |
代码示例
curl -X POST \
"https://pressmonitor.com/mcp" \
-H "x-api-key: YOUR_API_KEY" \
-H "x-subscription-id: YOUR_SUB_ID" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "twitter_followings_page",
"arguments": {
"user": "VALUE",
"count": 0,
"cursor": "VALUE"
}
},
"id": 1
}' 