Bob-lance
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"instagram-engagement": {
"args": [
"instagram-engagement-mcp"
],
"autoApprove": [],
"command": "npx",
"disabled": false,
"env": {
"INSTAGRAM_PASSWORD": "your_instagram_password",
"INSTAGRAM_USERNAME": "your_instagram_username"
}
}
}
}
服务介绍
Instagram Engagement MCP
一个MCP服务器,提供工具用于分析Instagram互动指标、提取人口统计数据,并从Instagram帖子和账户中识别潜在客户。
功能
- 分析帖子评论:从Instagram帖子的评论中提取情感、主题和潜在客户
- 比较账户:比较不同Instagram账户之间的互动指标
- 提取人口统计数据:从与帖子或账户互动的用户中获取人口统计洞察
- 识别潜在客户:根据互动模式和标准找到潜在客户
- 生成互动报告:创建包含可操作洞察的综合报告
安装
通过Smithery安装
要通过Smithery自动为Claude Desktop安装Instagram互动分析:
bash
npx -y @smithery/cli install @Bob-lance/instagram-engagement-mcp --client claude
选项1:从npm安装
bash
npm install -g instagram-engagement-mcp
选项2:从GitHub克隆
bash
git clone https://github.com/Bob-lance/instagram-engagement-mcp.git
cd instagram-engagement-mcp
npm install
设置
-
将
.env.example文件复制到.env并添加您的Instagram凭据:
bash
cp .env.example .env -
编辑
.env文件,填入您的Instagram用户名和密码
从源代码构建
如果您克隆了仓库,请构建项目:
bash
npm run build
配置
将服务器添加到您的MCP设置文件中:
json
{
"mcpServers": {
"instagram-engagement": {
"command": "npx",
"args": ["instagram-engagement-mcp"],
"env": {
"INSTAGRAM_USERNAME": "your_instagram_username",
"INSTAGRAM_PASSWORD": "your_instagram_password"
},
"disabled": false,
"autoApprove": []
}
}
}
如果您是从GitHub克隆而不是从npm安装,请使用以下配置:
json
{
"mcpServers": {
"instagram-engagement": {
"command": "node",
"args": ["/path/to/instagram-engagement-mcp/build/index.js"],
"env": {
"INSTAGRAM_USERNAME": "your_instagram_username",
"INSTAGRAM_PASSWORD": "your_instagram_password"
},
"disabled": false,
"autoApprove": []
}
}
}
可用工具
analyze_post_comments
分析Instagram帖子的评论以识别情感、主题和潜在客户。
参数:
postUrl(必需):要分析的Instagram帖子的URLmaxComments(可选):要分析的最大评论数量(默认值:100)
compare_accounts
比较不同Instagram账户之间的互动指标。
参数:
accounts(必需):要比较的Instagram账户列表metrics(可选):要比较的指标(默认值:全部)
extract_demographics
从与帖子或账户互动的用户中提取人口统计洞察。
参数:
accountOrPostUrl(必需):要分析的Instagram账户或帖子URLsampleSize(可选):用于人口统计分析的样本用户数量(默认值:50)
identify_leads
根据互动模式识别潜在客户。
参数:
accountOrPostUrl(必需):要分析的Instagram账户或帖子URLcriteria(可选):识别潜在客户的条件
generate_engagement_report
为Instagram账户生成综合互动报告。
参数:
account(必需):Instagram账户startDate(可选):报告的开始日期(格式:YYYY-MM-DD)-endDate(可选): 报告的结束日期 (YYYY-MM-DD)
注意事项
- 该服务器使用了 Instagram 私有 API,这并未得到 Instagram 的官方支持
- 请负责任地使用,并遵守 Instagram 的服务条款
- 请注意速率限制,以避免被 Instagram 封禁