Skip to main content
Glama
yahya759

Sp MCP Server

by yahya759

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/mcp

Claude автоматически обнаружит OAuth-эндпоинты (/.well-known/oauth-authorization-server) и перенаправит на страницу входа (/authorize) только при первом подключении.

Доступные инструменты (Tools)

  • list_connected_accounts — возвращает привязанные аккаунты Instagram

  • publish_instagram_post(caption, image_url, account_id?) — публикует изображение с подписью

Замечания по безопасности

  • Токены Instagram хранятся в таблице sp_instagram_accounts в проекте Supabase и защищены с помощью Row Level Security

  • Доступ из Worker к базе данных осуществляется через service_role key (намеренно обходит RLS, так как это доверенный серверный ключ), поэтому этот ключ должен оставаться полностью секретным и храниться только как Wrangler secret, и никогда не должен попадать в код

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables 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
  • F
    license
    Not graded
    quality
    D
    maintenance
    Enables 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
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    Connects 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
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables 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 npm
    MIT