SocialNeuronSocialNeuronSocialNeuron
  • Docs
  • REST API
  • MCP Tools API
Product
  • Dashboard
  • Pricing
  • What's New
Developers
  • REST API
  • MCP Tools API
  • CLI Reference
  • npm Package
  • GitHub
Support
  • Help & Support
  • FAQ
  • Email Support
Community
  • X / Twitter
  • GitHub
  • Privacy Policy
  • Terms of Service
Getting Started
Features
Platforms
Templates & Recipes
Billing
Developer
    Developer APICLI ReferenceCode ExamplesMCP QuickstartAuthenticationCredit SystemWorkflow RecipesError ReferenceChangelog
Help & Support
Developer

​Authentication

Social Neuron supports three authentication methods for the MCP server and REST API. All methods produce an API key that grants access based on your plan's scope.

​Authentication Methods

​Device Code Flow (Recommended)

Best for local development. A browser window opens, you approve, and the CLI receives your API key automatically.

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

How it works under the hood:

  1. The CLI generates a PKCE code_verifier and code_challenge
  2. Your browser opens to the authorization page with the challenge
  3. You log in and approve the requested scopes
  4. The app posts the API key and state to a local callback server
  5. The CLI completes the PKCE exchange to activate the key
  6. The key is stored in your OS keychain

​Browser OAuth Flow

Standard browser-based OAuth for environments that support redirects.

npx -y @socialneuron/mcp-server login
bash

​API Key Paste

Generate a key in the Social Neuron dashboard and paste it into the CLI. Best for CI/CD pipelines and automated workflows.

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

Generate your key at socialneuron.com/settings/developer.

​Key Storage

API keys are stored securely using OS-native mechanisms:

PlatformStorageDetails
macOSKeychainsecurity add-generic-password
Linuxsecret-tool (libsecret)D-Bus Secret Service API
Windows / fallback~/.config/social-neuron/credentials.jsonchmod 0600
CI/headlessSOCIALNEURON_API_KEY env varHighest priority

Keys are never written to disk in plaintext. The environment variable (SOCIALNEURON_API_KEY) takes highest priority and is the recommended approach for CI/CD.

​Scopes

Each API key is assigned scopes that control which operations it can perform. Scopes are determined by your subscription plan.

ScopePermissions
mcp:fullAll operations (includes all scopes below)
mcp:readAnalytics, insights, brand profiles, content plans, quality checks, 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

​Scopes by Plan

PlanScopes
FreeNo API access
TrialNo API access
Starter ($29/mo)mcp:read, mcp:analytics
Pro ($79/mo)mcp:full
Team ($199/mo)mcp:full + multi-user

​Rate Limits

Rate limits are enforced per API key:

PlanRequests/MinuteMax API Keys
Starter302
Pro605
Team12020

Every response includes rate limit headers:

  • X-RateLimit-Remaining -- Requests remaining in the current window
  • X-RateLimit-Reset -- Unix timestamp when the window resets

Exceeding the limit returns HTTP 429. Wait until X-RateLimit-Reset before retrying.

Generation-heavy tools (video, image) have additional per-tool rate limits of 20 requests per minute to prevent runaway automation.

​Security

  • All API keys are SHA-256 hashed before storage -- we never store plaintext keys
  • SSRF protection on all URL parameters with DNS rebinding prevention
  • Agent loop detection prevents runaway automation
  • Gateway token system ensures all requests flow through scope and credit enforcement

​Disabling Telemetry

The MCP server collects anonymous usage metrics (tool name, duration, success/failure). Your user ID is hashed before transmission. No content, API keys, or request payloads are collected.

To disable:

export DO_NOT_TRACK=1
# or
export SOCIALNEURON_NO_TELEMETRY=1
bash

MCP QuickstartCredit System
On this page
  • Authentication Methods
    • Device Code Flow (Recommended)
    • Browser OAuth Flow
    • API Key Paste
  • Key Storage
  • Scopes
    • Scopes by Plan
  • Rate Limits
  • Security
    • Disabling Telemetry