New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

@socialaf/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@socialaf/mcp-server

MCP server for socialAF Character Studio. Build characters, generate images, video, voiceovers, and lip-synced talking heads from any MCP client (Claude Desktop, Cursor, OpenClaw, etc.).

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

@socialaf/mcp-server

MCP server for socialAF Character Studio. Build a character once, then generate stills, video, voice, and lip-synced talking heads against it from any MCP client (Claude Desktop, Cursor, OpenClaw, Codex).

Install

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "socialaf": {
      "command": "npx",
      "args": ["-y", "@socialaf/mcp-server"],
      "env": { "SOCIALAF_API_KEY": "saf_live_..." }
    }
  }
}

Get your API key at socialaf.ai/settings (Settings → API Keys). Restart Claude Desktop and the socialaf tools appear in the tool list.

Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "socialaf": {
      "command": "npx",
      "args": ["-y", "@socialaf/mcp-server"],
      "env": { "SOCIALAF_API_KEY": "saf_live_..." }
    }
  }
}

OpenClaw, Codex, other agents

Any MCP client that speaks stdio-transport JSON-RPC can use this server. Run npx -y @socialaf/mcp-server as a child process, pipe stdin/stdout, and pass SOCIALAF_API_KEY in the environment.

Tools

ToolWhat it does
apply_marketing_presetThe wedge. Pick one of 8 ad formats (Product Review, Unboxing, Talking Head Ad, Tutorial, Virtual Try-On, Hero Shot, UGC Selfie, TV Spot) and the system bakes in the right prompt, model, aspect, and duration for the user's character.
list_marketing_presetsList the 8 presets and what each one does.
list_charactersList the user's characters and other asset kinds.
get_characterGet one character with its reference images.
create_characterCreate a new character (or location, object, outfit, style).
delete_characterSoft-delete an asset.
attest_characterAffirm the character is an adult. Required before any generation.
create_upload_urlGet a presigned R2 upload URL for a reference image.
attach_character_referenceAttach an uploaded reference image to a character. Runs moderation synchronously.
remove_character_referenceSoft-delete a reference image.
generate_imageSynchronous image generation. Returns rendered URLs.
generate_videoAsync video. Returns a jobId.
generate_lipsyncAsync talking-head avatar. Returns a jobId.
generate_voiceAsync TTS voiceover. Returns a jobId.
get_generationPoll one job by id.
list_generationsList the user's recent generation jobs.
wait_for_generationPoll a job until it settles or times out. Use this after async generations.
list_toolsCatalog of available image and video models with capabilities.
get_billing_statusPlan, credit balance, and subscription period.

Example flow

A user says: "Make a 9:16 product review ad for my Luna character holding the matte black water bottle."

A typical agent flow:

  • list_characters → find the id for Luna
  • apply_marketing_preset with { presetId: "product-review", characterId: "...", productDescription: "matte black insulated water bottle", productImageUrl: "https://..." }
  • The response is a video jobId
  • wait_for_generation with the jobId
  • Return the resultUrls to the user

For an image preset (hero-shot, ugc-selfie), step 3 returns the rendered image URLs directly — no wait_for_generation needed.

Auth

Bearer token from SOCIALAF_API_KEY. Format: saf_live_*. The token rate-limits, deducts credits per generation, and scopes responses to the user's organization. Revoke / reissue at socialaf.ai/settings.

Development

cd packages/mcp-server
npm install
npm run build      # tsc → dist/
npm link           # makes the bin available globally
SOCIALAF_API_KEY=saf_live_... SOCIALAF_API_URL=http://localhost:3000 socialaf-mcp

For local Inspector debugging:

npx @modelcontextprotocol/inspector dist/index.js

License

MIT

Keywords

mcp

FAQs

Package last updated on 05 May 2026

Related posts