@socialneuron/mcp-server

May 29, 2026 · View on GitHub

75 MCP tools for AI-powered social media management — create content, schedule posts, track analytics, and optimize. Available over MCP, REST API, and CLI.

This npm package registers 75 tools over stdio. The hosted endpoint mcp.socialneuron.com and REST API expose the full 92-tool product surface — query /.well-known/mcp/server-card.json for the live count.

npm version npm provenance License: MIT Node CI

Contents

Compatibility

SurfaceMinimum
Node.js20.x or 22.x+
Claude Desktop0.7.0+
Claude Codeany
Cursor0.42.0+ (MCP support)
VS Code1.99+ (MCP preview)
Zed0.151.0+
Windsurf1.4.0+
Continue.dev0.9.230+

Every release is published from GitHub Actions with npm provenance attestation (SLSA Build L2 via OIDC Trusted Publishing) — verify with npm view @socialneuron/mcp-server --json | jq .dist.attestations.

Integration Methods

MethodBest ForDocs
MCPAI agents (Claude, Cursor, VS Code)Setup
REST APIAny HTTP client, webhooks, ZapierGuide
CLITerminal, CI/CD pipelinesGuide
SDKTypeScript/Node.js appsPreview

All methods share the same tool catalog, auth, scopes, and credit system. Compare methods.

Platform Status

PlatformStatus
YouTube✅ Live
TikTok✅ Live
Instagram🔶 Pending app review
LinkedIn · X · Facebook · Threads · BlueskySupported — see integrations for live status

The hosted endpoint and REST API track the live matrix; check socialneuron.com/integrations for current availability.

Quick Start

MCP (AI Agents)

1. Authenticate

npx -y @socialneuron/mcp-server login --device

This opens your browser to authorize access. Requires a Social Neuron Pro plan or above (Pro = MCP read + analytics; Team/Agency = full MCP). See pricing.

Using pnpm, bun, or yarn?
# pnpm
pnpm dlx -y @socialneuron/mcp-server login --device

# bun
bunx -y @socialneuron/mcp-server login --device

# yarn (Classic / Berry)
yarn dlx -y @socialneuron/mcp-server login --device

# Global install (any package manager)
npm install -g @socialneuron/mcp-server   # or: pnpm add -g … / bun add -g …
socialneuron-mcp login --device

The package is published to npmjs.com with provenance attestation; any registry-compatible client works.

2. Add to Claude Code

# Local stdio (uses key from step 1)
claude mcp add socialneuron -- npx -y @socialneuron/mcp-server

# Or HTTP transport — no local process, key in header
claude mcp add --transport http socialneuron https://mcp.socialneuron.com/mcp \
  --header "Authorization: Bearer $SOCIALNEURON_API_KEY"
Claude Desktop

Add to your claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "socialneuron": {
      "command": "npx",
      "args": ["-y", "@socialneuron/mcp-server"]
    }
  }
}
VS Code

Add to .vscode/mcp.json in your workspace:

{
  "servers": {
    "socialneuron": {
      "command": "npx",
      "args": ["-y", "@socialneuron/mcp-server"]
    }
  }
}
Cursor

Add to .cursor/mcp.json in your workspace:

{
  "mcpServers": {
    "socialneuron": {
      "command": "npx",
      "args": ["-y", "@socialneuron/mcp-server"]
    }
  }
}
Windsurf

Add to ~/.codeium/windsurf/mcp_config.json (or via Settings → MCP servers):

{
  "mcpServers": {
    "socialneuron": {
      "command": "npx",
      "args": ["-y", "@socialneuron/mcp-server"]
    }
  }
}
Zed

Add to ~/.config/zed/settings.json under context_servers:

{
  "context_servers": {
    "socialneuron": {
      "command": {
        "path": "npx",
        "args": ["-y", "@socialneuron/mcp-server"]
      }
    }
  }
}
Continue.dev

Add to ~/.continue/config.yaml under mcpServers:

mcpServers:
  - name: socialneuron
    command: npx
    args:
      - "-y"
      - "@socialneuron/mcp-server"
Cline (VS Code)

Add via Cline → MCP Servers → Edit config, or directly to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json (macOS path):

{
  "mcpServers": {
    "socialneuron": {
      "command": "npx",
      "args": ["-y", "@socialneuron/mcp-server"],
      "disabled": false,
      "autoApprove": []
    }
  }
}

3. Start using

Ask Claude: "What content should I post this week?" or "Schedule my latest video to YouTube and TikTok"

REST API (Any Language)

# Check credits
curl -H "Authorization: Bearer snk_live_..." \
  https://mcp.socialneuron.com/v1/credits

# Generate content
curl -X POST -H "Authorization: Bearer snk_live_..." \
  -H "Content-Type: application/json" \
  -d '{"topic": "AI trends", "platforms": ["linkedin"]}' \
  https://mcp.socialneuron.com/v1/content/generate

