ID

inoyu-dev/inoyu-mcp-unomi-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

11 stars 9 forks 品質 82 トレンド 22Apache-2.0

An implementation of Anthropic's Model Context Protocol for the Apache Unomi CDP

概要

A Model Context Protocol server enabling Claude to maintain user context through Apache Unomi profile management. ⚠️ This is an early implementation intended for demonstration purposes: - Not validated for production use - Subject to changes - Not (yet) officially supported - For learning and experimentation only This implementation provides: - Profile lookup and creation using email - Profile property management - Basic session handling - Scope management for context isolation Other Unomi features (events, segments, session properties, etc.) are not currently implemented. Community feedback welcome on future development priorities. Watch how the MCP server enables Claude to maintain context and manage user profiles: To use with Claude Desktop, add the server config and environment variables: On MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.

README

以下は原文 README の抜粋です。原文を見る。

Inoyu Apache Unomi MCP Server

A Model Context Protocol server enabling Claude to maintain user context through Apache Unomi profile management.

⚠️ Early Implementation Notice

This is an early implementation intended for demonstration purposes:

  • Not validated for production use
  • Subject to changes
  • Not (yet) officially supported
  • For learning and experimentation only

Current Scope

This implementation provides:

  • Profile lookup and creation using email
  • Profile property management
  • Basic session handling
  • Scope management for context isolation

Other Unomi features (events, segments, session properties, etc.) are not currently implemented. Community feedback welcome on future development priorities.

Demo

Watch how the MCP server enables Claude to maintain context and manage user profiles:

Installation

To use with Claude Desktop, add the server config and environment variables:

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

{
  "mcpServers": {
    "unomi-server": {
      "command": "npx",
      "args": ["@inoyu/mcp-unomi-server"],
      "env": {
        "UNOMI_BASE_URL": "http://your-unomi-server:8181",
        "UNOMI_VERSION": "3", // Use "2" for Unomi V2, "3" for Unomi V3 (default)
        "UNOMI_USERNAME": "your-username", // Required for V2, fallback for V3
        "UNOMI_PASSWORD": "your-password", // Required for V2, fallback for V3
        "UNOMI_PROFILE_ID": "your-profile-id",
        "UNOMI_KEY": "your-unomi-key", // Required for V2 only
        "UNOMI_EMAIL": "[email protected]",
        "UNOMI_SOURCE_ID": "claude-desktop",
        "UNOMI_TENANT_ID": "your-tenant-id", // Required for V3
        "UNOMI_PUBLIC_KEY": "your-public-key", // Required for V3
        "UNOMI_PRIVATE_KEY": "your-private-key" // Required for V3
      }
    }
  }
}

The env section in the configuration allows you to set the required environment variables for the server. Replace the values with your actual Unomi server details.

Make sure to restart Claude Desktop after updating the configuration. You can then click on the tools icon on the lower right of the chat window to make sure it has found all the tools provided by this server.

Features

Profile Access

  • Email-based profile lookup with automatic creation
  • Profile properties, segments, and scores access
  • JSON format for all data exchange
  • Automatic session management with date-based IDs

Tools

  • get_my_profile - Get your profile using environment variables
    • Uses UNOMI_PROFILE_ID from environment or email lookup
    • Automatically generates a session ID based on the current date
    • Optional parameters:
      • requireSegments: Include segment information
      • requireScores: Include scoring information
GitHub で README 全文を見る

インストール

npx @inoyu/mcp-unomi-server
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "unomi-server": { "command": "npx", "args": ["@inoyu/mcp-unomi-server"], "env": { "UNOMI_BASE_URL": "http://your-unomi-server:8181", "UNOMI_VERSION": "3", // Use "2" for Unomi V2, "3" for Unomi V3 (default) "UNOMI_USERNAME": "your-username", // Required for V2, fallback for V3 "UNOMI_PASSWORD": "your-password", // Required for V2, fallback for V3 "UNOMI_PROFILE_ID": "your-profile-id", "UNOMI_KEY": "your-unomi-key", // Required for V2 only "UNOMI_EMAIL": "[email protected]", "UNOMI_SOURCE_ID": "claude-desktop", "UNOMI_TENANT_ID": "your-tenant-id", // Required for V3 "UNOMI_PUBLIC_KEY": "your-public-key", // Required for V3 "UNOMI_PRIVATE_KEY": "your-private-key" // Required for V3 } } } }