Back to blog
|4 min read

Connect Any AI Agent to Your Marketing Data via MCP

A
Afzaal Ahmad Zeeshan

Founder, The Mark Platform

You built a product. You set up your positioning, personas, and GTM plan on The Mark Platform. Now you want your AI tools to actually use that data — draft cold emails grounded in your real persona pain points, log execution activities, check your Stripe revenue, or diagnose your marketing funnel. All from your terminal or IDE.

That is exactly what MCP (Model Context Protocol) enables.

What is MCP?

MCP is the open standard — introduced by Anthropic and now adopted by OpenAI, Google, and Microsoft — that lets AI agents connect to external tools and data. Think of it as a USB port for AI: any compliant agent can plug into any compliant server.

The Mark Platform ships with a full MCP server. Over 95 tools covering your entire marketing journey: products, research, positioning, personas, offers, GTM plans, funnels, execution logging, campaigns, leads, integrations, coaching, and more.

Which Platforms Work?

Any MCP client that supports Streamable HTTP transport and OAuth 2.1:

Platform Transport Auth Method Status
Claude Code (CLI) Streamable HTTP OAuth 2.1 + PKCE Fully supported
Cursor Streamable HTTP OAuth 2.1 (DCR) Fully supported
ChatGPT Streamable HTTP OAuth 2.1 (DCR/CIMD) Fully supported
Windsurf Streamable HTTP OAuth 2.1 / API key Fully supported
Cline Streamable HTTP OAuth 2.1 / API key Fully supported
VS Code + Copilot Streamable HTTP OAuth 2.1 Fully supported
Claude Desktop stdio API key (env var) Fully supported

How Authentication Works

When you connect for the first time, the flow is:

  1. Your AI tool discovers our OAuth metadata at /.well-known/oauth-authorization-server
  2. It opens your browser to approve the connection
  3. You see an approval page — enter the 4-digit verification code from your terminal
  4. The platform generates a secure API key and sends it back to your AI tool
  5. All subsequent requests use this key automatically

The verification code ensures that the person approving in the browser is the same person who initiated the connection in the terminal. No one else on your network can hijack the session.

You can revoke any MCP key at any time from Settings > API Keys.

Setting Up Claude Code

The fastest way to get started:

# Add The Mark Platform as an MCP server
claude mcp add themarkplatform https://themarkplatform.com/mcp

# Connect (opens browser for approval)
claude
/mcp

After approving in the browser, you are connected. Try:

> What should I work on today?
> Draft a cold email for my persona
> Show my Stripe revenue this month
> Log that I sent 5 outreach emails today

Setting Up Cursor / Windsurf

Add to your MCP configuration (Settings > MCP Servers):

{
  "themarkplatform": {
    "url": "https://themarkplatform.com/mcp"
  }
}

The IDE will handle OAuth automatically — a browser window opens, you approve, and you are connected.

Setting Up ChatGPT

ChatGPT supports remote MCP servers via Streamable HTTP. Add The Mark Platform as a plugin or MCP connection in ChatGPT settings using:

  • URL: https://themarkplatform.com/mcp
  • Transport: Streamable HTTP
  • Auth: OAuth 2.1 (automatic)

Manual API Key (Any Platform)

If your platform does not support OAuth, you can use a manual API key:

  1. Go to Settings > API Keys
  2. Click Generate API Key
  3. Copy the key (shown once)
  4. Configure your MCP client with the x-api-key header or Authorization: Bearer <key> header

What You Can Do

Once connected, your AI agent has access to your full marketing stack:

  • Journey: Create products, log research interviews, generate positioning, build personas, craft offers, plan GTM strategy, design funnels, track execution
  • Campaigns: Draft ad copy, create email sequences, set up A/B tests
  • Integrations: Query Stripe revenue, check GA4 traffic, send Slack messages, publish WordPress posts, schedule Calendly links
  • Coaching: Get weekly plans, diagnose bottlenecks, track goals, receive momentum nudges
  • Content: Manage your content calendar, generate social posts, publish across platforms

Every tool uses your actual data — your real product names, persona pain points, positioning statements, and offer details. No generic placeholders.

Security

  • PKCE required: All OAuth flows use S256 code challenges
  • Localhost-only redirects: OAuth callbacks only go to 127.0.0.1 or localhost
  • 4-digit verification: Browser approval requires a code from your terminal
  • 3-attempt lockout: Wrong code 3 times locks the session
  • Revocable keys: Every MCP session generates a named API key you can revoke anytime
  • Per-user scoping: All data queries are scoped to your account — no cross-user leaks

The Developer-Founder Workflow

The best workflow we have seen from early users:

  1. Morning: Open your terminal, run Claude Code with MCP connected. Ask "What should I work on today?" — get your coaching plan.
  2. During the day: Draft emails, generate content, log activities — all from your IDE or terminal. Never leave your code editor.
  3. End of day: Ask "How did I do today?" — get your momentum profile and streak count.

Your marketing co-pilot lives where you already work. No tab switching. No dashboard refreshing. Just ask and execute.


Ready to connect? Sign up and run /mcp from your AI tool.

Ready to start selling?

The Mark Platform guides developer-founders from product idea to first 100 customers. No marketing degree required.

Get started free
A

Written by

Afzaal Ahmad Zeeshan

Founder, The Mark Platform

Building developer tools for over a decade. Writing about the intersection of engineering and go-to-market strategy.