Skip to content

MCP Server Overview

CampaignStack exposes its entire platform through the Model Context Protocol (MCP). The MCP server provides 90+ tools across 15 domains, giving AI agents full programmatic access to campaigns, leads, workflows, content, and more.

AI Agent / MCP Client
MCP Server (port 3002)
├── Auth: API key validation + scope check
├── Validation: Zod .strict() input schemas
└── Backend: Convex (serverless)
└── Runner (LinkedIn automation)

The server supports two transports:

  • stdio — local development, no authentication
  • HTTP — production, requires API key
DomainToolsDescription
Campaigns4Create, list, get, update campaigns
Leads4Search, get, import, update lead metadata
Lead Lists8Create, query, add/remove leads, CRUD
Workflows4Trigger and manage automation sequences
Workflow Nodes4Complete, fail, store conversations, escalate
Workflow Execution4Stats, leads at node, activity, retry
Workflow Review6Human-in-the-loop approve/reject/edit
ICPs3Ideal Customer Profile scoring
Content16Post lifecycle, voice, analytics, calendar
Craft5AI-powered message, note, comment, followup writing
Competitors6Company/profile monitoring
Signals4Lead score breakdown, signal weights
Workspace8Members, invitations, settings
Automations3List, toggle, job history
LinkedIn Accounts2List and get linked accounts
Campaign Generation7Scrape, synthesize, auto-select, generate, finalize
Other4Enrichment, search, sourcing diagnostics, post engagement
  • JSON-only responses — all tool output is structured JSON, never markdown
  • Cross-referenced errors — error messages suggest which tool to call next
  • Strict validation — Zod .strict() rejects unknown input fields
  • MCP annotations — every tool declares readOnlyHint, destructiveHint, idempotentHint
  • Actionable descriptions — tool descriptions reference related tools to help agents chain operations
MethodPathAuthPurpose
GET/healthNoneServer status, version, tool list
POST/mcpBearerMCP JSON-RPC messages
GET/mcpBearerSSE stream for sessions
DELETE/mcpBearerClose session