Skip to content

Quick Start

CampaignStack’s MCP server lives at one address:

https://mcp.campaignstack.io/mcp

Most assistants only need that address: you paste it, sign in to CampaignStack in your browser, and you are connected. An API key is the second route, for tools that cannot sign in.

  1. Add the connector address and sign in

    Open Customize > Connectors > + Add > Add custom connector (or Settings > Connectors in older versions). Paste https://mcp.campaignstack.io/mcp as the URL. Continue with Sign in now, choose Register automatically if asked for an OAuth client, and finish adding the connector. Approve the connection on the CampaignStack page, then enable CampaignStack in your chat’s connector menu.

    The Claude guide has every step.

  2. Verify the connection

    Ask your assistant to call the campaignstack_whoami tool. It returns what the connection may do and the workspaces you belong to:

    {
    "keyType": "oauth",
    "scopes": ["campaigns:read", "campaigns:write", "leads:read"],
    "user": { "id": "...", "name": "...", "email": "..." },
    "workspaces": [
    { "workspaceId": "abc123", "name": "My Agency", "role": "owner" }
    ]
    }
  3. Make your first real call

    Ask your assistant to list your campaigns. It calls campaignstack_get_campaigns. With one workspace it needs nothing else; with several, it passes the workspaceId from whoami:

    {
    "filters": { "workspaceId": "abc123" },
    "include": { "icp": {} }
    }

    Most get_* tools share this shape: ids to fetch specific records, filters to list, and include to pull related data in the same call. Pass a returned campaign ID as filters.campaignId to campaignstack_get_workflows to see its workflows.

Use a key for a script, a server, or an assistant you want limited to chosen permissions. There are two kinds:

KeyStarts withWhat it isCreate it in
Personal keycsu_You, across every workspace you belong toSettings > Personal API keys
Workspace keycs_One workspace only. Hand it to a teammate or a script that should stay inside that workspaceWorkspace settings > API keys
  1. Create the key

    Open the page for the kind you want, click Create Key, and pick its scopes.

  2. Copy a ready-made config

    The dialog shows the key once, and under it three configs that already contain it: the Authorization header value, a Claude Code command and a JSON config. Click Copy on the one your client takes and paste it there. Nothing to edit.

  3. Or send it yourself

    The key goes in the Authorization header as a Bearer token. To test from a terminal, replace <paste your key>, angle brackets included, with your key:

    Terminal window
    curl -X POST https://mcp.campaignstack.io/mcp \
    -H "Content-Type: application/json" \
    -H "Accept: application/json, text/event-stream" \
    -H "Authorization: Bearer <paste your key>" \
    -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"curl","version":"1.0"}}}'

    Later requests must include the mcp-session-id header that this response returns. curl https://mcp.campaignstack.io/health needs no key and shows whether the server is up.