mcp-instagram
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_HOST | No | http 模式绑定地址 | |
| MCP_PORT | No | http 模式端口,默认 18080 | |
| AUTH_TOKEN | No | http 模式的 Bearer 令牌。不设 = 不鉴权 | |
| IG_USER_ID | Yes | 专业账号的 user id(不是用户名) | |
| IG_API_BASE | No | 默认 https://graph.instagram.com(测试可指向本地假服务器) | https://graph.instagram.com |
| IG_DATA_DIR | No | 令牌缓存目录。容器里挂卷,续期结果才能跨重启保留 | |
| IG_APP_SECRET | No | 仅「短期换长期」时需要;续期用不到 | |
| MCP_TRANSPORT | No | http 启用 streamable-http | |
| IG_ACCESS_TOKEN | Yes | 长期访问令牌 |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| publish_postA | 发布图文到 Instagram 专业账号。1 张图 → 单图帖,2–10 张 → 轮播(顺序即展示顺序,所有图按第一张的宽高比裁剪)。图片必须是 https 公网地址、JPEG 格式、≤8MB、宽 320–1440px、宽高比 4:5~1.91:1 —— Instagram 由服务端主动拉取媒体,本地路径与内网地址取不到。caption ≤2200 字符、话题标签 ≤30 个,且不渲染 Markdown。 |
| get_publishing_limitA | Instagram 的发布配额:100 条 / 24 小时滚动窗口(轮播算 1 条)。发布失败疑似限流时先查这个。 |
| check_tokenA | 查看访问令牌剩余有效天数。Instagram 长期令牌 60 天过期,本服务在剩余 7 天内自动续期;若长期不发布导致令牌彻底过期,则只能重新授权。 |
| refresh_tokenA | 立即续期访问令牌(有效期重置为 60 天)。通常不必手动调用 —— 快过期时会自动续。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 4 tools
每个工具功能边界清晰:publish_post 负责发布内容,get_publishing_limit 查询配额,check_token 检查令牌有效期,refresh_token 刷新令牌。不存在职责重叠,易于选择。
所有工具均采用一致的 verb_noun 命名模式(publish_post, get_publishing_limit, check_token, refresh_token),动词明确,风格统一。
4 个工具精准覆盖 Instagram 发布与令牌管理的核心需求,数量精简,没有冗余工具。
覆盖了发布、配额查询、令牌查看与刷新等关键操作,但缺少如获取账号信息、删除帖子等扩展功能,不过对于当前定位已足够完整。