Documentation · MCP

MCP server

OG Manager runs a Model Context Protocol server for your workspace, so an AI assistant can read your marketing and business data and ask for changes through the same permissions, approvals and audit log as the app.

Server address

Use the MCP address; the API-host address serves the same server, for networks or clients that can't reach it.

MCP server addresses
AddressUse
https://mcp.ogmanager.comThe MCP server
https://api.ogmanager.com/api/v1/mcpThe same server on the API host (fallback)
  • Transport: streamable HTTP. Clients POST JSON-RPC messages and get JSON back; the server does not open a server-sent event stream. Protocol versions 2025-06-18, 2025-03-26 and 2024-11-05.
  • The server is scoped to the workspace of the key you connect with. Every call is metered as an API call and recorded in the audit log.
  • Included on Starter and above, like the API and webhooks.

Create an API key

AI clients authenticate with an OG Manager API key, sent as a bearer token: Authorization: Bearer eos_live_<id>_<secret>.

  1. 1

    Open API & MCP in the app

    Under Platform → API & MCP, create an API key named after the client, for example “Claude”.
  2. 2

    Choose its scopes

    platform:read to use the MCP server and ai:read for the read tools. Add actions:write only if the assistant may ask for changes; those requests still wait for approval.
  3. 3

    Copy the key

    It is shown once. Paste it into the client's configuration below, and revoke it in the app whenever you stop using that client.

A key acts with the role of the member who created it, narrowed by its scopes. Keep it out of shared files and source control: a configuration that prompts for the key (as the Copilot example does) is safer than one that stores it.

Claude

Claude Code, the Claude desktop app and the Claude API can all use the server.

Claude Code (terminal)
claude mcp add --transport http og-manager https://mcp.ogmanager.com \
  --header "Authorization: Bearer eos_live_<id>_<secret>"

Run /mcp inside Claude Code to check that og-manager is connected and to list its tools.

Claude desktop app: claude_desktop_config.json (needs Node.js)
{
  "mcpServers": {
    "og-manager": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.ogmanager.com", "--header", "Authorization:${OGM_AUTH}"],
      "env": { "OGM_AUTH": "Bearer eos_live_<id>_<secret>" }
    }
  }
}

Open the file from Settings → Developer → Edit config, add the entry and restart the app. The mcp-remote bridge forwards the key as a header; keep Authorization:${OGM_AUTH} without a space and put the full value, Bearer included, in env.

Claude API (MCP connector, beta)
curl https://api.anthropic.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_API_KEY" \
  -H "anthropic-version: 2026-10-21" \
  -H "anthropic-beta: mcp-client-2025-11-20" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-opus-5-5",
    "max_tokens": 4096,
    "mcp_servers": [{
      "type": "url",
      "url": "https://mcp.ogmanager.com",
      "name": "og-manager",
      "authorization_token": "eos_live_<id>_<secret>"
    }],
    "tools": [{ "type": "mcp_toolset", "mcp_server_name": "og-manager" }],
    "messages": [{ "role": "user", "content": "Which campaigns spent the most last week?" }]
  }'

The connector needs both halves: the server in mcp_servers (with the key as authorization_token) and an mcp_toolset entry in tools with the same name, plus the mcp-client-2025-11-20 beta header.

ChatGPT

Connectors added in the ChatGPT app sign in with OAuth, which the OG Manager MCP server does not offer yet. Use the OpenAI API, which takes the key as a header.

OpenAI Responses API (remote MCP tool)
curl https://api.openai.com/v1/responses \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "<your model>",
    "input": "Which campaigns spent the most last week?",
    "tools": [{
      "type": "mcp",
      "server_label": "og-manager",
      "server_url": "https://mcp.ogmanager.com",
      "headers": { "Authorization": "Bearer eos_live_<id>_<secret>" },
      "require_approval": "always"
    }]
  }'

require_approval: "always" makes your application confirm each tool call. The OpenAI Agents SDK takes the same URL and header for a streamable HTTP MCP server.

Gemini

Gemini CLI connects to remote MCP servers from its settings file.

Gemini CLI: ~/.gemini/settings.json
{
  "mcpServers": {
    "og-manager": {
      "httpUrl": "https://mcp.ogmanager.com",
      "headers": { "Authorization": "Bearer eos_live_<id>_<secret>" }
    }
  }
}

httpUrl selects the streamable HTTP transport. Restart Gemini CLI and run /mcp to see the og-manager tools.

GitHub Copilot

Copilot agent mode in Visual Studio Code reads MCP servers from .vscode/mcp.json.

.vscode/mcp.json
{
  "inputs": [
    { "type": "promptString", "id": "ogm-key", "description": "OG Manager API key", "password": true }
  ],
  "servers": {
    "og-manager": {
      "type": "http",
      "url": "https://mcp.ogmanager.com",
      "headers": { "Authorization": "Bearer ${input:ogm-key}" }
    }
  }
}

VS Code asks for the key the first time the server starts and stores it securely, so the file holds no secret and can be shared. Start the server from the file or the MCP servers list, then pick its tools in agent mode.

Other clients

Any client that speaks streamable HTTP and can send a header works, with the same URL and key.

URL and headers (Cursor and most desktop clients)
{
  "mcpServers": {
    "og-manager": {
      "url": "https://mcp.ogmanager.com",
      "headers": { "Authorization": "Bearer eos_live_<id>_<secret>" }
    }
  }
}
Check a key with curl
curl -i https://mcp.ogmanager.com \
  -H "Authorization: Bearer eos_live_<id>_<secret>" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"curl","version":"1"}}}'

A working key answers 200 with the server name og-manager and an Mcp-Session-Id header, which clients send back on every later request.

Tools

Read tools return your data within the key's scopes. Write tools never change anything themselves: each call files a request in your Approvals inbox.

Read tools
ToolReturns
search_accountsConnected ad accounts, pages and properties, by platform or name
get_campaignsCampaigns with status, objective and budget
get_metricsSpend, impressions, clicks, conversions, revenue, CTR, CPC, CPA and ROAS for a date range
analyze_performanceA period compared with the one before, with the campaigns that moved the numbers
get_instagram_postsRecent Instagram posts with engagement
search_customersCRM contacts by name, phone or email (personal data follows your permissions)
get_appointmentsAppointments for a date range and branch
Write tools
ToolFiles a request to
pause_campaignAsk to pause a campaign
enable_campaignAsk to restart a paused campaign
update_budgetAsk for a new daily budget
create_campaignAsk for a new campaign (created paused)
publish_postAsk to publish a post on a connected page or Instagram account

A write request runs only after someone with the right role approves it, and is then verified on the platform and logged. Policies and approval rules apply exactly as in the app; nothing an outside assistant does bypasses billing, permissions, consent or audit. See AI and approvals.

Troubleshooting

Common MCP errors
AnswerWhyWhat to do
401No key, or the key is revoked, expired or mistypedSend Authorization: Bearer <full key>; create a new key if needed
403The key lacks the platform:read scope, or its creator's role cannot use the MCP serverCreate a key with platform:read and ai:read
402The workspace plan does not include the API (Free)API, webhooks and MCP are included on Starter and above
404 Session not foundThe session ended (after 24 hours, or the client sent DELETE)Reconnect: the client starts a new session with initialize
405 on GETThe client asked for a server-sent event streamUse the streamable HTTP transport (POST); the server answers every request with JSON