@feedmob/ironsource-reporting
v0.0.3
Published
MCP server for IronSource API
Downloads
195
Readme
IronSource Reporting MCP Server
Node.js server implementing Model Context Protocol (MCP) for IronSource Reporting API for advertisers.
Features
This server provides the following tool:
get_advertiser_report_from_ironsource: Retrieves campaign spending data from IronSource Reporting API for advertisers.- Input Parameters:
startDate(string, required): The start date for the report inYYYY-MM-DDformat.endDate(string, required): The end date for the report inYYYY-MM-DDformat.metrics(string, optional): Comma-separated list of metrics to include (default: 'impressions,clicks,completions,installs,spend').breakdowns(string, optional): Comma-separated list of breakdowns (default: 'day,campaign').format(string, optional): Format of the report data ('json' or 'csv'). Default is 'json'.count(number, optional): Number of records to return (default: 10000, max: 250000).campaignId(string, optional): Filter by comma-separated list of campaign IDs.bundleId(string, optional): Filter by comma-separated list of bundle IDs.creativeId(string, optional): Filter by comma-separated list of creative IDs.country(string, optional): Filter by comma-separated list of countries (ISO 3166-2).os(string, optional): Filter by operating system (ios or android).deviceType(string, optional): Filter by device type (phone or tablet).adUnit(string, optional): Filter by ad unit type (e.g., 'rewardedVideo,interstitial').order(string, optional): Order results by breakdown/metric.direction(string, optional): Order direction ('asc' or 'desc'). Default is 'asc'.
- Output: Returns the report data in the specified format (JSON or CSV).
- Input Parameters:
Setup
Environment Variables: Before running the server, you need to set the following environment variables:
export IRONSOURCE_SECRET_KEY='your_ironsource_secret_key' export IRONSOURCE_REFRESH_TOKEN='your_ironsource_refresh_token'
Usage with Claude Desktop
Make sure you have installed and updated to the latest version of Claude for Desktop.
Open the Claude for Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
- macOS:
Add the IronSource MCP server to the
mcpServersconfiguration section:{ "mcpServers": { "ironsource": { "command": "npx", "args": [ "-y", "@feedmob/ironsource-reporting" ] "env": { "IRONSOURCE_SECRET_KEY": "your_ironsource_secret_key", "IRONSOURCE_REFRESH_TOKEN": "your_ironsource_refresh_token" } } } }
Development
- Clone the repository.
- Navigate to the
src/ironsource-reportingdirectory. - Install dependencies:
npm install - Set the required environment variables (
IRONSOURCE_SECRET_KEYandIRONSOURCE_REFRESH_TOKEN). - Build the project:
npm run build - Run the server directly:
node dist/index.js
License
MIT
