Privy MCP Server

February 9, 2026 · View on GitHub

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

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:

Claude Desktop (~/.config/claude/claude_desktop_config.json)
{
  "mcpServers": {
    "privy": {
      "command": "npx",
      "args": ["@privy-io/mcp-server"],
      "env": {
        "PRIVY_APP_ID": "your-app-id",
        "PRIVY_APP_SECRET": "your-app-secret"
      }
    }
  }
}
Cursor (~/.cursor/mcp.json)
{
  "mcpServers": {
    "privy": {
      "command": "npx",
      "args": ["@privy-io/mcp-server"],
      "env": {
        "PRIVY_APP_ID": "your-app-id",
        "PRIVY_APP_SECRET": "your-app-secret"
      }
    }
  }
}
Claude Code (project .mcp.json)
{
  "privy": {
    "command": "npx",
    "args": ["@privy-io/mcp-server"],
    "env": {
      "PRIVY_APP_ID": "your-app-id",
      "PRIVY_APP_SECRET": "your-app-secret"
    }
  }
}

3. Start Using!

Ask Claude to create a wallet:

"Create an Ethereum wallet for me"

Supported Chains

ChainTypeStatus
Ethereum (+ all EVM)ethereum✅ Full support
Solanasolana✅ Full support
Cosmoscosmos✅ Supported
Stellarstellar✅ Supported
Suisui✅ Supported
Aptosaptos✅ Supported
Trontron✅ Supported
Bitcoin (SegWit)bitcoin-segwit✅ Supported
Nearnear✅ Supported
TONton✅ Supported
Starknetstarknet✅ Supported

Available Tools

Wallet Management

ToolDescription
create_walletCreate a new wallet on any supported chain
get_wallet_detailsGet wallet info by ID
get_walletsList all wallets
get_wallet_balanceCheck balance (ETH, USDC, etc.)
get_wallet_transactionsGet transaction history
update_walletUpdate wallet policies

Ethereum Operations

ToolDescription
eth_sendTransactionSign and broadcast (supports gas sponsorship)
personal_signSign a message (EIP-191)
eth_signTransactionSign without broadcasting
eth_signTypedData_v4Sign EIP-712 typed data
secp256k1_signSign a hash directly
raw_signSign raw data

Solana Operations

ToolDescription
solana_signAndSendTransactionSign and broadcast
solana_signMessageSign a message
solana_signTransactionSign without broadcasting

Policies (Access Control)

ToolDescription
create_policyCreate transaction policies
get_policy / update_policy / delete_policyManage policies
add_rule_to_policyAdd rules to control transactions
get_policy_rule / update_policy_rule / delete_policy_ruleManage rules

Key Quorums (Multi-sig)

ToolDescription
create_key_quorumCreate a key quorum for multi-sig
get_key_quorum / update_key_quorum / delete_key_quorumManage quorums

Transactions

ToolDescription
get_transactionGet 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

VariableRequiredDescription
PRIVY_APP_IDYesYour Privy App ID
PRIVY_APP_SECRETYesYour Privy App Secret
PRIVY_AUTHORIZATION_PRIVATE_KEYNoFor signing ops on owner-controlled wallets
PRIVY_API_BASE_URLNoCustom 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.