Skip to content

MCP Server Overview

CampaignStack exposes its entire platform through the Model Context Protocol (MCP). The MCP server provides 55+ tools across 9 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
Leads3Search, get, import leads
Lead Lists4Manage lead collections
Workflows4Trigger and manage automation sequences
ICPs3Ideal Customer Profile scoring
Content14LinkedIn post lifecycle (draft to published)
Craft4AI-powered message and note writing
Competitors6Company/profile monitoring
Workspace7Generation, scraping, diagnostics
Other6Enrichment, search, workflow nodes
  • 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