MetaMask Embedded Wallets MCP
Teaches AI coding agents how to reason correctly about MetaMask Embedded Wallets / Web3Auth architecture, SDK choice, key derivation, auth flows, and common integration pitfalls.
README
MetaMask Embedded Wallets MCP Server
Build MetaMask Embedded Wallets integrations faster by giving your AI coding assistant live access to the documentation and deep knowledge of the SDK.
There are two things to set up:
- Skill — Teaches your AI assistant how to think about the SDK: architecture, framework quirks, key derivation rules, and common mistakes. No code in the skill; the MCP provides that.
- MCP server — Gives your AI assistant real-time access to search docs, fetch examples, and look up SDK types.
MCP Tools
| Tool | What it does |
|---|---|
search_docs |
Search documentation and example projects |
get_doc |
Fetch the full content of any doc page |
get_example |
Fetch complete source code of an integration example |
get_sdk_reference |
Fetch SDK types and hooks from the open-source repos |
search_community |
Search the MetaMask Builder Hub for real user issues |
Skill
The skill teaches your AI assistant the mental model for MetaMask Embedded Wallets. It includes SDK selection logic, key derivation rules, authentication concepts, platform quirks, and common mistakes that aren't obvious from the docs alone.
Tip: For the best experience, use the MCP server alongside the skill so that your LLM can fetch live docs and examples rather than relying on static text.
Cursor
npx degit Web3Auth/web3auth-mcp/skills/web3auth .cursor/skills/web3auth
Cursor picks up any SKILL.md inside .cursor/skills/ automatically and activates it when relevant.
Claude Code CLI
npx degit Web3Auth/web3auth-mcp/skills/web3auth /tmp/web3auth-skill
cat /tmp/web3auth-skill/SKILL.md >> CLAUDE.md
Claude Desktop
Open Claude Desktop → Settings → Custom Instructions and paste the contents of skills/web3auth/SKILL.md directly.
Antigravity
npx degit Web3Auth/web3auth-mcp/skills/web3auth .agent/skills/web3auth
Antigravity picks up skills inside .agent/skills/ automatically. For global installation across all
projects, use ~/.gemini/antigravity/skills/ instead.
Other tools
For any LLM tool with a system prompt or custom instructions field, paste the contents of
skills/web3auth/SKILL.md directly.
MCP Server Setup
Cursor
The fastest way is one click:
Or add it manually. Open Cursor Settings → Tools & Integrations → MCP and add:
{
"mcpServers": {
"web3auth": {
"url": "https://mcp.web3auth.io"
}
}
}
Claude Code CLI
claude mcp add --transport http web3auth https://mcp.web3auth.io
Or add manually to your project's claude.json:
{
"mcpServers": {
"web3auth": {
"url": "https://mcp.web3auth.io"
}
}
}
Claude Desktop
Open your Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add the server to the mcpServers section:
{
"mcpServers": {
"web3auth": {
"url": "https://mcp.web3auth.io"
}
}
}
Restart Claude Desktop and ask: "Search MetaMask Embedded Wallets docs for React quick start" to verify the connection.
Antigravity
Open your MCP configuration file:
- macOS/Linux:
~/.config/antigravity/mcp.json - Windows:
%APPDATA%\antigravity\mcp.json
Add the server to the mcpServers section:
{
"mcpServers": {
"web3auth": {
"url": "https://mcp.web3auth.io"
}
}
}
Antigravity hot-reloads MCP config changes — no restart required.
Codex CLI
For Codex CLI or any stdio-only agent, use mcp-remote to bridge the HTTP endpoint:
npm install -g mcp-remote
Then add to your agent's configuration:
{
"mcpServers": {
"web3auth": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.web3auth.io"]
}
}
}
Static docs (llms.txt)
If your AI tool doesn't support MCP yet, use the static documentation file instead:
https://docs.metamask.io/llms-full.txt
For tools that support the llms.txt spec and can index docs automatically:
https://docs.metamask.io/llms.txt
Warning: The static file is a snapshot and may not include the latest updates. Use the MCP server when possible for always-current docs.
Start building
Once the skill and MCP are set up, ask your AI assistant directly. Good starting prompts:
- "Add MetaMask Embedded Wallets to my React app with Google login."
- "Set up social login wallets in my Next.js app using Wagmi."
- "Integrate embedded wallets in my Flutter app."
- "Why are my users getting different wallet addresses after I changed the login method?"
Tip: Use planning mode (where available) for your initial prompt. Review the plan before generating code — this catches architecture mistakes early and avoids config errors that would change wallet addresses in production.
Environment Variables
| Variable | Required | Description |
|---|---|---|
GITHUB_TOKEN |
No | GitHub personal access token. Optional but recommended to avoid rate limits when fetching SDK source code via get_sdk_reference |
Development
npm install
npm run build
npm start # Run via stdio
npm run dev # Watch mode
Updating Content
When a product update ships, only a few files need changing:
| What changed | File to update |
|---|---|
| SDK architecture / new gotchas | skills/web3auth/SKILL.md |
| New doc pages or URL changes | src/content/registry.ts |
| Platform capabilities changed | src/content/platform-matrix.ts |
| SDK repo structure changed | src/content/sdk-registry.ts |
| New tool category needed | src/tools/register.ts |
| Doc page content changed | Nothing (fetched live) |
License
MIT
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。