GTM MCP Server
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., "@GTM MCP ServerFind VP Sales at Series A cybersecurity companies in CA and add to HubSpot"
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.
GTM MCP Server
A single Model Context Protocol (MCP) server that wires together the tools a Go-To-Market team actually uses HubSpot, Clay, Apollo, Slack, and email so any MCP-compatible AI client (Claude Desktop, Claude Code, Cursor, etc.) can prospect, enrich, update your CRM, and fire off notifications without leaving the conversation.
Why this exists
Most AI agents can answer questions.
Very few can execute GTM workflows.
Revenue teams already run on systems like HubSpot, Apollo, Clay, Slack, and email. The problem is that those systems are usually exposed to humans through separate interfaces, not to agents through a shared execution layer.
This project exposes those GTM systems through one MCP server so an AI agent can move across prospecting, enrichment, CRM updates, notifications, and email activity from a single prompt.
Instead of switching between five tools, an agent can:
Search Apollo for target prospects
Enrich people or companies with Clay
Create contacts and deals in HubSpot
Notify the team in Slack
Draft or log outbound email activity
The goal is not to replace GTM systems.
The goal is to make them agent-accessible.
Example workflow
Prompt
Find VP Sales leaders at Series A cybersecurity companies in California and add qualified prospects to HubSpot.
Execution
Apollo prospect search
-> Clay person/company enrichment
-> HubSpot contact creation
-> Slack lead notification
-> Email draft or activity logResult
A multi-step GTM workflow executed from a single prompt, with each underlying action routed to the right system.
Architecture
Claude / Cursor / MCP Client
|
v
GTM MCP Server
|
+----------+----------+----------+
| | | |
v v v v
HubSpot Apollo Clay Slack
| |
v v
Email NotificationsEach integration lives in its own tool file. index.js imports those tool modules, flattens them into one list, and registers everything on a single stdio MCP server.
Core features
One MCP endpoint for the core GTM stack
14 tools across CRM, enrichment, prospecting, notifications, and email
Demo mode for credential-free review and portfolio walkthroughs
Modular tool files so new integrations are easy to add
Environment-based credentials with no secrets committed
Stdio transport for compatibility with MCP clients like Claude Desktop, Claude Code, and Cursor
Tools
HubSpot (5 tools)
Tool | What it does |
| Create a new contact with email, name, company, title |
| Update any property on an existing contact by ID |
| Create a deal and optionally associate it to a contact |
| Full-text search across company name and domain |
| Fetch emails, calls, notes, and meetings for a contact |
Clay (3 tools)
Tool | What it does |
| Enrich a person by email or LinkedIn — returns title, socials, contact info |
| Enrich a company by domain — returns firmographics, tech stack, headcount |
| Find companies similar to a seed domain, with optional filters |
Clay workspaces can expose enrichment through Enterprise API access, webhooks, or automation-backed routes. The Clay client uses sensible default paths, and .env.example includes path overrides so the same MCP tool surface can point at the routes your workspace actually supports.
Apollo (2 tools)
Tool | What it does |
| Search Apollo's database by title, industry, headcount, location |
| Match a contact by email or LinkedIn and return enriched data |
Slack (2 tools)
Tool | What it does |
| Post a plain-text alert to any channel |
| Post a rich Block Kit card with lead details to a channel |
Email (2 tools)
Tool | What it does |
| Send an outbound email via SMTP (plain text or HTML) |
| Log a sent/received email — optionally writes an engagement to HubSpot |
Design decisions
Why one MCP server?
Instead of running separate HubSpot, Apollo, Clay, Slack, and email MCP servers, this project exposes them through one GTM-oriented server.
That keeps configuration simple and makes cross-system workflows feel natural. A single agent session can search, enrich, create CRM records, notify the team, and log activity without juggling multiple MCP connections.
Why modular tool files?
Each provider has its own file under tools/. That keeps the repo easy to scan:
tools/hubspot.js
tools/clay.js
tools/apollo.js
tools/slack.js
tools/email.jsAdding a new integration should mean adding one file and one import, not rewriting the server.
Why demo mode?
Most reviewers will not have live HubSpot, Clay, Apollo, Slack, and SMTP credentials.
DEMO_MODE=true lets every tool return realistic mock payloads locally, so someone reviewing the repo can exercise the whole MCP surface without external accounts or paid API access.
Demo mode
Set DEMO_MODE=true to run the server without live vendor credentials.
DEMO_MODE=true npm testDemo mode is safe for portfolio walkthroughs: create/update actions return plausible IDs and summaries, notifications return Slack-like timestamps, and outbound email returns a nodemailer-style delivery result.
Setup
1. Clone and install
git clone https://github.com/your-username/gtm-mcp-server.git
cd gtm-mcp-server
npm install2. Configure environment variables
Copy the example file and fill in your credentials:
cp .env.example .envVariable | Where to get it |
| Set to |
| HubSpot → Settings → Integrations → Private Apps → Access token |
| Clay → Settings → API |
| Optional Clay Enterprise API or webhook base URL |
| Optional person enrichment path override |
| Optional company enrichment path override |
| Optional lookalike route override |
| Apollo → Settings → Integrations → API Keys |
| api.slack.com/apps → OAuth & Permissions → Bot Token ( |
| Your mail provider (e.g. |
| Your sending address |
| App password (not your account password) |
Gmail note: Enable 2FA and create an App Password — regular passwords won't work with SMTP.
3. Connect to Claude Desktop
Add the following to your claude_desktop_config.json
(macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"gtm": {
"command": "node",
"args": ["/absolute/path/to/gtm-mcp-server/index.js"],
"env": {
"DEMO_MODE": "false",
"HUBSPOT_ACCESS_TOKEN": "your_private_app_access_token",
"CLAY_API_KEY": "your_token",
"CLAY_BASE_URL": "https://api.clay.com/v1",
"APOLLO_API_KEY": "your_token",
"SLACK_BOT_TOKEN": "xoxb-your-token",
"SMTP_HOST": "smtp.gmail.com",
"SMTP_PORT": "587",
"SMTP_USER": "you@yourdomain.com",
"SMTP_PASS": "your_app_password"
}
}
}
}Restart Claude Desktop. The 14 tools will appear automatically.
4. Connect to Claude Code
claude mcp add gtm node /absolute/path/to/gtm-mcp-server/index.js \
-e HUBSPOT_ACCESS_TOKEN=your_private_app_access_token \
-e SLACK_BOT_TOKEN=xoxb-your-token
# add remaining env varsProject structure
gtm-mcp-server/
├── tools/
│ ├── hubspot.js # CRM — contacts, deals, companies, activity
│ ├── clay.js # Enrichment — person, company, lookalikes
│ ├── apollo.js # Prospecting — search and contact lookup
│ ├── slack.js # Notifications — alerts and lead cards
│ ├── email.js # Email — outbound send and activity logging
│ └── demo.js # Shared demo-mode helpers
├── index.js # Registers all tools, starts MCP stdio server
├── .env.example # Environment variable template
└── package.jsonEach tool file exports an array of { name, description, inputSchema, handler } objects. index.js flattens them into a single MCP server — adding a new integration means creating one file and one import.
Development
# Verify the MCP server starts and registers all tools
npm test
# Verify demo-mode tool calls without credentials
DEMO_MODE=true npm test
# Run with file watching
npm run dev
# Run once
npm startThe server communicates over stdio (standard MCP transport), so normal logs must not write to stdout. Startup messages, errors, and structured activity logs are written to stderr.
Security notes
Credentials are read exclusively from environment variables — no secrets belong in the codebase.
HubSpot uses private app access-token framing (
HUBSPOT_ACCESS_TOKEN), not deprecated API-key naming..envis gitignored. Only.env.example(with placeholder values) is committed.Input validation is handled by the MCP SDK's schema layer before any handler runs.
Demo mode short-circuits all provider calls before credentials are read.
SMTP uses nodemailer v8+ which patches known SMTP injection vulnerabilities.
Tool responses intentionally return compact summaries instead of raw provider payloads where possible.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dylanottinger/gtm-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server