Purpose
GrowSurf MCP Server is the official command-line interface (CLI) and open-source MCP (Model Context Protocol) server from GrowSurf, used to implement GrowSurf referral programs and affiliate programs. It wraps GrowSurf's REST API as secure tools, paired with guided steps, allowing AI agents to complete related operations in natural language.
Main capabilities
- Guided Integration: Provides step-by-step guidance for Universal Code installation, native iOS/Android SDK implementation, native GrowSurf Window guidance, signup flow, qualified action flow, affiliate sales/transaction tracking, and Webhooks.
- Agent Recipes: Provides MCP prompts for creating referral programs, creating affiliate programs, program design suggestions, referral tracking troubleshooting, embedding components, listing and retrieving programs and participants, configuring rewards, connecting Webhooks, and reading analytics data. Prompts use information from the conversation and only ask for the missing information needed for the next step, with no form input required. An installable Agent Skill package is also provided (located at skills/growsurf-agent-toolkit).
- Happy-Path REST API Wrappers: Includes creating an account and obtaining an API key, reading and renaming a bound team, requesting team verification, sending team owner verification email, listing and retrieving campaigns, retrieving campaign analytics (totals, time series, email metrics, participant engagement activity, and activation queue), creating/updating/cloning programs, managing campaign rewards, managing program resources, retrieving/updating design, emails, options, and installation configuration, capturing temporary GrowSurf preview screenshots, managing and testing program Webhooks, managing participants, triggering referral credits (supporting delayed rewards of 1-90 days), recording affiliate sales/transactions, creating mobile participant tokens for logged-in native app users, and more.
- Official API library code snippets: TypeScript, Python, PHP, Ruby, Java.
- Helper tools (Helpers): Compute participant auto-authentication HMAC hashes, normalize Webhook payloads, and generate best-effort idempotency keys for Webhook deduplication.
How to use
Users can connect this MCP server to an AI agent and then operate in natural language. MCP is optional; any agent that can send HTTPS requests can start from GrowSurf's client-neutral REST workflow (https://growsurf.com/agent-start.md)。
- Read the OpenAPI contract:https://growsurf.com/openapi.json
- Read the Arazzo workflow:https://growsurf.com/arazzo.yaml
- Learn about optional MCP setup:https://docs.growsurf.com/build-with-ai#optional-connect-mcp
The MCP server is suitable for developers using MCP-compatible tools (Claude Code, Codex, Cursor, Copilot, etc.) and teams that want AI-assisted GrowSurf integration. It is not suitable for browser-only users; browser-only users can use the hosted remote connector https://mcp.growsurf.com。
Environment variables:
GROWSURF_API_KEY(optional, not required at startup, but required by tools that call the API)GROWSURF_CAMPAIGN_ID(optional, default program for campaign-scope tools)GROWSURF_API_BASE_URL(optional, default https://api.growsurf.com/v2)GROWSURF_UPLOAD_ALLOWED_ORIGINS(only required for FILE resource uploads)
Installation: npm package installation growsurf-mcp command, can be run directly without a global installation. The CLI starts the GrowSurf local stdio MCP server.
The default connection lists all 63 tools; add --compact to select 32 tools for program setup, installation, participant management, referral tracking, rewards, and analytics. Server integration can call createGrowSurfMcpServer({ toolSurface: "compact" }). Supported MCP hosts: when the host supports remote Streamable HTTP and OAuth, use the hosted OAuth endpoint https://mcp.growsurf.com;当主机需要 For stdio processes or manual API key setup, use a local npx server. When there is no GrowSurf account yet, with owner approval, the agent can connect to https://mcp.growsurf.com/onboard and call growsurf_create_account.
Applicable scenarios and limitations
Suitable for development teams that want to quickly implement a GrowSurf referral or affiliate program with the help of AI, as well as developers using MCP-compatible tools and teams that want guided AI-assisted integration.
Limitations and notes:
- Each tool declares an MCP output schema and returns structuredContent.
- Program, reward configuration, option, and participant reads include a rewardEvidence object in structuredContent, used to record what that response establishes about approval policy and automatic fulfillment markers; in the absence of relevant fulfillment records, delivery status remains unknown.
- To delete a participant, pass an ID or email to
growsurf_bulk_delete_participants, and the same permanent deletion warning applies; no separate single-participant tool is needed. Plan deletion and explicit reward fulfillment are outside the scope of this MCP toolset; completing a plan does not equal deletion, and configuring a reward does not mean it has been delivered. - Hash helper tools require the participantAuthSecret parameter to be passed explicitly, and never use
GROWSURF_PARTICIPANT_AUTH_SECRET. - For Webhooks, configure the signing secret on the backend and verify GrowSurf-Signature;
GROWSURF_WEBHOOK_TOKENis no longer used, do not put the secret in the Webhook URL. growsurf_create_accountdoes not require an API key, but it is only called after an authorized owner approves account creation and accepts the GrowSurf Terms of Service and Privacy Policy. The account starts a 14-day Business trial, no credit card required, and the API key is returned only once; if the key is lost, it cannot be retrieved through the API. Unverified accounts are deleted after 7 days. Team-level tools do not require a campaign ID.- Except for static guidance/code snippet tools, other tools require credentials; credential permissions may further reduce the visible toolset.