@feedmob/rtb-house-reporting
v0.0.2
Published
MCP server for RTB House API
Readme
RTB House Reporting MCP Server
Node.js server implementing Model Context Protocol (MCP) for RTB House API.
Features
This server provides the following tools:
get_rtb_house_data: Fetch reporting data from RTB House API for a specific date range.- Input Parameters:
dateFrom(string, required): Start date for the report inYYYY-MM-DDformat.dateTo(string, required): End date for the report inYYYY-MM-DDformat.app(string, optional): Optional app/advertiser name to filter results. If not provided, returns data for all advertisers.maxRetries(integer, optional): Maximum number of retry attempts (default: 3).
- Output: Returns a mapping of app/advertiser name to data array as JSON. Each data item includes fields such as
day,subcampaign,impsCount,clicksCount,campaignCost, etc.
- Input Parameters:
Setup
Environment Variables: Before running the server, you need to set the following environment variables:
export RTB_HOUSE_USER='your_rtbhouse_username' export RTB_HOUSE_PASSWORD='your_rtbhouse_password'Required Environment Variables:
RTB_HOUSE_USER: RTB House API usernameRTB_HOUSE_PASSWORD: RTB House API password
Usage
Start the server after setting the required environment variables:
node dist/index.jsThe server exposes the following tool:
- get_rtb_house_data
dateFrom(string, required): Start date inYYYY-MM-DDformatdateTo(string, required): End date inYYYY-MM-DDformatapp(string, optional): App/advertiser name (case-insensitive)maxRetries(integer, optional): Maximum retry attempts (default: 3)- Returns:
{ [appName]: [ { day, subcampaign, impsCount, clicksCount, campaignCost, ... } ] }
Example request:
{ "dateFrom": "2025-06-10", "dateTo": "2025-06-15" }Example response:
{ "US_ZipRecruiter_App": [ { "subcampaign": "campaign_name", "day": "2025-06-14", "impsCount": 138733, "clicksCount": 4946, "campaignCost": 378.49 }, ... ] }- get_rtb_house_data
Development
- Clone the repository.
- Navigate to the
src/rtb-house-reportingdirectory. - Install dependencies:
npm install - Set the required environment variables (
RTB_HOUSE_USER,RTB_HOUSE_PASSWORD). - Build the project:
npm run build - Run the server directly:
node dist/index.js
License
MIT
