Privy MCP Server

Privy MCP Server

Enables AI agents to create wallets, sign transactions, and manage blockchain operations across multiple chains like Ethereum, Solana, and more via Privy.

Category
访问服务器

README

Privy MCP Server

npm version License: MIT

Give your AI agent a wallet with Privy. This MCP (Model Context Protocol) server enables Claude and other AI assistants to create wallets, sign transactions, and manage blockchain operations.

Installation

Option 1: npx (Recommended)

Run directly without installation:

npx @privy-io/mcp-server

Option 2: Global Install

npm install -g @privy-io/mcp-server
privy-mcp-server

Option 3: From Source

git clone https://github.com/privy-io/privy-mcp-server.git
cd privy-mcp-server
npm install && npm run build

Quick Start

1. Get Your Credentials

From the Privy Dashboard:

  • App ID & Secret: Settings → Basics

2. Configure Your MCP Client

Add to your MCP client configuration:

<details> <summary><b>Claude Desktop</b> (~/.config/claude/claude_desktop_config.json)</summary>

{
  "mcpServers": {
    "privy": {
      "command": "npx",
      "args": ["@privy-io/mcp-server"],
      "env": {
        "PRIVY_APP_ID": "your-app-id",
        "PRIVY_APP_SECRET": "your-app-secret"
      }
    }
  }
}

</details>

<details> <summary><b>Cursor</b> (~/.cursor/mcp.json)</summary>

{
  "mcpServers": {
    "privy": {
      "command": "npx",
      "args": ["@privy-io/mcp-server"],
      "env": {
        "PRIVY_APP_ID": "your-app-id",
        "PRIVY_APP_SECRET": "your-app-secret"
      }
    }
  }
}

</details>

<details> <summary><b>Claude Code</b> (project .mcp.json)</summary>

{
  "privy": {
    "command": "npx",
    "args": ["@privy-io/mcp-server"],
    "env": {
      "PRIVY_APP_ID": "your-app-id",
      "PRIVY_APP_SECRET": "your-app-secret"
    }
  }
}

</details>

3. Start Using!

Ask Claude to create a wallet:

"Create an Ethereum wallet for me"

Supported Chains

Chain Type Status
Ethereum (+ all EVM) ethereum ✅ Full support
Solana solana ✅ Full support
Cosmos cosmos ✅ Supported
Stellar stellar ✅ Supported
Sui sui ✅ Supported
Aptos aptos ✅ Supported
Tron tron ✅ Supported
Bitcoin (SegWit) bitcoin-segwit ✅ Supported
Near near ✅ Supported
TON ton ✅ Supported
Starknet starknet ✅ Supported

Available Tools

Wallet Management

Tool Description
create_wallet Create a new wallet on any supported chain
get_wallet_details Get wallet info by ID
get_wallets List all wallets
get_wallet_balance Check balance (ETH, USDC, etc.)
get_wallet_transactions Get transaction history
update_wallet Update wallet policies

Ethereum Operations

Tool Description
eth_sendTransaction Sign and broadcast (supports gas sponsorship)
personal_sign Sign a message (EIP-191)
eth_signTransaction Sign without broadcasting
eth_signTypedData_v4 Sign EIP-712 typed data
secp256k1_sign Sign a hash directly
raw_sign Sign raw data

Solana Operations

Tool Description
solana_signAndSendTransaction Sign and broadcast
solana_signMessage Sign a message
solana_signTransaction Sign without broadcasting

Policies (Access Control)

Tool Description
create_policy Create transaction policies
get_policy / update_policy / delete_policy Manage policies
add_rule_to_policy Add rules to control transactions
get_policy_rule / update_policy_rule / delete_policy_rule Manage rules

Key Quorums (Multi-sig)

Tool Description
create_key_quorum Create a key quorum for multi-sig
get_key_quorum / update_key_quorum / delete_key_quorum Manage quorums

Transactions

Tool Description
get_transaction Get transaction details by ID

Example Conversations

You: Create a wallet and check its balance

Claude: I'll create an Ethereum wallet and check the balance.
🔧 create_wallet → { id: "wallet-abc", address: "0x742d35Cc..." }
🔧 get_wallet_balance → { balance: "0 ETH" }

Done! Your wallet 0x742d35Cc... has been created with 0 ETH.
You: Send 0.01 ETH to 0x123... on Base

Claude: I'll send 0.01 ETH to that address on Base.
🔧 eth_sendTransaction → { hash: "0xabc123...", status: "pending" }

Transaction submitted! Hash: 0xabc123...

Environment Variables

Variable Required Description
PRIVY_APP_ID Yes Your Privy App ID
PRIVY_APP_SECRET Yes Your Privy App Secret
PRIVY_AUTHORIZATION_PRIVATE_KEY No For signing ops on owner-controlled wallets
PRIVY_API_BASE_URL No Custom API URL (default: https://api.privy.io/v1)

Testing

Use the MCP Inspector to test tools interactively:

npm run inspector

Security Best Practices

  • Never commit credentials - Use environment variables
  • Use policies to restrict what transactions your agent can execute
  • Set up key quorums for high-value operations requiring multiple approvals
  • Monitor transactions via Privy Dashboard webhooks

Resources

Contributing

Contributions welcome! Please read our contributing guidelines and submit PRs to the main branch.

License

MIT - see LICENSE for details.

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选