Sp MCP Server
Sp MCP Server
MCP-сервер позволяет Claude публиковать напрямую в аккаунты Instagram, привязанные к пользователям платформы Sp.
Развертывание (Deploy)
cd mcp-server
npm install
npx wrangler login
# سرّيات لازم تضيفها قبل أول deploy:
npx wrangler secret put SUPABASE_SERVICE_ROLE_KEY
# (خذها من Supabase Dashboard → Settings → API → service_role secret)
npx wrangler secret put IG_APP_ID
npx wrangler secret put IG_APP_SECRET
# (App ID/Secret تبع تطبيق randieb من Meta for Developers)
npm run deployПосле первого деплоя Cloudflare выдаст вам ссылку вида:
https://sp-mcp.<subdomain>.workers.devНеобходимо обновить MCP_BASE_URL в файле wrangler.toml на эту ссылку и повторно выполнить npm run deploy.
Related MCP server: Instagram Complete MCP Server
Подключение из Claude
Пользователь переходит в настройки Claude → Connectors → Add custom connector и вставляет:
https://sp-mcp.<subdomain>.workers.dev/mcpClaude автоматически обнаружит OAuth-эндпоинты (/.well-known/oauth-authorization-server) и перенаправит на страницу входа (/authorize) только при первом подключении.
Доступные инструменты (Tools)
list_connected_accounts— возвращает привязанные аккаунты Instagrampublish_instagram_post(caption, image_url, account_id?)— публикует изображение с подписью
Замечания по безопасности
Токены Instagram хранятся в таблице
sp_instagram_accountsв проекте Supabase и защищены с помощью Row Level SecurityДоступ из Worker к базе данных осуществляется через
service_role key(намеренно обходит RLS, так как это доверенный серверный ключ), поэтому этот ключ должен оставаться полностью секретным и храниться только как Wrangler secret, и никогда не должен попадать в код
This server cannot be deployed
Maintenance
Related MCP Connectors
Create, schedule and publish Instagram and Facebook posts from Claude or ChatGPT.
Instagram for AI agents: publish, read comments and DMs, insights, and engage from your account.
Create, review, publish and schedule Instagram images, carousels and Reels with AI assistants.
Publish to Instagram from chat — official Graph API, OAuth 2.1, free for your own posts.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceEnables sending and receiving Instagram Direct Messages, managing conversations, downloading media, viewing user profiles and stories, and interacting with posts through natural language in Claude.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage Instagram Business accounts by automating content publishing, scheduling posts, and analyzing performance metrics. Supports posts, stories, reels, and carousels with detailed audience insights and hashtag discovery.1-
- AlicenseNot gradedqualityCmaintenanceConnects Claude to the official Meta Instagram Graph API (read-only) for retrieving Instagram profile, media, insights, and comments as MCP tools over Streamable HTTP.MIT
- AlicenseNot gradedqualityBmaintenanceEnables team members to publish Instagram carousels and single images to their own professional Instagram accounts directly from Claude conversations, with per-user authentication and idempotent publishing.11 npmMIT