MCP
XMCP服务器
X每月通过短篇文章、直播评论、视频和突发新闻讨论覆盖大约6亿用户,对于实时通信、媒体可见性和声誉响应至关重要。
MCP 版本: 1.0.0 38 MCP工具 身份验证
基本网址
https://mcp.pressmonitor.com/mcp 身份验证
MCP 调用也使用 Bearer 令牌通过 JSON-RPC 2.0 请求。
Authorization: Bearer YOUR_TOKEN autocomplete
自动完成
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| value | string | 不 | 值 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "autocomplete",
"arguments": {}
},
"id": 1
}' communityTopics
社区话题
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "communityTopics",
"arguments": {}
},
"id": 1
}' CommunityTweets
社区推文
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| communityId | string | 不 | 社区 ID |
| count | integer | 不 | 返回结果数量 |
| cursor | integer | 不 | 下一页的分页游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "CommunityTweets",
"arguments": {}
},
"id": 1
}' fetchPopularCommunities
获取热门社区
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| topicId | string | 不 | 话题 ID |
| count | integer | 不 | 返回结果数量 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "fetchPopularCommunities",
"arguments": {}
},
"id": 1
}' followers
关注者
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user | string | 不 | 数字用户 ID(非用户名)。使用 'user' 端点通过用户名查询 ID |
| count | integer | 不 | 返回结果数量 |
| cursor | integer | 不 | 下一页的分页游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "followers",
"arguments": {}
},
"id": 1
}' followersIDs
关注者ID
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| username | string | 不 | 用户名(屏幕名,无 @ 符号,例如 'elonmusk') |
| count | integer | 不 | 返回结果数量 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "followersIDs",
"arguments": {}
},
"id": 1
}' followings
关注中
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user | string | 不 | 数字用户 ID(非用户名)。使用 'user' 端点通过用户名查询 ID |
| count | integer | 不 | 返回结果数量 |
| cursor | integer | 不 | 下一页的分页游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "followings",
"arguments": {}
},
"id": 1
}' followingsIDs
关注中ID
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| username | string | 不 | 用户名(屏幕名,无 @ 符号,例如 'elonmusk') |
| count | integer | 不 | 返回结果数量 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "followingsIDs",
"arguments": {}
},
"id": 1
}' getUsers
获取用户
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| users | string | 不 | 用户 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "getUsers",
"arguments": {}
},
"id": 1
}' groupTweets
群组推文
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| communityId | string | 不 | 社区 ID |
| rankingMode | string | 不 | 排名模式 |
| searchType | string | 不 | 搜索类型 |
| count | integer | 不 | 返回结果数量 |
| cursor | integer | 不 | 下一页的分页游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "groupTweets",
"arguments": {}
},
"id": 1
}' highlights
重点内容
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user | string | 不 | 数字用户 ID(非用户名)。使用 'user' 端点通过用户名查询 ID |
| count | integer | 不 | 返回结果数量 |
| cursor | integer | 不 | 下一页的分页游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "highlights",
"arguments": {}
},
"id": 1
}' jobsDetails
职位详情
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| jobId | string | 不 | 职位 ID |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "jobsDetails",
"arguments": {}
},
"id": 1
}' jobsLocationsSuggest
职位地点建议
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query | string | 不 | 搜索查询 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "jobsLocationsSuggest",
"arguments": {}
},
"id": 1
}' jobsSearch
职位搜索
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| employment_type | string | 不 | 就业类型 |
| job_location_id | string | 不 | 职位地点 ID |
| job_location_type | string | 不 | 职位地点类型 |
| keyword | string | 不 | 关键词 |
| seniority_level | string | 不 | 资历级别 |
| count | integer | 不 | 返回结果数量 |
| cursor | integer | 不 | 下一页的分页游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "jobsSearch",
"arguments": {}
},
"id": 1
}' likes
点赞
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| pid | string | 不 | Pid |
| count | integer | 不 | 返回结果数量 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "likes",
"arguments": {}
},
"id": 1
}' listDetails
列表详情
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| listId | string | 不 | 列表 ID |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "listDetails",
"arguments": {}
},
"id": 1
}' listTimeline
列表时间线
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| listId | string | 不 | 列表 ID |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "listTimeline",
"arguments": {}
},
"id": 1
}' listTweets
列表推文
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| listId | string | 不 | 列表 ID |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "listTweets",
"arguments": {}
},
"id": 1
}' orgAffiliates
组织关联
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user | string | 不 | 数字用户 ID(非用户名)。使用 'user' 端点通过用户名查询 ID |
| count | integer | 不 | 返回结果数量 |
| cursor | integer | 不 | 下一页的分页游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "orgAffiliates",
"arguments": {}
},
"id": 1
}' quotes
引用推文
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| pid | string | 不 | Pid |
| count | integer | 不 | 返回结果数量 |
| cursor | integer | 不 | 下一页的分页游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "quotes",
"arguments": {}
},
"id": 1
}' retweets
转推
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| pid | string | 不 | Pid |
| count | integer | 不 | 返回结果数量 |
| cursor | integer | 不 | 下一页的分页游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "retweets",
"arguments": {}
},
"id": 1
}' search
搜索
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query | string | 不 | 搜索查询 |
| type | string | 不 | 类型 |
| count | integer | 不 | 返回结果数量 |
| cursor | string | 不 | 下一页的分页游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "search",
"arguments": {}
},
"id": 1
}' searchCommunity
搜索社区
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query | string | 不 | 搜索查询 |
| count | integer | 不 | 返回结果数量 |
| cursor | integer | 不 | 下一页的分页游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "searchCommunity",
"arguments": {}
},
"id": 1
}' searchLists
搜索列表
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query | string | 不 | 搜索查询 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "searchLists",
"arguments": {}
},
"id": 1
}' searchold
旧搜索
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| query | string | 不 | 搜索查询 |
| type | string | 不 | 类型 |
| count | integer | 不 | 返回结果数量 |
| cursor | integer | 不 | 下一页的分页游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "searchold",
"arguments": {}
},
"id": 1
}' spaces
语音空间
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| id | string | 不 | ID |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "spaces",
"arguments": {}
},
"id": 1
}' trends
趋势
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| woeid | string | 不 | Woeid |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "trends",
"arguments": {}
},
"id": 1
}' trendsLocations
趋势地点
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "trendsLocations",
"arguments": {}
},
"id": 1
}' tweet
推文
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| pid | string | 不 | Pid |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "tweet",
"arguments": {}
},
"id": 1
}' tweetByIds
通过 ID 获取推文
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| tweetIDs | string | 不 | 推文 ID 列表 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "tweetByIds",
"arguments": {}
},
"id": 1
}' user
通过用户名查询用户档案。返回用户详情,包括数字用户 ID(rest_id)
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| username | string | 不 | 用户名(屏幕名,无 @ 符号,例如 'elonmusk') |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "user",
"arguments": {}
},
"id": 1
}' userLikes
用户点赞
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user | string | 不 | 数字用户 ID(非用户名)。使用 'user' 端点通过用户名查询 ID |
| count | integer | 不 | 返回结果数量 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "userLikes",
"arguments": {}
},
"id": 1
}' userMedia
用户媒体
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user | string | 不 | 数字用户 ID(非用户名)。使用 'user' 端点通过用户名查询 ID |
| count | integer | 不 | 返回结果数量 |
| cursor | integer | 不 | 下一页的分页游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "userMedia",
"arguments": {}
},
"id": 1
}' userReplies
用户回复
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user | string | 不 | 数字用户 ID(非用户名)。使用 'user' 端点通过用户名查询 ID |
| count | integer | 不 | 返回结果数量 |
| cursor | integer | 不 | 下一页的分页游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "userReplies",
"arguments": {}
},
"id": 1
}' userRepliesV2
用户回复 V2
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user | string | 不 | 数字用户 ID(非用户名)。使用 'user' 端点通过用户名查询 ID |
| count | integer | 不 | 返回结果数量 |
| cursor | integer | 不 | 下一页的分页游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "userRepliesV2",
"arguments": {}
},
"id": 1
}' userTweets
通过数字用户 ID 获取用户推文。要通过用户名获取推文,需先使用 'user' 端点查询用户 ID
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user | string | 不 | 数字用户 ID(非用户名)。使用 'user' 端点通过用户名查询 ID |
| count | integer | 不 | 返回结果数量 |
| cursor | integer | 不 | 下一页的分页游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "userTweets",
"arguments": {}
},
"id": 1
}' verifiedFollowers
已验证关注者
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| user | string | 不 | 数字用户 ID(非用户名)。使用 'user' 端点通过用户名查询 ID |
| count | integer | 不 | 返回结果数量 |
| cursor | integer | 不 | 下一页的分页游标 |
代码示例
curl -X POST "https://mcp.pressmonitor.com/mcp" -H "Authorization: Bearer YOUR_API_KEY" -H "x-subscription-id: YOUR_SUB_ID" -H "Content-Type: application/json" -d '{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "verifiedFollowers",
"arguments": {}
},
"id": 1
}'
comments
评论
参数
stringstringintegerinteger代码示例