# Execute any tool via proxy
curl -X POST -H "Authorization: Bearer snk_live_..." \
  -H "Content-Type: application/json" \
  -d '{"response_format": "json"}' \
  https://mcp.socialneuron.com/v1/tools/get_brand_profile

See REST API docs | OpenAPI spec | Examples

CLI (Terminal & CI/CD)

npx @socialneuron/mcp-server sn system credits --json
npx @socialneuron/mcp-server sn analytics loop --json
npx @socialneuron/mcp-server sn discovery tools --module content

See CLI guide | Examples

What You Can Do

Ask Claude things like:

  • "Generate 5 content ideas about sustainable fashion for Gen Z"
  • "Create a 30-second video ad for my product launch"
  • "Schedule this video to YouTube and TikTok at 9am tomorrow"
  • "Show me my best-performing content this month"
  • "What are the trending topics in my niche right now?"
  • "Check my analytics and suggest improvements"
  • "Set up autopilot to post 3 times per week"

Tool Categories

Full machine-readable listing in tools.lock.json (sealed manifest, verified in CI).

All tools are accessible via MCP, REST API (POST /v1/tools/{name}), and CLI.

Content Lifecycle

CategoryToolsWhat It Does
Ideationgenerate_content, fetch_trends, adapt_content, get_ideation_contextAI-powered content ideas and trend research
Contentgenerate_video, generate_image, generate_voiceover, generate_carousel, check_status, create_storyboardVideo, image, voiceover, and carousel creation with 20+ AI models
Distributionschedule_post, schedule_content_plan, find_next_slots, list_connected_accounts, list_recent_postsMulti-platform publishing, scheduling, and slot optimization
Analyticsfetch_analytics, refresh_platform_analyticsPerformance tracking across all platforms
Insightsget_performance_insights, get_best_posting_timesData-driven content optimization

Management & Optimization

CategoryToolsWhat It Does
Brandextract_brand, get_brand_profile, save_brand_profile, update_platform_voiceBrand identity and voice management
Commentslist_comments, reply_to_comment, post_comment, moderate_comment, delete_commentSocial engagement management
Planningplan_content_week, save_content_plan, get_content_plan, update_content_plan, submit_content_plan_for_approvalContent calendar and approval workflows
Plan Approvalscreate_plan_approvals, respond_plan_approval, list_plan_approvalsReview and approve content plans
Autopilotlist_autopilot_configs, get_autopilot_status, update_autopilot_configAutomated content scheduling
Qualityquality_check, quality_check_planPre-publish content validation
Creditsget_credit_balance, get_budget_statusUsage and budget tracking
Loopget_loop_summaryClosed-loop optimization feedback

Utilities

CategoryToolsWhat It Does
Extractionextract_url_contentExtract content from URLs, YouTube, articles
Screenshotscapture_app_page, capture_screenshotVisual documentation and monitoring
Remotionlist_compositions, render_demo_videoProgrammatic video rendering
Usageget_mcp_usageAPI usage monitoring
YouTubefetch_youtube_analyticsYouTube-specific deep analytics
Discoverysearch_toolsFind tools by keyword with progressive detail levels (saves 98% tokens vs loading all tools)

Authentication

Three auth methods, in order of recommendation:

npx -y @socialneuron/mcp-server login --device

Opens browser, you approve, CLI receives API key automatically.

Browser Flow

npx -y @socialneuron/mcp-server login

Browser-based OAuth flow.

API Key Paste

npx -y @socialneuron/mcp-server login --paste

Generate a key at socialneuron.com/settings/developer, paste it in.

Keys are stored in your OS keychain (macOS Keychain, Linux secret-tool) or file fallback.

Windows users: The file fallback (~/.config/social-neuron/credentials.json) does not have strong permission enforcement on NTFS. For production use on Windows, set the SOCIALNEURON_API_KEY environment variable instead.

Pricing

MCP access requires a Pro plan or higher:

PlanPriceCredits/moMCP Access
Free$0100
Starter$19/mo500
Pro$49/mo1,500Read + Analytics
Team$99/mo3,500Full + 5 keys
Agency$249/mo10,000Full + 20 keys + REST API

Sign up at socialneuron.com/pricing.

Scopes

Each API key inherits scopes from your plan. Tools require specific scopes to execute.

ScopeWhat you can do
mcp:readAnalytics, insights, brand profiles, content plans, quality checks, screenshots, usage stats, credit balance
mcp:writeGenerate content (video, image, voiceover, carousel), create storyboards, save brand profiles, plan content
mcp:distributeSchedule posts, publish content plans
mcp:analyticsRefresh analytics, YouTube deep analytics
mcp:commentsList, reply, post, moderate, delete comments
mcp:autopilotConfigure and monitor automated scheduling
mcp:fullAll of the above

