Insurance Campaign MCP Server

Insurance Campaign MCP Server

Enables AI-powered insurance marketing campaign management with audience targeting recommendations and personalized content generation for different insurance products and marketing channels.

Category
访问服务器

README

MCP Campaign Server

A Spring Boot MCP (Model Context Protocol) server that provides insurance marketing campaign management capabilities for Claude AI integration.

Features

  • Audience Targeting: AI-powered recommendations for insurance marketing audience segmentation
  • Campaign Content: Personalized content recommendations for different insurance products and channels
  • Claude Inspector Integration: Support for Claude Inspector tool queries
  • MCP Protocol: Full MCP server implementation with WebSocket support
  • REST API: Additional HTTP endpoints for direct integration

Quick Start

Prerequisites

  • Java 17 or higher
  • Maven 3.6 or higher

Installation

  1. Clone the repository:
git clone <repository-url>
cd Mcp_Campaign
  1. Build the project:
# If you have corporate Maven repository issues, use the startup script
./start.sh

# Or manually with custom settings
mvn clean compile --settings temp-settings.xml
  1. Run the application:
mvn spring-boot:run

The server will start on port 8080 with WebSocket endpoint at ws://localhost:8080/api/mcp

Corporate Repository Issues

If you encounter corporate Maven repository connectivity issues, create a temporary settings file:

# Create temp-settings.xml with Maven Central only
cat > temp-settings.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 
          http://maven.apache.org/xsd/settings-1.0.0.xsd">
    <mirrors>
        <mirror>
            <id>central</id>
            <name>Maven Central</name>
            <url>https://repo1.maven.org/maven2</url>
            <mirrorOf>*</mirrorOf>
        </mirror>
    </mirrors>
</settings>
EOF

# Then build with custom settings
mvn clean compile --settings temp-settings.xml

MCP Tools

The server provides the following MCP tools for Claude integration:

1. audience_targeting

Provides audience targeting criteria recommendations based on user requirements.

Input Parameters:

  • requirements (required): User requirements for audience targeting
  • insurance_type (optional): Type of insurance (life, health, auto, property, etc.)
  • campaign_objective (optional): Campaign objective (acquisition, retention, upselling, etc.)

Example Usage:

{
  "name": "audience_targeting",
  "arguments": {
    "requirements": "Target young professionals aged 25-35 who are interested in life insurance",
    "insurance_type": "life_insurance",
    "campaign_objective": "acquisition"
  }
}

2. campaign_content_recommendation

Recommends personalized campaign content for insurance marketing.

Input Parameters:

  • audience_criteria (required): Target audience criteria object
  • insurance_type (required): Type of insurance product
  • channel (optional): Marketing channel (email, sms, social_media, etc.)
  • campaign_goal (optional): Campaign goal (awareness, conversion, retention, etc.)

Example Usage:

{
  "name": "campaign_content_recommendation",
  "arguments": {
    "audience_criteria": {
      "minAge": 25,
      "maxAge": 35,
      "incomeRange": ["middle_income", "high_income"]
    },
    "insurance_type": "life_insurance",
    "channel": "email",
    "campaign_goal": "conversion"
  }
}

3. inspector_query

Executes queries for Claude Inspector tool integration.

Input Parameters:

  • query (required): Query for Claude Inspector tool

Example Usage:

{
  "name": "inspector_query",
  "arguments": {
    "query": "Analyze the effectiveness of recent insurance marketing campaigns"
  }
}

REST API Endpoints

Health Check

GET /api/campaigns/health

List Available Tools

GET /api/campaigns/tools

Audience Recommendation

POST /api/campaigns/audience/recommend
Content-Type: application/json

{
  "requirements": "Target young professionals for life insurance",
  "insurance_type": "life_insurance",
  "campaign_objective": "acquisition"
}

Content Recommendation

POST /api/campaigns/content/recommend
Content-Type: application/json

{
  "audience_criteria": {
    "minAge": 25,
    "maxAge": 35,
    "incomeRange": ["middle_income"]
  },
  "insurance_type": "life_insurance",
  "channel": "email",
  "campaign_goal": "conversion"
}

AI Integration

Cline (VS Code) Integration

快速设置:

./setup_cline.sh

手动配置:

  1. ~/.cline/config.json 中添加配置:
{
  "mcpServers": {
    "insurance-campaign": {
      "command": "java",
      "args": ["-jar", "/path/to/mcp-campaign-server-1.0.0.jar"],
      "env": {"SERVER_PORT": "8080"}
    }
  }
}
  1. 重启VS Code
  2. 在Cline中开始对话并使用工具

使用示例:

请帮我分析一下针对年轻专业人士的人寿保险营销活动的人群定位策略

Claude Desktop Integration

  1. Add the MCP server configuration to your Claude Desktop settings:
{
  "mcpServers": {
    "insurance-campaign": {
      "command": "java",
      "args": ["-jar", "path/to/mcp-campaign-server.jar"],
      "env": {
        "SERVER_PORT": "8080"
      }
    }
  }
}

WebSocket Connection

Connect to the MCP server via WebSocket at:

ws://localhost:8080/api/mcp

Configuration

The application can be configured via application.yml:

server:
  port: 8080

mcp:
  server:
    name: "Insurance Campaign MCP Server"
    version: "1.0.0"
    protocol-version: "2024-11-05"
  websocket:
    path: "/mcp"
    allowed-origins: "*"

Development

Project Structure

src/main/java/com/insurance/mcp/
├── McpCampaignServerApplication.java    # Main application class
├── config/
│   └── WebSocketConfig.java             # WebSocket configuration
├── controller/
│   └── CampaignController.java          # REST endpoints
├── handler/
│   └── McpWebSocketHandler.java         # MCP WebSocket handler
├── model/
│   ├── McpRequest.java                  # MCP request model
│   ├── McpResponse.java                 # MCP response model
│   ├── McpTool.java                     # MCP tool model
│   └── campaign/
│       ├── AudienceCriteria.java        # Audience targeting model
│       └── CampaignContent.java         # Campaign content model
└── service/
    ├── McpToolService.java              # MCP tool service
    └── campaign/
        ├── AudienceTargetingService.java # Audience targeting logic
        └── CampaignContentService.java   # Content recommendation logic

Building and Testing

# Run tests
mvn test

# Build JAR
mvn clean package

# Run with custom profile
mvn spring-boot:run -Dspring-boot.run.profiles=dev

Insurance Types Supported

  • Life Insurance
  • Health Insurance
  • Auto Insurance
  • Property Insurance
  • Travel Insurance

Marketing Channels Supported

  • Email
  • SMS
  • Social Media
  • Push Notifications
  • Direct Mail

License

This project is licensed under the MIT License.

mcp_campaign_server

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选