buffer-mcp
MCP server for Buffer social media scheduling via the GraphQL API, enabling post creation, queue management, engagement metrics, and media uploads.
README
buffer-mcp
MCP server for Buffer social media scheduling via the GraphQL API. Works with Claude Desktop, Claude Cowork, and any MCP-compatible AI tool.
The legacy REST API (api.bufferapp.com/1/) is deprecated. This server uses Buffer's current GraphQL API exclusively.
Setup
1. Install dependencies
cd buffer-mcp
bash install.sh
Or manually:
pip install mcp httpx pydantic
2. Get your Buffer credentials
- Access token: Buffer → Settings → API (or Settings → Beta)
- Org ID: Run
buffer_get_accountafter connecting — use the org ID fromaccount.organizations, NOTaccount.id(they differ and using the wrong one causes silent failures) - Channel IDs: Run
buffer_list_channelsto get your Twitter/LinkedIn channel IDs
3. Configure environment variables
Copy .env.example to .env and fill in your values:
cp .env.example .env
4. Add to Claude Desktop / Cowork
Add to your MCP config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"buffer": {
"command": "python3",
"args": ["/absolute/path/to/buffer-mcp/server.py"],
"env": {
"BUFFER_ACCESS_TOKEN": "your-token-here",
"BUFFER_ORG_ID": "your-org-id-here",
"BUFFER_CHANNEL_TWITTER": "your-twitter-channel-id",
"BUFFER_CHANNEL_LINKEDIN": "your-linkedin-channel-id"
}
}
}
}
Tools
| Tool | Description |
|---|---|
buffer_list_channels |
List connected social channels with IDs |
buffer_get_account |
Get account info and find your org ID |
buffer_create_post |
Schedule a single post (with images, videos, threads, LinkedIn metadata) |
buffer_batch_create_posts |
Schedule up to 25 posts in one call |
buffer_update_post |
Edit a scheduled post (atomic delete + recreate) |
buffer_delete_post |
Remove a post from the queue |
buffer_find_post_by_schedule |
Look up the canonical ID for a post by its scheduled time |
buffer_list_posts |
List scheduled posts in your queue |
buffer_list_published_posts |
List posts that have already been sent |
buffer_get_engagement |
Pull engagement metrics for a published post (Twitter wired; LinkedIn requires Marketing API) |
buffer_get_reply_links |
Fetch recent tweet URLs for reply/thread follow-up |
buffer_upload_image |
Upload a local image or video to Cloudflare R2 and return a Buffer-safe URL |
buffer_health_check |
Verify token validity and API connectivity |
Environment Variables
| Variable | Required | Description |
|---|---|---|
BUFFER_ACCESS_TOKEN |
Yes | Your Buffer API access token |
BUFFER_ORG_ID |
Yes | Your Buffer organization ID (from buffer_get_account) |
BUFFER_CHANNEL_TWITTER |
No | Twitter channel ID — enables "twitter" shorthand |
BUFFER_CHANNEL_LINKEDIN |
No | LinkedIn channel ID — enables "linkedin" shorthand |
BUFFER_TWITTER_USERNAME |
No | Your Twitter username for buffer_get_reply_links |
TWITTER_BEARER_TOKEN |
No | Twitter API v2 bearer token (for reply links + engagement) |
CLOUDFLARE_ACCOUNT_ID |
No | Cloudflare account ID (for buffer_upload_image) |
CLOUDFLARE_R2_API_TOKEN |
No | R2 API token with Object:Write permission |
CLOUDFLARE_R2_BUCKET_NAME |
No | R2 bucket name (default: buffer-media) |
CLOUDFLARE_R2_PUBLIC_BASE_URL |
No | Public CDN URL for your R2 bucket |
Key Notes
Media hosting
Buffer's media fetcher rejects many free CDNs (catbox, imgur return 0-byte or 429 for Buffer's node-fetch UA). Use Cloudflare R2, AWS S3, or another persistent CDN. The buffer_upload_image tool handles R2 uploads automatically when configured.
Twitter threads
To post a thread, use thread_replies in buffer_create_post. Twitter suppresses posts with links in the body — put your CTA URL in the first reply, not the parent tweet.
Post ID rotation (known Buffer bug)
createPost can return a transient ID that differs from the ID returned by buffer_list_posts for the same post. Always use buffer_find_post_by_schedule to get the canonical (deletable) ID before calling buffer_delete_post or buffer_update_post.
Org ID vs Account ID
Buffer exposes both account.id (account-level) and account.organizations[].id (org-level). Using the account ID as the org ID causes silent "Organization not found" errors. Run buffer_get_account and copy the org ID from the organizations list.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。