DEVELOPERSBring your own agent

Let your own AI agents work in Socialyn.

Socialyn has an MCP (Model Context Protocol) server. Any MCP client, such as Claude Code, Claude Desktop or Cursor, can read your workspace and act in it with a scoped key, under the same rules as the built-in agent.

In short

The Socialyn MCP server is at https://api.socialyn.ai/api/mcp/server. Create a key under Settings, MCP and API keys in the app, choose a scope, and send it as Authorization: Bearer. Every call goes through the action rules, the Money Shield and the activity log, and Stop all agents blocks every tool that changes something.

01Connect

How do I connect Claude or Cursor to Socialyn?

Create a key in the app, then add the server to your client. The app shows these snippets with your key filled in.

Claude Code

claude mcp add --transport http socialyn https://api.socialyn.ai/api/mcp/server \
  --header "Authorization: Bearer sk_socialyn_…"

Cursor (.cursor/mcp.json)

{ "mcpServers": { "socialyn": {
  "url": "https://api.socialyn.ai/api/mcp/server",
  "headers": { "Authorization": "Bearer sk_socialyn_…" } } } }
  • Claude Desktop: add the server through mcp-remote with the same header.
  • Other MCP clients: any client that supports remote HTTP MCP servers with a custom header, including ChatGPT where your plan offers custom MCP connectors.
  • Name your agent: send x-socialyn-agent: <name> and it appears by name in the activity feed.
  • Test it: a JSON-RPC tools/list call with curl lists what your key can use.
02Scopes

What can a key do?

Scopes are ordered: each includes the ones before it. Keys that can request spend or act as an agent must have a monthly limit.

Socialyn API key scopes
ScopeWhat it allowsExample tools
readRead the workspaceBrand and business profile, missions, calendar, connected accounts, performance, inbox comments, best times
planPrepare work for peopleLaunch a mission, draft ad plans, send an item to Needs you
request_spendAsk to spend, never spend directlyRequest an ad launch, which becomes a spend request for approval
agentAct like the built-in agentCreate a post, reply to a comment, launch or pause a campaign, set an ad set budget
03Same rules

Are outside agents limited like the built-in one?

Yes. Their tools run through the same code as the Socialyn Agent, so the Allow / Ask me / Block rules, hard limits, Money Shield, activity feed and undo all apply.

Kill switch

While Stop all agents is on, every MCP tool that changes something is refused with a clear message and the refusal is logged. Read tools keep working.

Audit

Each call records the key and the agent's name in the ledger, and its changes are made on behalf of the person who created the key.

04APIs and webhooks

Is there a REST API?

The app runs on Socialyn's REST API, but it isn't offered as a public, versioned API yet: the MCP server is the supported way in for your own code and agents. For data coming in, conversion webhooks accept leads and sales from any tool.

Connect the other way

Socialyn can also call out to MCP servers such as Canva and Google Drive. See integrations.

Developers FAQ

What is MCP?

The Model Context Protocol, an open standard that lets AI assistants connect to tools and data in a consistent way. See the glossary.

Where do I get an API key?

In the app, under Settings, MCP and API keys. A key is shown once when it is created; you can regenerate it at any time.

Can an outside agent spend money?

Only through the Money Shield, like everyone else, and only with a key scoped for it that has a monthly limit. Spend above the client's approval line always waits for the client.

Can ChatGPT use Socialyn?

ChatGPT can connect where your plan offers custom MCP connectors that accept a bearer token. Claude Code, Claude Desktop and Cursor are the clients the app gives ready-made setup for.

Plug your agents into real marketing.

Create a key and list the tools in one minute.