Sp MCP Server
Sp MCP Server
MCPサーバーにより、ClaudeはSpプラットフォームのユーザーにリンクされたInstagramアカウントに直接投稿できます。
デプロイ (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は次の形式のURLを提供します:
https://sp-mcp.<subdomain>.workers.devwrangler.tomlファイルのMCP_BASE_URLをこのURLに更新し、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— リンクされたInstagramアカウントを返しますpublish_instagram_post(caption, image_url, account_id?)— キャプション付きの画像を投稿します
セキュリティに関する注意事項
InstagramトークンはSupabaseプロジェクトの
sp_instagram_accountsテーブルに保存され、Row Level Securityで保護されていますWorkerからデータベースへのアクセスは
service_role keyを介して行われます(サーバーサイドで信頼されているため意図的にRLSをバイパスします)。このキーは完全に秘密に保ち、Wrangler secretとしてのみ保存し、コードには絶対に含めないでください。
This server cannot be deployed
Maintenance
Related MCP Connectors
Publish and schedule Instagram posts, Reels and carousels from your AI assistant.
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.
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 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.24 npmMIT
- AlicenseAqualityCmaintenanceEnables controlling an Instagram account through natural language, including posting photos, reels, and carousels, reading insights, managing comments and DMs, and handling ads and events.25MIT