Skip to main content
Glama
Crossmint HR Airdrop MCP

Crossmint HR Airdrop MCP

by monostate

Crossmint HR 空投 MCP

一个模型上下文协议 (MCP) 服务器,用于帮助企业人力资源团队向员工空投 Solana 代币。该项目提供了一种高效的方式将代币分发到员工钱包地址,并支持基于角色的分配和自动电子邮件通知。

特征

  • 钱包管理:连接 Solana 钱包或 Crossmint 钱包来签署和资助交易

  • 代币创建:在 Solana 区块链上创建自定义代币

  • 流动性管理:通过 Raydium AMM 为新代币增加流动性

  • 托管钱包生成:为员工创建 Crossmint 托管钱包

  • CSV 导入:上传员工数据,包括姓名、电子邮件和角色信息

  • 基于角色的分配:根据员工角色分配代币

  • Gas Fee 估算:计算空投前的交易费用

  • 压缩空投:使用 ZK 轻量协议进行高效的代币分发

  • 电子邮件通知:向员工发送访问其令牌的说明

Related MCP server: Solana MCP Server

先决条件

  • Node.js(v16+)

  • pnpm 包管理器

  • Solana 钱包使用 SOL 支付交易费用

  • 用于创建托管钱包的 Crossmint API 密钥

  • 重新发送用于发送电子邮件的 API 密钥

  • 用于压缩事务的 Helius API 密钥(可选)

安装

1. 克隆和设置

git clone https://github.com/monostate/Employees-Airdrop-Rewards-MCP.git
cd crossmint-hr-airdrop-mcp
./setup.sh

安装脚本将:

  • 安装依赖项

  • 克隆所需的存储库

  • 创建.env文件模板

  • 构建项目

2.配置环境变量

使用您的 API 密钥和配置编辑.env文件:

# Crossmint API Key (required for custodial wallet creation)
CROSSMINT_API_KEY=your_crossmint_api_key

# Crossmint Email (required for wallet operations)
CROSSMINT_EMAIL=your_email@example.com

# Resend API Key (required for sending emails)
RESEND_API_KEY=your_resend_api_key

# Helius API Key (optional, for compressed transactions)
HELIUS_API_KEY=your_helius_api_key

# Solana RPC URL (optional, defaults to mainnet-beta)
SOLANA_RPC_URL=https://api.mainnet-beta.solana.com

3. 安装到 Claude 桌面

pnpm install-mcp

这将把 MCP 服务器安装到 Claude Desktop。您需要重启 Claude Desktop 才能加载新的 MCP 服务器。

使用指南

配置完成后,您可以通过以下指令将 HR Airdrop MCP 服务器与 Claude Desktop 一起使用:

  1. 连接 Solana 钱包或 Crossmint 钱包

  2. 创建员工奖励代币

  3. 为代币增加流动性

  4. 为员工生成托管钱包

  5. 上传包含员工角色的 CSV

  6. 计算代币分布

  7. 计算 gas 费

  8. 执行空投

  9. 发送通知电子邮件

可用工具

  • connect_wallet :连接 Solana 钱包

  • connect_crossmint_wallet :连接 Crossmint 钱包

  • check_balance :检查钱包 SOL 余额

  • create_token :创建一个新的令牌

  • add_liquidity :为代币增加流动性

  • generate_wallets :为员工创建托管钱包

  • upload_csv :处理来自 CSV 的员工数据

  • calculate_amounts :计算代币分配金额

  • calculate_fees :计算空投的 gas 费用

  • start_airdrop :执行代币空投

  • send_emails :向员工发送通知

  • get_state :检查空投过程的当前状态

CSV 格式

对于基于角色的令牌分发,请准备一个包含以下列的 CSV 文件:

name,email,role
John Doe,john@example.com,developer
Jane Smith,jane@example.com,manager

支持角色: operational 、 developer 、 manager 、 VP 、 VIP

发展

要对项目进行更改:

  1. 修改src/中的 TypeScript 文件

  2. 使用pnpm build重建

  3. 如果需要,请更新您的 Claude Desktop 配置

执照

该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。

致谢

IYHeE1GSOf4ow3i3-生成的图像

Available Tools

12 tools
add_liquidityC

Add liquidity to the created token

Inputs: solAmount (required), tokenAmount (required).

calculate_amountsC

Calculate token amounts for each employee

Inputs: roleAmounts, uniformAmount.

calculate_feesB

Calculate gas fees for the airdrop

Inputs: no named parameters.

check_balanceB

Check the SOL balance of the connected wallet

Inputs: no named parameters.

connect_crossmint_walletC

Connect a Crossmint wallet to the airdrop server

Inputs: apiKey (required), email (required).

connect_walletC

Connect a Solana wallet to the airdrop server

Inputs: privateKey (required), rpcUrl.

create_tokenC

Create a new Solana token

Inputs: name (required), supply (required), symbol (required), decimals.

generate_walletsC

Generate custodial wallets for employees using Crossmint

Inputs: employees (required), apiKey.

get_stateB

Get the current state of the airdrop process

Inputs: no named parameters.

send_emailsC

Send emails to employees with wallet access instructions

Inputs: fromEmail (required), resendApiKey, subject.

start_airdropB

Perform the token airdrop to employee wallets

Inputs: no named parameters.

upload_csvC

Process employee data from a CSV file

Inputs: filePath (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 12 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose with no overlap. For example, connect_wallet and connect_crossmint_wallet handle different wallet types, while calculate_amounts and calculate_fees perform separate calculations. The descriptions make it easy to distinguish between all 12 tools.

    Naming Consistency5/5

    All tools follow a consistent verb_noun naming pattern (e.g., add_liquidity, calculate_amounts, check_balance). There are no deviations in style or convention, making the tool set highly predictable and readable.

    Tool Count5/5

    With 12 tools, the set is well-scoped for an HR airdrop process, covering wallet management, token operations, calculations, and communication. Each tool earns its place by addressing a specific step in the workflow without being excessive or insufficient.

    Completeness5/5

    The tool set provides complete coverage for the HR airdrop domain, including setup (create_token, upload_csv), calculations (calculate_amounts, calculate_fees), wallet management (connect_wallet, generate_wallets), execution (start_airdrop, add_liquidity), and communication (send_emails). No obvious gaps exist in the lifecycle.

    Related MCP Connectors

    Related MCP Servers