Sofia MCP Server
Allow autonomous AI assistants to operate your Sofia creator marketing engine through the open Model Context Protocol.
Zero client installation required
Sofia hosts a live, high-throughput Model Context Protocol server. An AI model can discover creators, negotiate terms, sign contracts, review videos, and execute payouts directly through natural conversation — no custom HTTP integrations or glue code needed.
https://app.sofia.com/api/mcp
What Sofia exposes to your agent #
The Sofia MCP server maps 1:1 with Sofia’s battle-tested REST API, protected by granular OAuth 2.1 capability scopes. Every capability is exposed as a typed, structured MCP tool, alongside a foundational whoami tool for real-time verification of tenant identity, permission boundaries, and sub-account access.
Read scopes reveal idempotent, query-only tools that cannot mutate account state or spend campaign capital.
Write tools mutate Sofia state reversibly, carrying full confirmation guardrails in their schema descriptions.
Sensitive operations (contract signing, wallet transfers, payout runs) enforce dry-run validations before execution.
The quick-pay claim link facility is directly accessible to agents via create_quickpay_claim_link.
Prerequisites & Security Architecture #
To connect an AI assistant, you need three components:
MCP-Enabled Client
Claude Code, Claude Desktop, Cursor, VS Code (Copilot/Cline), or any assistant speaking MCP over Streamable HTTP.
OAuth 2.1 Client
Sofia MCP uses standard OAuth 2.1 with Dynamic Client Registration (RFC 7591) to mint client IDs with no manual API key rotation.
Bearer Token (PKCE)
Authorized via PKCE (S256). Sofia tokens are multi-audience: the same credential validates for both REST API and MCP endpoints.
401 with a WWW-Authenticate challenge containing protected-resource metadata. Compliant tools discover the authorization server dynamically, enabling complete zero-click setup from the URL alone.
Connect your assistant in 60 seconds #
claude mcp add --transport http sofia https://app.sofia.com/api/mcp
Claude Code will initiate the browser-based OAuth authentication flow automatically on its first execution.
Two distinct configurations use the term Connectors:
- Incoming Assistant Connectors: Your client’s settings (such as Claude Desktop’s Settings → Connectors) point an external assistant into your Sofia brand workspace. This documentation covers this flow.
- Outgoing Sofia Connectors: Inside the Sofia dashboard under Settings → Sofia Connectors, Sofia itself connects outward to third-party data providers and e-commerce platforms.
Role-Based Permission Ceilings: A user’s consented scope array acts as a strict ceiling. If a user later has their permissions adjusted by a workspace administrator, subsequent token refreshes narrow the accessible tool capabilities immediately, ensuring AI actions never bypass organizational roles.
Interacting with Sofia in natural language #
Once your client is connected, instruct your assistant to verify its active tenant context before initiating operations:
You can then command complex operations in plain language:
Every invocation is cryptographically bound to the authenticated workspace. Requesting actions beyond granted scopes yields an actionable reauthorization prompt rather than an ambiguous error.
Agency Sub-Account Delegation #
Agencies managing multiple client brands on Sofia can grant their AI agents global or scoped sub-account access during OAuth consent.
- The
whoamiresponse includes asubaccountAccessproperty:null(single workspace),"all"(entire client portfolio), or an explicit array of client workspace IDs. - All business tools support an optional
act_as_subaccount_idparameter. Pass the client workspace ID (discovered vialist_companies) to execute actions directly on that brand’s behalf. - Under the hood, Sofia routes the request with an
X-Act-As-Companytenant header, rigorously verifying parent-child relationships and live permission ceilings on every call.
Intent-Driven Capability Discovery #
Because some AI client environments enforce strict limits on total tool schema size, Sofia implements a two-stage discovery pipeline. Core discovery tools are registered first so models never drop critical capabilities:
Intent Resolution
The agent calls find_capability with an English description of the desired task to locate candidate tools.
On-Demand Schemas
The agent loads the exact JSON input schema via catalog_get_schema right before dispatching data.
Parameter Review
The agent presents resolved enum values, budget amounts, and parameters to the user for explicit confirmation.
Gated Invocation
The agent dispatches via catalog_invoke_read, catalog_invoke_write, or catalog_invoke_sensitive.
Creator Marketplace Operations #
| Workflow | Sofia MCP Tool | Operational Guidelines |
|---|---|---|
| Post Creator Job | create_job |
Compiles title, brief, compensation model (fixed retainer, per-post fee, or hybrid), and screener questions. Debits one posting credit; confirmation required. |
| Update Active Job | update_job |
Patch specific fields without consuming posting credits. Modifying payout structures requires supplying the complete updated configuration block. |
| Archive / Close Job | update_job_status |
Safely removes listings from public discovery, preserving applicant audit trails and credit balances. |
| Review Applications | list_applicants_advanced |
Access applicant profiles, screener questionnaire answers, portfolio clips, and social metrics. |
| Link Campaign to Market | create_job(programId) |
Binds the public marketplace listing directly to a private Sofia campaign container. |
The 16 Curated Sofia Skills #
Sofia packages multi-step creator procedures as Named Skills. Assistants can execute them via MCP slash prompts or programmatic invocation through invoke_skill:
| Skill Handle | Procedure | Intended Agent Context |
|---|---|---|
boost-post |
Boost Winning Post | Converts high-converting organic creator content into TikTok Spark or Meta whitelist ad units. Enforces spend authorization before launching. |
create-campaign |
Launch Campaign | Architects full creator campaigns from Sofia benchmark templates, setting objectives, timelines, and deliverables. |
find-creators |
Discover Talent | Queries Sofia's verified creator roster by audience demographics, niche, engagement rates, and platform. |
fund-wallet |
Manage Balance | Checks escrow balances, estimates required campaign capital, and generates secure payment checkout links. |
grill-my-brief |
Audit Brief | Critiques creative hooks, compliance constraints, and production clarity against viral ad benchmarks. |
hire-creator |
Contract Talent | Generates custom usage agreements, dispatches e-signatures, and onboards creators to active campaigns. |
invoice-client |
Client Billing | Generates client-facing invoices, tracks receivables, and issues receipts for agency services. |
message-creators |
Roster Broadcast | Transmits reminders, production updates, or briefing adjustments across individual or cohort creator chats. |
performance-report |
Executive Summary | Synthesizes video views, CTRs, creator pacing, and blended CAC into weekly or monthly performance reports. |
post-job |
Publish Listing | Finalizes and launches creator opportunities to Sofia's marketplace with pre-flight verification. |
quickpay |
Direct Remittance | Issues one-off creator compensation outside standard contracts via email claims or instant bank rail. |
resolve-dispute |
Dispute Settlement | Evaluates deliverable milestones and evidence, recommending amicable escrow releases or adjustments. |
review-applicants |
Triage Backlog | Ranks applicants by past ad performance and screener responses, queuing acceptance contracts. |
review-content |
Quality Review | Reviews submitted raw footage or drafts, approving posts or generating structured revision notes. |
run-payouts |
Execute Payouts | Calculates pending payments, runs dry-run ledger verification, and releases creator funds upon user sign-off. |
write-brief |
Draft Creative Brief | Authors high-converting UGC briefs tailored to brand identity, visual style, and target audience hooks. |
Complete Tool Catalog #
High-performance tools exposed by the Sofia MCP server, categorized by security risk:
| Tool Name | Required Scope | Risk | Description |
|---|---|---|---|
whoami | - | read | Inspect connected Sofia workspace ID, granted scopes, client ID, and agency sub-accounts. |
find_capability | - | read | Locate the matching Sofia capability using natural-language intent. |
catalog_search | - | read | Search the full Sofia capability index. |
catalog_get_schema | - | read | Retrieve the JSON schema for any discovered tool. |
catalog_invoke_read | dynamic | read | Safely execute discovered read queries. |
catalog_invoke_write | dynamic | write | Execute confirmed configuration mutations. |
catalog_invoke_sensitive | dynamic | sensitive | Execute sensitive money and contractual operations with confirmation safeguards. |
invoke_skill | campaigns:read | read | Load one of Sofia's 16 curated procedure skills into conversational context. |
list_campaigns | campaigns:read | read | Filter and list active, draft, or archived Sofia campaigns. |
get_campaign | campaigns:read | read | Retrieve details, goals, and roster status for a specific campaign. |
create_campaign | campaigns:write | write | Initialize a new campaign container with target metrics and briefs. |
update_campaign | campaigns:write | write | Update campaign name, instructions, branding emoji, and timelines. |
archive_campaign | campaigns:write | write | Archive an ended campaign, preventing new submissions while saving reports. |
duplicate_campaign | campaigns:write | write | Clone an existing campaign’s settings and briefs into a fresh run. |
add_campaign_ghost_handle | campaigns:write | write | Track an untracked creator handle within a campaign. |
bulk_add_campaign_ghost_handles | campaigns:write | write | Batch-import up to 500 creator handles for campaign analytics. |
add_campaign_ghost_video | campaigns:write | write | Attach a tracked video link directly to a campaign ledger. |
bulk_add_campaign_ghost_videos | campaigns:write | write | Batch-import up to 500 video links for automated metric tracking. |
import_campaign_analytics_history | campaigns:write | write | Ingest historical video analytics prior to Sofia tracking onset. |
get_payment_structure | campaigns:read | read | Inspect payout terms, performance bonuses, and usage rights. |
create_job | jobs:write | write | Publish an open job listing to the Sofia Creator Marketplace. |
update_job | jobs:write | write | Modify marketplace job requirements and creative directions. |
list_jobs | jobs:read | read | List all marketplace job postings owned by your workspace. |
get_job | jobs:read | read | Retrieve full job specifications and application criteria. |
list_applications | applications:read | read | List incoming creator applications for review. |
get_application | applications:read | read | Inspect creator answers, rates, and past sample videos. |
update_application_status | applications:write | write | Approve or decline an applicant; approvals advance to contract drafting. |
list_creators | creators:read | read | Search Sofia’s creator database by follower range, platform, and category. |
get_creator | creators:read | read | Fetch verified engagement stats, past viral videos, and audience reach. |
list_creator_collections | creators:read | read | View saved bookmarks and talent shortlists. |
create_creator_collection | creators:write | write | Create a named talent shortlist. |
create_campaign_invite | creators:write | write | Generate a direct VIP invite link for specific creators. |
list_contracts | contracts:read | read | Review active, pending, and signed legal agreements. |
get_contract | contracts:read | read | Retrieve terms, deliverable deadlines, and compensation details. |
create_contract | contracts:write | write | Draft and dispatch a creator partnership agreement. |
update_contract | contracts:write | sensitive | Modify retainers or platform usage rights; regenerates PDF agreement. |
cancel_contract | contracts:write | write | Void an unsigned contract. |
save_contract_signature | contracts:sign | sensitive | Execute and timestamp an e-signature onto a Sofia contract. |
list_posts | posts:read | read | List all tracked creator videos with live metrics across platforms. |
get_post | posts:read | read | Inspect video view counts, watch time, shares, and comment sentiment. |
get_post_metrics | posts:read | read | Retrieve daily time-series performance data for attribution models. |
export_posts | posts:read | read | Generate CSV exports of campaign video statistics. |
get_analytics_accounts | analytics:read | read | Read authorized brand channel analytics. |
list_payouts | payouts:read | read | View historical payout ledger entries. |
list_pending_payouts | payouts:read | read | Inspect pending amounts owed to creators for approved milestones. |
get_payout_stats | payouts:read | read | Read current Sofia wallet balance and cumulative disbursement totals. |
execute_payouts | payouts:write | sensitive | Disburse pending payouts. Supports dry_run: true for preview verification. |
quick_pay | payouts:write | sensitive | Release an instantaneous compensation transfer directly to a creator. |
list_invoices | invoices:read | read | Filter invoices issued to agency clients. |
get_invoice | invoices:read | read | Retrieve invoice payment status and itemized line items. |
create_invoice | invoices:write | sensitive | Generate an itemized billing invoice for client approval. |
send_invoice | invoices:write | sensitive | Email an active invoice payment link directly to the customer. |
void_invoice | invoices:write | sensitive | Cancel and void an unpaid invoice. |
list_inbox | messages:read | read | Unified creator communications inbox across all campaigns. |
list_conversations | messages:read | read | Fetch 1:1 creator direct message threads. |
get_messages | messages:read | read | Read historical messages in a chat thread. |
list_support_channels | messages:read | read | List campaign deliverable help and approval channels. |
get_support_channel_messages | messages:read | read | Read message stream within a support channel. |
create_conversation | messages:write | sensitive | Open a new chat room with one or more creators. |
send_message | messages:write | sensitive | Send direct message text into a conversation. |
send_support_channel_message | messages:write | sensitive | Transmit guidance or revision requests in a campaign channel. |
react_to_message | messages:write | sensitive | Add an emoji reaction to creator feedback. |
get_settings | settings:read | read | Read workspace defaults and currency configurations. |
get_company | settings:read | read | Retrieve public brand profile details and logo assets. |
update_settings | settings:write | sensitive | Update allowable company configurations and defaults. |
list_invites | creators:read | read | Inspect active campaign invite URLs. |
revoke_invite | creators:write | write | Deactivate an invite URL immediately. |
Sofia Native Messaging Architecture #
Sofia operates its own high-concurrency native chat network. When interacting with creator conversation streams through MCP:
- All channels, threads, and individual messages utilize RFC 4122 UUID identifiers.
- Payload objects report
chatType: "native",source: "native", and route responses over thenativedelivery lane. - During scheduled workspace database maintenance, tools return a graceful HTTP
409 Conflictwithmeta.reason: "messaging_migrating". Agents are instructed to pause and retry after 60 seconds.
Safety Engine & Idempotency #
Enforced strictly at the protocol kernel layer, not on the client:
| Security Rule | Kernel Behavior |
|---|---|
| Sandbox Isolation | Sensitive tools (financial transfers or outbound communications) are rejected immediately when operating on sandbox or staging credentials. |
| Kill Switch (Safe Mode) | The MCP_SAFE_MODE environment flag instantly deactivates all sensitive tools across the workspace without interrupting read queries. |
| Idempotency Locks | All money-moving and contract actions require an Idempotency-Key header, ensuring network retries never trigger duplicate payouts. |
| Strict Tenant Binding | Every call is locked to one verified company context, preventing cross-tenant data leakage. |
Actionable Error Handling #
Sofia transforms raw HTTP status codes into self-healing instructions for the calling LLM:
| Trigger Condition | Protocol Response & Agent Recovery |
|---|---|
| Missing Scope | Returns descriptive requires 'X:write' scope accompanied by the full cumulative OAuth challenge for the user to re-consent seamlessly. |
| Cross-Tenant ID | Returns Not found or not visible to this Sofia workspace, preventing guesswork. |
| Sensitive Sandbox Call | Returns Action performs real irreversible side-effects; disabled on sandbox token. |
| Safe Mode Active | Returns Operation disabled: Sofia server running under MCP_SAFE_MODE. |
| Rate Throttled | Returns Rate limit exceeded: back off and retry in N seconds with standard headers. |
Public Documentation MCP Endpoint #
In addition to the authenticated product server above, Sofia hosts an unauthenticated documentation MCP endpoint so any coding assistant can query these technical specifications on the fly:
| Dimension | Sofia Product Server | Sofia Docs Server |
|---|---|---|
| URL Endpoint | app.sofia.com/api/mcp |
docs.sofia.com/mcp |
| Authentication | OAuth 2.1 (PKCE) with Scopes | None (Public) |
| Capabilities | Operate brand workspace & escrow | Read and search Sofia documentation |