AIVA MCP Server
AIVA MCP Server
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/mcpConfiguration
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
Log in to your AIVA Merchant Dashboard
Go to Settings > API Keys
Create a new API key with the scopes you need
Copy the key and add it to your MCP configuration
Available Tools
Once connected, your AI assistant can use these tools:
Customer Intelligence
Tool | Description |
| Get customer profile by ID or email |
| Search customers with filters |
| Get RFM segment breakdown |
| Get customers at risk of churning |
Subscriptions
Tool | Description |
| Get subscription details |
| List subscriptions with filters |
| Get upcoming deliveries |
| Pause, resume, skip, swap products |
Affiliates
Tool | Description |
| Get affiliate details |
| List affiliates with stats |
| Get referral history |
Shopify (Proxied)
Tool | Description |
| Search/list products |
| Get product by ID |
| List orders |
| Get Shopify customer |
Environment Variables
Variable | Required | Description |
| Yes | Your AIVA API key |
| No | Custom API URL (default: https://api.aiva.io) |
| No | Direct Shopify access (bypasses proxy) |
| No | Your 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 devTesting
npm testBuilding
npm run buildTroubleshooting
"AIVA_API_KEY not configured"
Make sure your API key is set in the env section of your MCP configuration.
"Connection refused"
Check that:
Your API key is valid
You have network access to the AIVA API
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
@getaiva/create-app- CLI to scaffold AIVA-powered appscustomer-portal-starter- Customer portal starter kit
License
MIT - see LICENSE for details.
Support
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/0800tim/aiva-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server