Let AI agents use any smart contract by its ENS name. You sign every write in your own wallet.
Web3MCP lets AI agents use any smart contract just by its ENS name, with no custom integration code.
Today an agent can only use a protocol if someone writes and maintains an integration for it. With Web3MCP, the protocol publishes a manifest of agent tools in text records on its own ENS name, such as agentswap.web3mcp.eth. Install one plugin in Claude Code or Codex and ask "swap 0.001 ETH for USDC on agentswap.web3mcp.eth". The agent reads the manifest from ENS, checks the contracts, quotes the swap and prepares the transaction. A local signing page shows each step in plain words and your balances after the swap, simulated, and you sign in your own browser wallet. The agent never holds a key.
If you don't name a protocol ("swap my ETH to USDC"), the agent searches an index on Arkiv, where any protocol lists itself with its own wallet. It then verifies the result against ENS before using it.
It's an onchain web for AI agents: a contract and its tool manifest are the site, ENS is DNS, Arkiv is the search engine, the MCP server is the browser, and your wallet signs. No company runs a server in the middle, and nobody can remove a protocol's listing.
Live on Sepolia:
Safety: manifests are untrusted input, so they're validated and fail closed. A contract is marked owner-verified only when its ENS primary name points back to the publishing name. Contract code, including proxy implementations, is re-checked before every write, and every write is simulated before you see it.
Everything is TypeScript in one npm monorepo, plus Foundry for the contract.
SDK (@web3mcp/evm, on npm): a zod schema for the manifest, plus ENS discovery, reads and writes with viem. It reads the org.web3mcp.manifest text record, checks it against the keccak256 digest in org.web3mcp.digest, then validates it and fails closed. A contract is owner-verified when its ENS primary name is the publishing name or a subname of it. The SDK hashes each contract's code, including EIP-1967 and EIP-1822 proxy implementations, and refuses a write if the code changed since discovery. Writes are built from the manifest's argument bindings, approvals that already exist are skipped, and all steps are simulated together with viem's simulateCalls to get the balance changes.
MCP server (@web3mcp/mcp): one generic server on the official MCP SDK, with no protocol-specific code. Its tools are search, discover, read, call, status and wallet. Every write opens a local signing page (plain TypeScript and viem, bundled with esbuild) where the user's own browser wallet signs: one prompt through EIP-5792 wallet_sendCalls when the wallet supports batching, otherwise one transaction at a time. A Claude Code PreToolUse hook confirms every write. There's no private key anywhere.
Plugin: the server ships as one bundled file in a plugin for Claude Code and Codex, so it needs only Node 22. The web3mcp-build skill carries its own checker, so any coding agent can write, check and publish a manifest.
ENS: manifests live in text records on the protocol's own name. The web3mcp-publish CLI detects whether the resolver is ENSv1 or ENSv2's PermissionedResolver and prints the right setText calldata. With ENSv2, a release key can get a role for only the org.web3mcp.* records. Tool inputs accept ENS names, and primary names prove contract ownership.
Arkiv: the search engine. Each search term is an indexed attribute, so a search is one Arkiv query filtered by chainId. The publisher's wallet owns its listing; listings expire after 30 days unless refreshed, and an updated manifest replaces its listing atomically with executeBatch. Hosts keep a listing only while its digest matches ENS, so the index can't send an agent anywhere unexpected.
Uniswap v4 and Chainlink: AgentSwap swaps straight through the v4 PoolManager (unlock, swap, settle, take) with native ETH and Circle's USDC, and checks the price against Chainlink's ETH/USD feed. It was deployed with the deterministic CREATE2 deployer. Hacky bit: Uniswap's V4Quoter is non-view because it runs the swap and reverts, so we added a dryRun flag to the manifest that lets a read tool call it, only ever as eth_call. Contract tests fork Sepolia and swap on the real pool.
Website and docs: Next.js and Mermaid.
We built this with Claude Code as an AI coding assistant, and every AI-assisted commit says so.

