Exposes Adobe Marketo REST API operations as tools, enabling management of leads, activities, smart campaigns, and email assets for OpenAI and other MCP clients.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Marketo MCP ServerFind the lead alex.jones@example.com and show their recent activities"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Marketo MCP Server
An MCP (Model Context Protocol) server that exposes Adobe Marketo REST API operations as tools. Built with FastMCP, it allows AI assistants and MCP clients to interact with your Marketo instance.
Prerequisites
Python 3.10+
A Marketo instance with API access (client ID, client secret, and REST API base URL)
Setup
1. Clone the repository
git clone <repo-url>
cd MarketoMCP2. Create a virtual environment and install dependencies
python -m venv venv
source venv/bin/activate # macOS/Linux
# venv\Scripts\activate # Windows
pip install -r requirements.txt3. Configure environment variables
Copy the template and fill in your Marketo API credentials:
cp .env_template .envEdit .env with your values:
MARKETO_CLIENT_ID="your-client-id"
MARKETO_CLIENT_SECRET="your-client-secret"
MARKETO_BASE_URL="https://your-instance.mktorest.com"
MCP_API_KEY="your-secret-api-key"You can find these in Marketo Admin > LaunchPoint (for client ID/secret) and Admin > Web Services (for the REST API base URL).
4. Start the server
There are two server scripts to choose from:
mcp_server.py — No authentication (for Claude Desktop)
python mcp_server.pyUse this when connecting from Claude Desktop, which only supports OAuth 2.0 authentication for custom connectors. This server has no auth layer, so it should only be exposed on trusted networks or behind a reverse proxy that handles authentication.
mcp_server_auth.py — Bearer token authentication (for OpenAI and other clients)
python mcp_server_auth.pyUse this when connecting from OpenAI or any MCP client that supports bearer token authentication. Clients must include the MCP_API_KEY value from your .env file in every request:
Authorization: Bearer <your-MCP_API_KEY-value>Add the key to your .env:
MCP_API_KEY="your-secret-api-key"Why two servers? Claude Desktop's custom connector only supports OAuth 2.0 (Client ID / Client Secret). It has no way to send a static bearer token, so
mcp_server_auth.pycannot be used with Claude Desktop. For Claude Desktop, usemcp_server.pyinstead.
Both servers start on http://0.0.0.0:8000 using the Streamable HTTP transport. The MCP endpoint is available at http://localhost:8000/mcp.
Available Tools
Activities
Tool | Description | Parameters |
| Get all available activity types | — |
| Get recent activities for a lead by ID |
|
| Get recent activities for a lead by email |
|
| Get data value changes for a lead |
|
Leads
Tool | Description | Parameters |
| Look up a lead by email address |
|
| Get lead field metadata and schema | — |
Emails
Tool | Description | Parameters |
| Get an email asset by ID |
|
| Get an email asset by name |
|
| Browse email assets with filtering |
|
| Get content sections of an email |
|
| Get fields enabled for Email CC | — |
| Get a live preview of an email |
|
Channels
Tool | Description | Parameters |
| Get available program channels |
|
Folders
Tool | Description | Parameters |
| Get a folder by name |
|
| Browse folders |
|
Smart Campaigns
Tool | Description | Parameters |
| Get a smart campaign by ID |
|
| Get a smart campaign by name |
|
| Browse smart campaigns with filtering |
|
| Create a new smart campaign |
|
| Update an existing smart campaign |
|
| Clone a smart campaign |
|
| Schedule a batch campaign to run |
|
| Trigger a campaign for specific leads |
|
| Activate a smart campaign |
|
| Deactivate a smart campaign |
|
| Delete a smart campaign |
|
Programs
Tool | Description | Parameters |
| Get a program by ID |
|
| Get a program by name |
|
| Browse programs with filtering |
|
| Create a new program |
|
| Update an existing program |
|
| Clone a program |
|
| Approve an email program |
|
| Unapprove an email program |
|
| Delete a program and all child contents |
|
Program Members
Tool | Description | Parameters |
| Get program member field metadata | — |
| Query program members with filtering |
|
Tokens
Tool | Description | Parameters |
| Get tokens for a folder |
|
| Create a new token |
|
| Update an existing token |
|
| Delete a token |
|
Parameters marked with
?are optional.
Testing
Two test suites are provided — one tests the Marketo functions directly, the other tests through the MCP server protocol.
Test the underlying functions directly
This calls marketo_functions.py without the MCP layer. Requires a valid .env configuration.
python test_marketo_functions.pyTest via the MCP server
This connects to the running MCP server as an MCP client. Start the server first, then run the tests in a separate terminal.
# Terminal 1 - start the server
python mcp_server.py
# Terminal 2 - run the tests
python test_mcp_server.pyTest modes
Both test scripts offer three modes when run:
Read-only tests — Safe, no modifications to your Marketo instance. Browses emails, campaigns, programs, folders, and looks up leads.
Write-only tests — Creates, updates, clones, and deletes test assets (prefixed with
MCPTEST_). Prompts for confirmation before destructive operations. Offers cleanup at the end.Full tests — Runs read-only tests followed by write tests.
Test configuration
Test inputs (email addresses, folder IDs, campaign names, etc.) are saved to test_config.json after the first run so you don't have to re-enter them. Delete or edit this file to reset test inputs.
Project Structure
MarketoMCP/
├── mcp_server.py # MCP server — no auth (for Claude Desktop)
├── mcp_server_auth.py # MCP server — bearer token auth (for OpenAI and other clients)
├── marketo_functions.py # Marketo REST API wrapper functions
├── test_mcp_server.py # MCP protocol-level test suite
├── test_marketo_functions.py # Direct function test suite
├── test_config.json # Saved test inputs (auto-generated)
├── requirements.txt # Python dependencies
├── .env_template # Environment variable template
└── .env # Your credentials (not committed)This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.