MCP
InstagramMCP服务器
通过照片、故事、短视频和直接消息,Instagram 每月吸引约 30 亿用户,是品牌叙事、创作者合作、产品发现和视觉商务的重要平台。
MCP 版本: 1.0.0 9 MCP工具 身份验证
基本网址
https://mcp.pressmonitor.com/mcp 身份验证
MCP 调用也使用 Bearer 令牌通过 JSON-RPC 2.0 请求。
Authorization: Bearer YOUR_TOKEN followers
粉丝
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| username_or_id_or_url | string | 是 | 用户名、ID 或 URL |
| 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": {
"username_or_id_or_url": "VALUE"
}
},
"id": 1
}' following
关注中
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| username_or_id_or_url | string | 是 | 用户名、ID 或 URL |
| 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": "following",
"arguments": {
"username_or_id_or_url": "VALUE"
}
},
"id": 1
}' hashtag_posts
标签帖子
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| hashtag | 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": "hashtag_posts",
"arguments": {
"hashtag": "VALUE"
}
},
"id": 1
}' info
信息
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| username_or_id_or_url | string | 是 | 用户名、ID 或 URL |
| cursor | integer | 不 | 下一页的分页游标 |
| include_about | string | 不 | 包含关于 |
| url_embed_safe | string | 不 | URL 嵌入安全 |
代码示例
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": "info",
"arguments": {
"username_or_id_or_url": "VALUE"
}
},
"id": 1
}' post_info
帖子信息
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| url_or_shortcode | string | 是 | URL 或短代码 |
| cursor | integer | 不 | 下一页的分页游标 |
| url_embed_safe | string | 不 | URL 嵌入安全 |
代码示例
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": "post_info",
"arguments": {
"url_or_shortcode": "VALUE"
}
},
"id": 1
}' posts
帖子
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| username_or_id_or_url | string | 是 | 用户名、ID 或 URL |
| 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": "posts",
"arguments": {
"username_or_id_or_url": "VALUE"
}
},
"id": 1
}' search_posts
搜索帖子
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| search_query | string | 是 | 搜索查询 |
| 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": "search_posts",
"arguments": {
"search_query": "VALUE"
}
},
"id": 1
}' search_users
搜索用户
参数
| 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|
| search_query | string | 是 | 搜索查询 |
| 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": "search_users",
"arguments": {
"search_query": "VALUE"
}
},
"id": 1
}'
comments
评论
参数
stringintegerinteger代码示例