0.0.4 • Published 9 months ago
@feedmob/mintegral-reporting v0.0.4
Mintegral Reporting MCP Server
Node.js server implementing Model Context Protocol (MCP) for Mintegral Reporting API.
Features
This server provides the following tool:
get_mintegral_performance_report: Retrieves performance data from Mintegral Reporting API.- Input Parameters:
start_date(string, required): Start date for the report inYYYY-MM-DDformat.end_date(string, required): End date for the report inYYYY-MM-DDformat.utc(string, optional): Timezone (default: '+8').per_page(number, optional): Number of results per page (max: 5000). Default is 50.page(number, optional): Page number. Default is 1.dimension(string, optional): Data dimension (e.g., 'location', 'sub_id', 'creative').uuid(string, optional): Filter by uuid.campaign_id(number, optional): Filter by campaign_id.package_name(string, optional): Filter by android bundle id or ios app store id.not_empty_field(string, optional): Fields that can't be empty (comma-separated: 'click', 'install', 'impression', 'spend').
- Output: Returns the report data in JSON format.
- Input Parameters:
API Limitations
- Date range cannot exceed 8 days for a single request
- The per_page parameter cannot exceed 5000
Setup
Environment Variables: Before running the server, you need to set the following environment variables:
export MINTEGRAL_ACCESS_KEY='your_mintegral_access_key' export MINTEGRAL_API_KEY='your_mintegral_api_key'
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 Mintegral MCP server to the
mcpServersconfiguration section:{ "mcpServers": { "mintegral": { "command": "npx", "args": [ "-y", "@feedmob/mintegral-reporting" ] "env": { "MINTEGRAL_ACCESS_KEY": "your_mintegral_access_key", "MINTEGRAL_API_KEY": "your_mintegral_api_key" } } } }
Development
- Clone the repository.
- Navigate to the
src/mintegral-reportingdirectory. - Install dependencies:
npm install - Set the required environment variables (
MINTEGRAL_ACCESS_KEYandMINTEGRAL_API_KEY). - Build the project:
npm run build - Run the server directly:
node dist/index.js
License
MIT