MCP Hub
Back to servers

AIVA MCP Server

AIVA MCP Server connects AI assistants to customer intelligence and Shopify data, providing tools for managing subscriptions, tracking affiliates, and accessing RFM segments and churn predictions.

Tools
15
Updated
Dec 15, 2025

AIVA MCP Server

npm version License: MIT

Model Context Protocol server for AIVA - Connect your AI coding tools to AIVA's customer intelligence and Shopify data.

What is this?

AIVA MCP is a Model Context Protocol server that gives AI coding assistants (Claude, Cursor, Windsurf, etc.) direct access to:

  • Customer Intelligence - RFM segments, health scores, churn predictions
  • Subscription Data - Active subscriptions, delivery schedules, lifecycle events
  • Affiliate Tracking - Referral codes, commissions, leaderboards
  • Shopify Store Data - Products, orders, customers (proxied through AIVA)

Quick Start

Installation

npm install @getaiva/mcp

Configuration

Add to your MCP configuration file:

Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "aiva": {
      "command": "npx",
      "args": ["@getaiva/mcp"],
      "env": {
        "AIVA_API_KEY": "your-api-key-here"
      }
    }
  }
}

Cursor (.cursor/mcp.json in your project):

{
  "mcpServers": {
    "aiva": {
      "command": "npx",
      "args": ["@getaiva/mcp"],
      "env": {
        "AIVA_API_KEY": "your-api-key-here"
      }
    }
  }
}

VS Code with Continue (.continue/config.json):

{
  "mcpServers": [
    {
      "name": "aiva",
      "command": "npx",
      "args": ["@getaiva/mcp"],
      "env": {
        "AIVA_API_KEY": "your-api-key-here"
      }
    }
  ]
}

Getting Your API Key

  1. Log in to your AIVA Merchant Dashboard
  2. Go to Settings > API Keys
  3. Create a new API key with the scopes you need
  4. Copy the key and add it to your MCP configuration

Available Tools

Once connected, your AI assistant can use these tools:

Customer Intelligence

ToolDescription
aiva_get_customerGet customer profile by ID or email
aiva_search_customersSearch customers with filters
aiva_get_rfm_segmentsGet RFM segment breakdown
aiva_get_churn_riskGet customers at risk of churning

Subscriptions

ToolDescription
aiva_get_subscriptionGet subscription details
aiva_list_subscriptionsList subscriptions with filters
aiva_get_delivery_scheduleGet upcoming deliveries
aiva_subscription_actionsPause, resume, skip, swap products

Affiliates

ToolDescription
aiva_get_affiliateGet affiliate details
aiva_list_affiliatesList affiliates with stats
aiva_get_referralsGet referral history

Shopify (Proxied)

ToolDescription
shopify_get_productsSearch/list products
shopify_get_productGet product by ID
shopify_get_ordersList orders
shopify_get_customerGet Shopify customer

Environment Variables

VariableRequiredDescription
AIVA_API_KEYYesYour AIVA API key
AIVA_API_URLNoCustom API URL (default: https://api.aiva.io)
SHOPIFY_ACCESS_TOKENNoDirect Shopify access (bypasses proxy)
SHOPIFY_STORENoYour Shopify store domain

Example Usage

Once configured, ask your AI assistant things like:

"Show me customers at high risk of churning"

"Get the subscription details for customer john@example.com"

"List all products in the 'dog-food' collection"

"What are our top-performing affiliates this month?"

"Find customers in the 'Champions' RFM segment"

Development

Running Locally

git clone https://github.com/0800tim/aiva-mcp.git
cd aiva-mcp
npm install
npm run dev

Testing

npm test

Building

npm run build

Troubleshooting

"AIVA_API_KEY not configured"

Make sure your API key is set in the env section of your MCP configuration.

"Connection refused"

Check that:

  1. Your API key is valid
  2. You have network access to the AIVA API
  3. The MCP server started correctly

Debug Mode

Set DEBUG=aiva:* environment variable for verbose logging:

{
  "env": {
    "AIVA_API_KEY": "your-key",
    "DEBUG": "aiva:*"
  }
}

Related Packages

License

MIT - see LICENSE for details.

Support

Reviews

No reviews yet

Sign in to write a review