CLI Reference

These commands run directly in your terminal — no AI agent needed. Useful for scripts, CI/CD, and quick checks.

After global install (npm i -g @socialneuron/mcp-server), use socialneuron-mcp directly. Otherwise, prefix with npx @socialneuron/mcp-server.

# Auth
socialneuron-mcp login [--device|--paste]
socialneuron-mcp logout
socialneuron-mcp whoami
socialneuron-mcp health

# Content (publish, quality-check, e2e workflows, plan, preset)
socialneuron-mcp sn content publish --media-url <url> --caption <text> --platforms <list> --confirm
socialneuron-mcp sn content e2e --media-url <url> --caption <text> --platforms <list> --confirm
socialneuron-mcp sn content quality-check --content "your text here"
socialneuron-mcp sn content plan list|view|approve
socialneuron-mcp sn content preset list|show|save|delete

# Analytics
socialneuron-mcp sn analytics posts --days 7 --platform youtube
socialneuron-mcp sn analytics refresh
socialneuron-mcp sn analytics loop

# System (status, credits, usage, autopilot)
socialneuron-mcp sn system status
socialneuron-mcp sn system credits
socialneuron-mcp sn system usage
socialneuron-mcp sn system autopilot

# Account (platform connections)
socialneuron-mcp sn account preflight --check-urls
socialneuron-mcp sn account oauth-health
socialneuron-mcp sn account oauth-refresh --platform instagram

# Discovery (find tools)
socialneuron-mcp sn discovery tools [--module ideation] [--scope mcp:write]
socialneuron-mcp sn discovery info

# Interactive REPL
socialneuron-mcp repl

# Add --json to any command for machine-readable output

Each grouped command also has a flat alias (e.g. sn creditssn system credits, sn publishsn content publish). The grouped form is the documented surface; flat aliases exist for shell ergonomics.

Automation Flow (E2E Loop)

The full autonomous content loop using MCP tools:

  1. get_loop_summary — assess project state (content count, scheduled posts, insights)
  2. plan_content_week — generate a content plan based on insights and trends
  3. generate_video / generate_image — create media assets from the plan
  4. check_status — poll async jobs until assets are ready
  5. schedule_post — distribute content to connected platforms
  6. (wait for analytics collection) — platform data is fetched automatically
  7. refresh_platform_analytics — trigger a manual analytics refresh
  8. get_performance_insights — read what worked and what didn't
  9. Loop back to step 1 with new insights

Each iteration produces smarter content as performance data feeds back into the planning step.

Security

  • All API keys are hashed before storage — we never store plaintext keys
  • Credentials stored in your OS keychain (macOS Keychain, Linux secret-tool) or environment variable
  • SSRF protection on all URL parameters with DNS rebinding prevention
  • Rate limiting per user with per-tool limits for expensive operations
  • Agent loop detection prevents runaway automation
  • Telemetry is off by default — opt in with SOCIALNEURON_TELEMETRY=1

See SECURITY.md for our vulnerability disclosure policy and credential safety details.

HTTP server tuning (cloud / Railway)

The HTTP MCP server reads a few security-related env vars. Defaults are safe for the standard Railway deployment.

VariableDefaultPurpose
TRUST_PROXY1Number of upstream proxy hops to trust for req.ip / X-Forwarded-For. Set to 0 (or false) when running the server without a trusted reverse proxy in front — otherwise the per-IP rate limit can be bypassed by spoofing X-Forwarded-For. Accepts any value Express's trust proxy accepts (integer, 'loopback', CIDR, …).
SESSION_HARD_TTL_MS14400000 (4 h)Hard ceiling on session lifetime regardless of activity. Prevents a slow-read SSE client from pinning a session slot indefinitely.
SN_ALLOW_SELF_HOSTunsetAcknowledge running in self-host (service-role-key) mode. Suppresses the deprecation warning emitted on first Edge Function call. Self-host bypasses Supabase RLS, so caller-supplied IDs are higher-risk; the recommended path is cloud mode (SOCIALNEURON_API_KEY).

Telemetry

Telemetry is off by default. No data is collected unless you explicitly opt in.

To enable: Set SOCIALNEURON_TELEMETRY=1 in your environment.

To disable: DO_NOT_TRACK=1 or SOCIALNEURON_NO_TELEMETRY=1 always disables telemetry, even if SOCIALNEURON_TELEMETRY=1 is set.

When enabled, the following anonymous metrics are collected via PostHog:

  • Tool name invoked
  • Success or failure status
  • Invocation duration (ms)

No personal content, API keys, or request payloads are ever collected. Your user ID is hashed (SHA-256) before transmission.

posthog-node is an optional dependency — if it is not installed, telemetry is a silent no-op regardless of environment variables.

Examples

See the examples/ directory:

Documentation

License

MIT © Social Neuron