SuperAPIAI Directory

inoyu-mcp-unomi-server

github.com · AI developer platforms

Access and update profiles on an Apache Unomi CDP server.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS

About this tool

Purpose

Inoyu Apache Unomi MCP Server is a Model Context Protocol (MCP) server designed to let Claude maintain user context and perform profile management through Apache Unomi CDP (Customer Data Platform). It enables Claude to identify users during conversations, maintain user context across sessions, and manage user consent preferences.

Key Capabilities

  • User Identification: Identify users across conversations by email or profile ID, automatically creating and managing user profiles.
  • Profile Management: Supports profile lookup and creation, profile attribute management, basic session handling, and scope management for context isolation.
  • Consent Management: Provides tools to update, retrieve, and list user consents, supporting GDPR-compliant consent expiration handling.
  • Integration Features: Seamless integration with Claude Desktop, automatic session management, scope-based context isolation.

Available Tools

  • get_my_profile: Retrieve a profile using environment variables, automatically generate a date-based session ID, with optional parameters including whether to include segments and scores.
  • update_my_profile: Update profile attributes, accepting a key-value pair object, supporting string, number, boolean, and null values.
  • get_profile: Retrieve a specific profile by ID, returning complete profile data.
  • search_profiles: Search profiles, supporting a query string and optional limit/offset parameters, searching in the firstName, lastName, and email fields.
  • create_scope: Create a new Unomi scope, accepting a scope identifier and optional name/description.
  • get_tenant_info: Retrieve current tenant information (V3 only), returning tenant details, version information, and key status.
  • update_consent: Update user consent status using a modifyConsent event, with required parameters consentId and status (GRANTED, DENIED, or REVOKED), and optional parameters including typeIdentifier, scope, and metadata.
  • get_consent: Retrieve specific consent information, with the required parameter consentId, returning status, timestamp, and metadata.
  • list_consents: List all consents for a profile, with support for filtering by profileId, status, and scope.

Usage

This server is designed to be used with Claude Desktop. Add the server configuration and environment variables to the Claude Desktop configuration file:

  • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%/Claude/claude_desktop_config.json

Set the environment variables required by the server in the env section of the configuration, replacing them with the actual Unomi server details. After updating the configuration, restart Claude Desktop, then click the tools icon in the lower-right corner of the chat window to confirm that all tools provided by the server have been discovered.

Environment Variables

The server requires the following environment variables (refer to the repository documentation for the specific variable names):

  • For V2 authentication: UNOMI_USERNAME, UNOMI_PASSWORD, and UNOMI_KEY are required.
  • For V3 authentication: UNOMI_TENANT_ID, UNOMI_PUBLIC_KEY, and UNOMI_PRIVATE_KEY are required.
  • You can also set UNOMI_VERSION (=2 or =3, default 3), UNOMI_EMAIL, UNOMI_PROFILE_ID, etc.

Profile Resolution

The server uses a two-step process to resolve the profile ID:

  1. Email lookup (if UNOMI_EMAIL is set): search for a profile matching the email, and if found, use that profile's ID.
  2. Fallback profile ID: if the email lookup fails or UNOMI_EMAIL is not set, use UNOMI_PROFILE_ID from the environment variables. The source field in the response indicates the method used ("email_lookup" or "environment").

Unomi Server Configuration

Configure protected events in etc/org.apache.unomi.cluster.cfg:

  • Set org.apache.unomi.cluster.authorization.key to your Unomi key.
  • Set org.apache.unomi.ip.ranges to include the IP address of Claude Desktop.

Use Cases

  • Want Claude to remember user preferences across conversations.
  • Store and retrieve user-specific information.
  • Manage multiple users identified by email.
  • Track and manage user consent preferences, in compliance with privacy regulations such as GDPR and CCPA.
  • Update consent status in real time and query consent history.

Limitations

  • This is an early implementation, mainly for demonstration purposes: not validated for production use, subject to change, not yet officially supported, and intended only for learning and experimentation.
  • Other Unomi features are not currently implemented, such as events, segments, session properties, etc.
  • Requires a pre-running Apache Unomi server, Claude Desktop installed, and network access to the Unomi server.
  • Requires appropriate security configuration and the required environment variables.

Version Compatibility

Supports Apache Unomi V2 and V3, with automatic version detection and corresponding authentication methods:

  • V2: Uses system administrator authentication (default karaf/karaf), and all operations use the same authentication method.
  • V3 (multi-tenant): Uses tenant-based authentication and API keys. Public endpoints use the X-Unomi-Api-Key header with the public key, private endpoints use tenant authentication (tenantId:privateKey), and system operations fall back to system administrator authentication.

Migrating from V2 to V3 requires updating environment variables, removing V2-specific variables and adding V3-specific variables. V3 provides complete data isolation between tenants, enhanced security, better scalability, and improved data privacy compliance.

Scope Management

The server automatically manages scope: the default scope is claude-desktop, used for all operations and automatically created as needed. You can use the create_scope tool to create custom scopes for separating different applications or contexts, but they must exist before being used for profile operations. The server checks whether the required scope exists and automatically creates it if missing.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools