mcp-gate
Connects to multiple Buffer accounts (one API key per account, addressed by an account label) to manage social media posts. Provides tools for listing connected accounts and their organizations, listing channels (Instagram, Threads, etc.) with their IDs, listing and filtering posts by channel or status, and creating, editing, and deleting posts — including queued, immediate, scheduled, and draft posts, with images/videos and thread support.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-gate
Satu gerbang MCP untuk banyak akun. Satu konektor di Claude bisa menjangkau beberapa akun Buffer sekaligus (dan nantinya layanan lain), tanpa gonta-ganti login. Berjalan gratis di Cloudflare Workers dan dilindungi OAuth 2.1.
Claude ──OAuth──▶ mcp-gate (Cloudflare Worker) ──API key akun A──▶ Buffer
└──API key akun B──▶ BufferTool yang tersedia
Tool | Izin | Fungsi |
| baca | Daftar label akun yang tersambung |
| baca | Detail akun dan organisasinya |
| baca | Daftar channel (Instagram, Threads, dll.) beserta ID |
| baca | Daftar postingan, filter per channel/status |
| tulis | Buat postingan: antrean, langsung, terjadwal, draf, gambar/video, utas |
| tulis | Ubah postingan yang belum tayang |
| tulis | Hapus postingan |
Setiap tool punya parameter account berisi label akun, misalnya kawanceritamu atau esa_rijal.
Related MCP server: FastSocial MCP Server
Yang kamu butuhkan
Akun Cloudflare (gratis) dan Node.js 22+ di komputermu.
Satu API key Buffer per akun: login ke tiap akun Buffer → Settings → API → buat key. Catatan: paket gratis Buffer memberi 1 API key, dan semua key serta koneksi MCP di satu organisasi berbagi kuota (150 request per 15 menit, 600 per hari).
Deploy (sekali saja)
git clone https://github.com/esarijal/mcp-gate && cd mcp-gate
npm install
npx wrangler login1. Buat penyimpanan KV untuk OAuth, lalu tempel id yang muncul ke wrangler.jsonc (bagian kv_namespaces):
npx wrangler kv namespace create OAUTH_KV2. Deploy pertama untuk mendapatkan URL Worker:
npx wrangler deployCatat URL-nya, misalnya https://mcp-gate.namamu.workers.dev. Ganti nilai PUBLIC_URL di wrangler.jsonc dengan URL itu.
3. Isi rahasia. Passphrase minimal 32 karakter; simpan di password manager.
openssl rand -base64 33 # contoh cara membuat passphrase acak
npx wrangler secret put OWNER_PASSPHRASE
# Satu per akun Buffer. Bagian setelah BUFFER_KEY_ menjadi label akun.
npx wrangler secret put BUFFER_KEY_KAWANCERITAMU
npx wrangler secret put BUFFER_KEY_ESARIJAL4. Deploy ulang supaya PUBLIC_URL terpakai:
npx wrangler deployMenyambungkan ke Claude
1. Buat kredensial konektor. Buka https://mcp-gate.namamu.workers.dev/setup, masukkan passphrase,
lalu salin Client ID dan Client Secret yang muncul (secret hanya tampil sekali).
2. Tambahkan konektor di Claude. Buka Settings → Connectors → Add custom connector:
URL:
https://mcp-gate.namamu.workers.dev/mcpAdvanced settings: tempel OAuth Client ID dan OAuth Client Secret dari langkah 1.
3. Klik Connect. Halaman persetujuan mcp-gate terbuka. Pastikan tujuan akses tertulis claude.ai,
pilih izin (baca saja, atau baca + tulis), masukkan passphrase, lalu klik Izinkan.
Catatan:
Menjalankan
/setuplagi akan mencabut kredensial lama beserta semua koneksinya. Pakai ini juga untuk memutus semua koneksi kalau curiga ada yang bocor.claude.ai dan claude.com memakai kredensial yang sama. Menyambung dari salah satunya akan menggantikan koneksi di yang lain.
Pendaftaran klien otomatis (DCR) sengaja dimatikan demi keamanan. Kalau aplikasimu tidak punya kolom Client ID/Secret, aktifkan dengan var
ENABLE_DCR="true". Itu membuka endpoint/oauth/registerke publik, meski tetap dibatasi rate limit dan allowlist redirect.
Menambah akun Buffer baru
npx wrangler secret put BUFFER_KEY_NAMAAKUNBARUTidak perlu deploy ulang dan tidak perlu menyambung ulang di Claude.
Menambah layanan lain (Gmail, dll.)
Buat folder src/modules/<layanan>/ yang mengekspor daftar Tool (lihat src/modules/buffer/tools.ts sebagai contoh),
lalu daftarkan di src/modules/index.ts. Setiap tool wajib punya scope (mcp:read atau mcp:write) dan
inputSchema yang ketat; argumen divalidasi otomatis sebelum handler dipanggil.
Keamanan
Ringkasan kontrol ada di SECURITY-DESIGN.md. Hal yang perlu kamu jaga:
Passphrase = kunci semua akun. Panjang, acak, dan jangan dipakai di tempat lain.
Beri izin baca saja kalau koneksi itu tidak perlu memposting.
Curiga key bocor? Buat ulang API key di Buffer, lalu
wrangler secret putlagi.Mencabut semua koneksi: jalankan
/setuplagi. Kalau passphrase yang bocor, ganti duluOWNER_PASSPHRASE.
Pengembangan
cp .dev.vars.example .dev.vars # isi nilai uji; tambahkan PUBLIC_URL=http://localhost:8787
npm run typecheck
npm test # tes unit
npm run dev # jalankan lokal di http://localhost:8787
BASE=http://localhost:8787 PASS=<passphrase-uji> npm run test:e2e # tes OAuth & serangan end-to-endLisensi: MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Lets Claude and AI agents post, schedule and measure on Instagram, TikTok, LinkedIn and 5 more.
Schedule and publish to all your social channels from Claude, ChatGPT and other AI apps
Run your social media from Claude, ChatGPT or any MCP client. Feedlio's MCP server lets your assistant list workspaces and connected accounts, add media, and create, edit, reschedule and cancel posts across 15 platforms, including Facebook, Instagram, LinkedIn, YouTube, TikTok, Pinterest, Threads, Bluesky, Mastodon, Dev.to and Google Business Profile. Sign in with OAuth on Feedlio's own page. MCP is included on every Feedlio plan, the Free plan too. Support: support@feedlio.io. Also in Claude's Connectors Directory: https://claude.ai/directory/connectors/feedlio
Schedule and publish social media posts on 18 networks from Claude, Cursor and other MCP clients.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables managing Buffer social media posts via Claude, including creating, scheduling, and viewing posts across connected accounts through Buffer's GraphQL API.74-
- FlicenseAqualityCmaintenanceSchedule and manage social media posts across Facebook, Instagram, Twitter/X, LinkedIn, YouTube, TikTok, and Pinterest directly from Claude.10-
- AlicenseNot gradedqualityCmaintenanceEnables Claude and other MCP-compatible clients to publish and manage content across multiple separate Buffer accounts through a single connector endpoint, with per-call account routing. Includes OAuth-authenticated web onboarding, masked key entry, and encrypted per-account credentials so new accounts can be added without redeploying or configuring extra connectors.MIT
- AlicenseAqualityBmaintenanceConnects Claude to the Sprout Social API so it can list connected profiles, create and schedule posts with media and tags, and pull profile and per-post analytics. Also exposes listening topics, messages with sentiment, and aggregated topic metrics for social listening research.122MIT