iExec MCP Server
An MCP server that enables AI agents to interact with the iExec protocol for confidential data management, governance, and Web3Mail services. It allows users to protect sensitive information, manage access permissions, and perform blockchain wallet operations through natural language commands.
README
iExec MCP Server
A Model Context Protocol (MCP) compatible server to interact with the iExec protocol — built for Claude, agents, and AI tooling.
1. Wallet Setup
Prerequisites:
- Node.js (version 18 or higher)
- npm (version 9 or higher)
Option 1: Create a new wallet with iExec
npm install -g iexec
iexec wallet create --unencrypted
Find your wallet at:
- Linux:
~/.ethereum/keystore/wallet.json - macOS:
~/Library/Ethereum/keystore/wallet.json - Windows:
%APPDATA%/Ethereum/keystore/wallet.json
Option 2: Use an existing private key
- Create a
wallet.json:mkdir -p ./my-wallet echo '{"privateKey":"0xYOUR_PRIVATE_KEY"}' > ./my-wallet/wallet.json - Or use your raw private key directly in Claude configuration.
Important: All sensitive configuration (PRIVATE_KEY_PATH or PRIVATE_KEY) is used only at the local MCP server level and is never transmitted to Claude or any other AI model. This information remains strictly confidential on your local machine.
2. Getting Started
Complete the Wallet Setup above, then choose your preferred installation method:
| Method | Description | Best For |
|---|---|---|
| 3. NPX Configuration ⭐ | Direct Claude Desktop setup | Quick Claude Desktop integration |
| 4. Claude Code CLI | CLI integration setup | Developers using Claude Code |
| 5. Local Node.js | Development from source | Local development & debugging |
| 6. Docker | Containerized deployment | Production & isolated environments |
| 7. Cursor IDE | Cursor IDE integration | Developers using Cursor IDE |
3. Method A: NPX Configuration for Claude Desktop
Prerequisites:
- Node.js (version 18 or higher)
- npm (version 9 or higher)
- Claude Desktop
Setup Steps:
-
Open Claude Desktop configuration:
- Open Claude Desktop → Developer > Edit Config
-
Add configuration to
claude_desktop_config.json:With wallet file (from Section 1):
{ "mcpServers": { "iexec-mcp-server": { "command": "npx", "args": ["-y", "@iexec/mcp-server@latest"], "env": { "PRIVATE_KEY_PATH": "/ABSOLUTE/PATH/TO/YOUR/KEYSTORE/wallet.json" } } } }With direct private key:
{ "mcpServers": { "iexec-mcp-server": { "command": "npx", "args": ["-y", "@iexec/mcp-server@latest"], "env": { "PRIVATE_KEY": "0xYOUR_PRIVATE_KEY" } } } } -
Restart Claude Desktop - You should see a plug icon for
iexec-mcp-server
4. Method B: Claude Code CLI Setup
Prerequisites:
- Node.js (version 18 or higher)
- npm (version 9 or higher)
Setup Steps:
-
Install Claude Code CLI:
npm install -g @anthropic-ai/claude-code -
Add iExec MCP server:
With wallet file (from Section 1):
claude mcp add iexec-mcp --env PRIVATE_KEY_PATH=/ABSOLUTE/PATH/TO/YOUR/KEYSTORE/wallet.json -- npx @iexec/mcp-server@latest iexec-mcpWith direct private key:
claude mcp add iexec-mcp --env PRIVATE_KEY=0xYOUR_PRIVATE_KEY -- npx @iexec/mcp-server@latest iexec-mcp -
Run Claude:
claude
5. Method C: Local Node.js Setup
Prerequisites:
- Node.js (version 18 or higher)
- npm (version 9 or higher)
- Git
- Claude Desktop
Setup Steps:
5.1. Clone, Install, and Build
git clone https://github.com/iexecBlockchainComputing/iexec-mcp-server.git
cd iexec-mcp-server
npm install
npm run build
5.2. Integrate with Claude Desktop
-
Open Claude Desktop configuration:
- Open Claude Desktop → Developer > Edit Config
-
Add configuration to
claude_desktop_config.json:With wallet file (from Section 1):
{ "mcpServers": { "iexec-mcp-server": { "command": "node", "args": ["/ABSOLUTE/PATH/TO-IEXEC-MCP-SERVER-REPO/build/index.js"], "env": { "PRIVATE_KEY_PATH": "/ABSOLUTE/PATH/TO/wallet.json" } } } }With direct private key:
{ "mcpServers": { "iexec-mcp-server": { "command": "node", "args": ["/ABSOLUTE/PATH/TO-IEXEC-MCP-SERVER-REPO/build/index.js"], "env": { "PRIVATE_KEY": "0xYOUR_PRIVATE_KEY" } } } } -
Restart Claude Desktop - You should see a plug icon for
iexec-mcp-server
6. Method D: Docker Setup
Prerequisites:
- Docker installed
- Claude Desktop
- Open Claude Desktop configuration:
- Open Claude Desktop → Developer > Edit Config
-
Add configuration to
claude_desktop_config.json:With wallet file (from Section 1):
{ "mcpServers": { "iexec-mcp-server": { "command": "docker", "args": [ "run", "-i", "--rm", "--init", "-v", "/ABSOLUTE/PATH/TO/YOUR/KEYSTORE:/app/keystore", "-e", "PRIVATE_KEY_PATH=/app/keystore/wallet.json", "iexechub/mcp-server:latest" ] } } }With direct private key:
{ "mcpServers": { "iexec-mcp-server": { "command": "docker", "args": [ "run", "-i", "--rm", "--init", "-e", "PRIVATE_KEY=0xYOUR_PRIVATE_KEY", "iexechub/mcp-server:latest" ] } } } -
Restart Claude Desktop - You should see a plug icon for
iexec-mcp-server
7. Method E: Cursor IDE Setup
Prerequisites:
Setup Steps:
7.1. Install iExec MCP Server
npm install -g @iexec/mcp-server
7.2. Configure Cursor
-
Open Cursor Settings:
- Press
Cmd+,(macOS) orCtrl+,(Windows/Linux) - Or go to Cursor > Preferences > Settings
- Press
-
Search for "MCP" in settings:
- Look for "Model Context Protocol" or "MCP" settings
-
Add MCP Server Configuration:
Option A: Using Settings UI (if available):
- Add a new MCP server entry
- Set the command to:
@iexec/mcp-server - Add environment variables:
PRIVATE_KEY_PATH:/ABSOLUTE/PATH/TO/YOUR/KEYSTORE/wallet.json- Or
PRIVATE_KEY:0xYOUR_PRIVATE_KEY
Option B: Manual Configuration:
- Open Cursor's configuration file (usually in user settings)
- Add the following configuration:
{ "mcpServers": { "iexec-mcp-server": { "command": "npx", "args": ["-y", "@iexec/mcp-server@latest"], "env": { "PRIVATE_KEY_PATH": "/ABSOLUTE/PATH/TO/YOUR/KEYSTORE/wallet.json" } } } }Option C: Using Cursor's AI Features:
- Open the AI chat panel in Cursor
- Type: "Configure MCP server for iExec with private key path: /path/to/wallet.json"
- Cursor should help you set up the configuration
-
Restart Cursor - The iExec MCP server should now be available in your AI interactions
7.3. Alternative: Local Development Setup
If you prefer to run from source:
git clone https://github.com/iexecBlockchainComputing/iexec-mcp-server.git
cd iexec-mcp-server
npm install
npm run build
Then configure Cursor to use the local build:
{
"mcpServers": {
"iexec-mcp-server": {
"command": "node",
"args": ["/ABSOLUTE/PATH/TO-IEXEC-MCP-SERVER-REPO/build/index.js"],
"env": {
"PRIVATE_KEY_PATH": "/ABSOLUTE/PATH/TO/wallet.json"
}
}
}
}
9. Available Tools & API
- Confidential Data:
protectData,getProtectedData,processProtectedData - Data Governance:
grantAccess,revokeOneAccess,revokeAllAccess,transferOwnership,getGrantedAccess - Web3Mail:
sendEmail,fetchMyContacts,fetchUserContacts - Wallet & Resources:
getUserVoucher,getWalletBalance,getIExecApps
Full API docs:
TOOLS.md
10. Example Prompts
- "Please protect my email address
alice@example.comwith the nameiexec-mcp-email-demo." - "List all protected data tied to my wallet."
- "Grant access to protected data
0x123for iExec appweb3mailand user0xUSER." - "Revoke access to protected data
0x123for appweb3mailand user0xUSER." - "Revoke all access for protected data
0x123." - "Transfer the ownership of protected data
0x123to0x456." - "Send email to
0xrecipientwith subjectUpdateand messageAccess approved." - "List all my Web3mail contacts."
- "What's my wallet balance on iExec?"
- "Do I have a user voucher?"
- "Run app
0xAPPon protected data0xDATA."
11. Security & Best Practices
- For production, use
PRIVATE_KEY_PATHand keep your wallet file secure. - Never commit your private key or wallet file to source control.
- The server runs locally; your private key is never sent externally.
- Claude and other agents never access your key or raw data.
12. Help & Resources
13. Contributing
Contributions welcome! Open an issue or PR to suggest improvements.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。