stackadapt-mcp
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., "@stackadapt-mcpshow me campaign delivery for the past week"
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.
stackadapt-mcp
An MCP (Model Context Protocol) server for querying StackAdapt's GraphQL API. Gives AI assistants like Claude direct access to your campaign data, delivery metrics, advertisers, and more.
Tools
Tool | Description |
| List campaigns with optional filters (campaign group, advertiser) |
| Get detailed campaign info — targeting, budget, flight dates, ads |
| Get campaign group details — flights, budget, frequency caps, child campaigns |
| Pull performance metrics per campaign (impressions, clicks, spend, CTR, ATOS, engagements) with date range and granularity |
| Same metrics aggregated at the campaign group level |
| List advertisers on the account |
| List campaign groups with advertiser info |
| Execute any custom GraphQL query against the StackAdapt API |
Setup
Get your API key
StackAdapt API key from: StackAdapt Platform → Settings → API.
Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"stackadapt": {
"command": "npx",
"args": ["-y", "stackadapt-mcp"],
"env": {
"STACKADAPT_API_KEY": "your-api-key-here"
}
}
}
}Claude Code
Add to your project's .mcp.json:
{
"mcpServers": {
"stackadapt": {
"command": "npx",
"args": ["-y", "stackadapt-mcp"],
"env": {
"STACKADAPT_API_KEY": "${STACKADAPT_API_KEY}"
}
}
}
}Then set the env var in your shell: export STACKADAPT_API_KEY=your-api-key-here
Data notes
A few things to know about StackAdapt's API:
cost,ecpc,ecpm,ecpeare returned as strings — parse them as floatsctris already a percentage value (0.214 means 0.214%) — don't multiply by 100ecpereturns"0"for periods with zero engagementsDelivery payloads are GraphQL UNION types (
Outcome | Progress) — large queries may return aProgressresponse with a job ID; retry after a few secondsGranularity options:
DAILY,WEEKLY,MONTHLY,TOTAL
Development
git clone https://github.com/aymanshaikh/stackadapt-mcp.git
cd stackadapt-mcp
npm install
npm run buildTo test locally, set STACKADAPT_API_KEY and run:
STACKADAPT_API_KEY=your-key node dist/index.jsLicense
MIT
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.
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/aymanshaikh/stackadapt-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server