# Piggy — MCP server on mcp.ai > Connect your Piggy account and use 14 tools for marketing automation straight from your AI agent. Connect with your own API key. Piggy offers cashback and loyalty program integrations for online stores, letting users earn points or discounts and encouraging repeat purchases. By: mcp.ai · official Page: https://mcp.ai/piggy ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_piggy?ms=1787291400000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/piggy/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/piggy/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/piggy/skill.md Postman collection (v2.1): https://mcp.ai/piggy/postman.json ## Tools - piggy_claim_anonymous_contact(email?: string, anonymous_contact_uuid: string) — Tool to claim an anonymous contact by associating it with a real email address. Use when converting an anonymous contact (with a fictional email) into a verified contact with a real email address. - piggy_create_contact_attribute(name: string, label?: string, options?: object[], data_type: string, description?: string) — Tool to create a custom Contact Attribute. Use when you need to define new fields for contacts after initial setup. - piggy_create_credit_reception(credits?: integer, shop_uuid: string, unit_value?: integer, contact_uuid: string) — Tool to create a credit reception for a contact. Use when awarding credits to customers based on purchases or fixed amounts. - piggy_create_vouchers_batch(quantity: integer, contact_uuid?: string, promotion_uuid: string, activation_date?: string, expiration_date?: string, custom_attributes?: object[]) — Tool to create a batch of vouchers for a promotion. Use when you need to generate multiple vouchers at once for a specific promotion. Batch processing is asynchronous and returns a PENDING status init - piggy_find_or_create_products(name?: string, categories?: object[], description?: string, external_identifier: string) — Tool to find an existing product by external_identifier or create a new one if it doesn't exist. Use when you need to ensure a product exists in Piggy's system for loyalty programs or rewards. - piggy_find_voucher_by_code(code: string) — Tool to find a voucher by its unique code. Use when you need to retrieve voucher details, check redemption status, or validate a voucher code. - piggy_get_contact_auth_token(contact_uuid: string) — Tool to get an auth token for a Contact. Use after obtaining a Contact UUID and needing to verify identity for secure operations. - piggy_get_contacts_credit_balance(contact_uuid: string) — Tool to get a Contact's credit balance. Use when you need to check a contact's current credit balance before processing rewards or promotions. - piggy_list_forms() — Tool to list all forms in the Piggy account. Use when you need to retrieve available forms for customer interactions. - piggy_list_perks() — Tool to list all available perks in Piggy. Use when you need to retrieve the catalog of perks that can be associated with contacts or transactions. - piggy_merge_contacts(source_contact_uuid: string, destination_contact_uuid: string) — Merges a source contact into a destination contact in Piggy's CRM. The source contact's data (attributes, balances, transactions) is transferred to the destination contact, and the source contact is r - piggy_send_contact_verification_email(email: string) — Send a verification email to a Piggy contact for identity verification. The contact must exist in the system with a configured Contacts Portal. Returns success message with email sent confirmation. Us - piggy_update_bookings(source?: string, status?: string, ends_at?: string, starts_at?: string, external_id?: string, booking_uuid: string, company_name?: string, checked_in_at?: string, prepaid_amount?: integer, number_of_people?: integer) — Tool to update an existing booking in Piggy. Use when you need to modify booking details such as party size, status, or company name. Note: Shop and contact cannot be updated after creation. - piggy_update_contact_identifiers(contact_identifier_name?: string, contact_identifier_value: string, contact_identifier_active?: boolean) — Tool to update a contact identifier in Piggy. Use when you need to modify the display name or active state of an existing contact identifier. Only the name and active properties can be updated; the id ## Example prompts - "What can I do in Piggy?" - "Show me a summary of my Piggy account" ## Links Docs: https://mcp.ai/docs/mcps/piggy Website: https://mcp.ai/mcps/piggy