MCP Server

Use distribute from Claude Code, Claude Desktop, Cursor, or any MCP-compatible client.

What is MCP?

The Model Context Protocol (MCP) is an open standard that allows AI assistants to connect to external tools. distribute provides an MCP server with 35 tools for managing your entire distribution pipeline.

Quick Install

claude mcp add distribute -- npx @distribute/mcp --api-key=YOUR_KEY

See Installation for Claude Desktop, Cursor, and other clients.

How It Works

The @distribute/mcp package runs as a local stdio server. Your AI client communicates with it via the MCP protocol, and it calls the distribute API on your behalf.

  1. Install via npx @distribute/mcp with your API key
  2. Your AI client discovers 35 available tools
  3. Describe what you want in natural language
  4. The AI translates to the appropriate tool calls

Example Prompts

"Create a brand for acme.com"
"Launch a cold email campaign targeting CTOs at tech startups, $10/day budget"
"Show me the stats for my latest campaign"
"Generate a press kit for my brand"
"What's my current billing balance?"
"List all journalists discovered for acme.com"

Tool Categories

CategoryToolsDescription
Identity1Verify connection and API key
Brands4Create and manage brand profiles
Features6Browse automation types and stats
Campaigns5Create, stop, and monitor campaigns
Workflows4Inspect workflow details and key status
Leads1List discovered leads
Emails1View generated emails
Outlets2Media outlets discovered for your brand
Journalists2Journalists discovered for your brand
Articles1Articles mentioning your brand
Press Kits4Generate and manage press kits
Billing3Balance, account, transactions
Costs3Cost breakdown and delivery stats

See the full Tools Reference for detailed descriptions of each tool.

Authentication

The MCP server requires your API key, provided via CLI flag or environment variable:

# CLI flag (recommended)
npx @distribute/mcp --api-key=dist_YOUR_KEY

# Environment variable
DISTRIBUTE_API_KEY=dist_YOUR_KEY npx @distribute/mcp

Get your API key at dashboard.distribute.you/api-keys.