stackadapt-mcp
An MCP server for querying StackAdapt's GraphQL API. Gives AI assistants like Claude direct access to your campaign data, delivery metrics, advertisers, and more.
README
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 |
List campaigns with optional filters (campaign group, advertiser) |
get_campaign |
Get detailed campaign info — targeting, budget, flight dates, ads |
get_campaign_group |
Get campaign group details — flights, budget, frequency caps, child campaigns |
campaign_delivery |
Pull performance metrics per campaign (impressions, clicks, spend, CTR, ATOS, engagements) with date range and granularity |
campaign_group_delivery |
Same metrics aggregated at the campaign group level |
list_advertisers |
List advertisers on the account |
list_campaign_groups |
List campaign groups with advertiser info |
graphql_query |
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 engagements- Delivery payloads are GraphQL UNION types (
Outcome | Progress) — large queries may return aProgressresponse with a job ID; retry after a few seconds - Granularity options:
DAILY,WEEKLY,MONTHLY,TOTAL
Development
git clone https://github.com/aymanshaikh/stackadapt-mcp.git
cd stackadapt-mcp
npm install
npm run build
To test locally, set STACKADAPT_API_KEY and run:
STACKADAPT_API_KEY=your-key node dist/index.js
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.