Skip to main content
Glama
zouwei

mcp-instagram

by zouwei

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_HOSTNohttp 模式绑定地址
MCP_PORTNohttp 模式端口,默认 18080
AUTH_TOKENNohttp 模式的 Bearer 令牌。不设 = 不鉴权
IG_USER_IDYes专业账号的 user id(不是用户名)
IG_API_BASENo默认 https://graph.instagram.com(测试可指向本地假服务器)https://graph.instagram.com
IG_DATA_DIRNo令牌缓存目录。容器里挂卷,续期结果才能跨重启保留
IG_APP_SECRETNo仅「短期换长期」时需要;续期用不到
MCP_TRANSPORTNohttp 启用 streamable-http
IG_ACCESS_TOKENYes长期访问令牌

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

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/zouwei/mcp-instagram'

If you have feedback or need assistance with the MCP directory API, please join our Discord server