setup-wagmi-metamask-connector

setup-wagmi-metamask-connector is a skill for Cursor from MetaMask/metamask-connect-cursor-plugin. It costs 33 tokens per session (2,226 once invoked), scanned A, original, MIT.

Setup guidance for connecting a wagmi-based Ethereum application to MetaMask, a cryptocurrency wallet, through the MetaMask EVM connector.

In plain words
What is it for?
Use it when starting or updating a wagmi application that needs MetaMask wallet connections.
Why use it?
It helps avoid incompatible package versions and explains the required connection setup, including chain switching, signing, and transactions.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the metamask-connect plugin — 18 skills, 3 agents shipped together

Good fit Use it when starting or updating a wagmi application that needs MetaMask wallet connections.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/metamask/metamask-connect-cursor-plugin/setup-wagmi-metamask-connector
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add MetaMask/metamask-connect-cursor-plugin --skill setup-wagmi-metamask-connector
Clone the repo
git clone --depth 1 https://github.com/MetaMask/metamask-connect-cursor-plugin

Made for: Cursor.

Or install metamask-connect, the plugin that ships this one along with the rest of its 18 skills, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup-wagmi-metamask-connector

README.md
[![agentmods](https://agentmods.dev/badge/skills/metamask/metamask-connect-cursor-plugin/setup-wagmi-metamask-connector/github.svg)](https://agentmods.dev/skills/metamask/metamask-connect-cursor-plugin/setup-wagmi-metamask-connector)
Your own site
<a href="https://agentmods.dev/skills/metamask/metamask-connect-cursor-plugin/setup-wagmi-metamask-connector"><img src="https://agentmods.dev/badge/skills/metamask/metamask-connect-cursor-plugin/setup-wagmi-metamask-connector/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup-wagmi-metamask-connector

Your own site · 80×15
<a href="https://agentmods.dev/skills/metamask/metamask-connect-cursor-plugin/setup-wagmi-metamask-connector"><img src="https://agentmods.dev/badge/skills/metamask/metamask-connect-cursor-plugin/setup-wagmi-metamask-connector.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,226 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.02226
Opus 5 $0.00016 $0.01113
Sonnet 5 $0.00007 $0.00445
Haiku 4.5 $0.00003 $0.00223

Measured 11d ago against content hash 89f390297e6f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

setup-wagmi-metamask-connector scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/setup-wagmi-metamask-connector/SKILL.md · 303 lines

How it starts

The opening of the file, as written. The whole thing — 303 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Set Up Wagmi with MetaMask Connect EVM Connector

When to use

  • Building a new wagmi-based dApp that needs MetaMask wallet connectivity
  • Adding the MetaMask connector to an existing wagmi config
  • Need a working wagmi + MetaMask setup with connection, chain switching, signing, and transactions
  • Integrating MetaMask via the new @metamask/connect-evm SDK in a wagmi project

Workflow

Step 1: Install Dependencies

npm install wagmi viem @tanstack/react-query

# Check which @metamask/connect-evm range wagmi's connector was built against:
npm info @wagmi/connectors peerDependencies
# ... then install a version inside that range (currently ^1.3.0):
npm install @metamask/connect-evm@"^1.3.0"

The connect-evm-backed metaMask() connector ships in wagmi >= 3.6 / @wagmi/connectors >= 8, which declares @metamask/connect-evm as an optional peer dependency. Install a version that satisfies wagmi's declared peer range — do not install @metamask/connect-evm@latest blindly: the current 2.x line does not satisfy ^1.3.0, and pairing the connector with a major it wasn't built against produces peer warnings and undefined behavior. @metamask/connect-multichain is installed transitively by connect-evm; you do not need to add it.

Step 2: Create Wagmi Config

import { createConfig, http } from 'wagmi'
import { mainnet, sepolia, optimism, polygon } from 'wagmi/chains'
import { metaMask } from 'wagmi/connectors'

export const config = createConfig({
  chains: [mainnet, sepolia, optimism, polygon],
  connectors: [
    metaMask({
      dapp: {
        name: 'My Dapp',
        url: window.location.href,
        iconUrl: 'https://mydapp.com/icon.png',
      },
      debug: false,
    }),
  ],
  transports: {
    [mainnet.id]: http(),
    [sepolia.id]: http(),
    [optimism.id]: http(),
    [polygon.id]: http(),
  },
})

declare module 'wagmi' {
  interface Register {
    config: typeof config
  }
}

The connector automatically builds supportedNetworks from the configured chains and their default RPC URLs. You do not need to pass RPC URLs manually.

Read the full file on GitHub · 303 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 303 lines · 33 tokens per session scan A 89f390297e6f

Subscribe to this mod's changes

setup-wagmi-metamask-connector is a skill published in the GitHub repository MetaMask/metamask-connect-cursor-plugin (2 stars, last pushed 2mo ago), licensed MIT. It adds 33 tokens to every session and 2,226 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

prowler-tour

Keeps product-tour definitions aligned with the UI features they describe. Trigger: When modifying UI components that have associated tours, editing tour definition files, or renaming data-tour-id attributes.

prowler-cloud/prowler · 41 tokens

onchainkit

Build onchain apps with Coinbase's OnchainKit React components - wallets, swaps, NFTs, payments.

alsk1992/CloddsBot · 24 tokens

remotion-animation

Generates animation configurations for Remotion including spring configs, interpolations, easing functions, and timing logic. Focuses ONLY on animation parameters, NOT component implementation. Use when defining animation behavior or when asked to "configure animations", "setup spring configs", "define easing curves".

Marve10s/Better-Fullstack · 59 tokens

system-text-json-net11

Imperative guidance for the System.Text.Json APIs added in .NET 11: the built-in JsonNamingPolicy.PascalCase naming policy, and the strongly-typed JsonSerializerOptions.GetTypeInfo () and JsonSerializerOptions.TryGetTypeInfo (out JsonTypeInfo ? info) metadata accessors. USE ONLY when the user is targeting net11.0 or…

managedcode/dotnet-skills · 178 tokens

adopting-generated-api-types

Use when migrating frontend code from manual API client calls (api.get, api.create, api.surveys.get, api.dashboards.list, new ApiRequest()) and handwritten TypeScript interfaces to generated API functions and types. Triggers on files importing from lib/api, files with api.get . , manual interface definitions that…

PostHog/posthog · 131 tokens

dapp-frontend-patterns

Use when building dApp frontends with wagmi v2 and viem. Covers useReadContract, useWriteContract, useSimulateContract, useWaitForTransactionReceipt, wallet connection (RainbowKit), chain switching, and ENS resolution.

ccashwell/evm-cortex · 56 tokens