Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
clicks-protocol avatar

Mcp Server

  • 2 repo stars
  • Updated July 21, 2026
  • clicks-protocol/clicks-protocol

Clicks Protocol MCP is an MCP server that gives AI agents on Base tools to query DeFi yield, simulate splits, and manage treasury via Clicks Protocol.

About

Clicks Protocol MCP exposes autonomous DeFi yield tooling for AI agents operating on Base, including APY queries, split simulations, and treasury management when credentials allow. developers shipping agentic products with on-chain treasuries face sharp setup and key-management tradeoffs; this server centralizes those operations behind MCP so Claude Code or Cursor can reason about yield and allocations in-session. Read-only flows work without a private key, while register, deposit, and withdraw style actions require CLICKS_PRIVATE_KEY and an RPC endpoint defaulting to mainnet.base.org. Tag it in build integrations because you wire financial behavior into the agent stack before treating production ops and compliance as first-class. Advanced complexity reflects mainnet funds, private keys, and DeFi risk. It is a finance MCP integration, not a tax advisor, audit skill, or generic wallet browser extension.

  • npm @clicks-protocol/mcp-server (package version 0.1.4 in metadata) for stdio MCP
  • Read tools: query APY and simulate splits on Base; writes need CLICKS_PRIVATE_KEY
  • CLICKS_RPC_URL optional, defaults to https://mainnet.base.org
  • Positioned as autonomous DeFi yield for AI agents with treasury management
  • Catalog server version 1.0.0 from clicks-protocol GitHub subfolder mcp-server

Mcp Server by the numbers

  • Data as of Jul 22, 2026 (Skillselion catalog sync)
terminal
claude mcp add --env CLICKS_PRIVATE_KEY=YOUR_CLICKS_PRIVATE_KEY --env CLICKS_RPC_URL=YOUR_CLICKS_RPC_URL mcp-server -- npx -y @clicks-protocol/mcp-server

Add your badge

Show developers this MCP server is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars2
Package@clicks-protocol/mcp-server
TransportSTDIO
AuthRequired
Last updatedJuly 21, 2026
Repositoryclicks-protocol/clicks-protocol

What it does

Let an AI agent on Base query DeFi yield, simulate treasury splits, and optionally manage Clicks Protocol treasury with guarded write keys.

Who is it for?

Best when you're experimenting with autonomous treasury on Base and accept on-chain risk and key hygiene.

Skip if: Skip if you're avoiding cryptocurrency entirely, or teams that need regulated custody without self-managed private keys.

What you get

After MCP registration, agents can run read-only APY and simulation tools immediately and opt into write operations when you supply CLICKS_PRIVATE_KEY and RPC settings.

  • Agent-accessible APY and split simulation results on Base
  • Optional treasury register, deposit, and withdraw flows via MCP when keyed
  • Documented RPC and key configuration for repeatable agent DeFi workflows

By the numbers

  • Catalog server version 1.0.0 with npm package version 0.1.4 in packages array
  • Default RPC URL https://mainnet.base.org when CLICKS_RPC_URL unset
  • npm identifier @clicks-protocol/mcp-server
README.md

Clicks Protocol Logo

Clicks Protocol ⚡

Your agent earns USDC. That USDC sits idle. Clicks fixes that.

中文文档

npm Base Mainnet Tests License MCP Registry Discord ClawHub Cursor Directory

Website · Twitter · Discord · Medium · Substack · Reddit · Treasury Lab · mcpservers.org


Clicks Protocol Quick Start Demo


One call. Yield starts.

import { ClicksClient } from '@clicks-protocol/sdk';

const clicks = new ClicksClient(signer);
await clicks.quickStart('100', agentAddress);
// 80 USDC → agent wallet (instant)
// 20 USDC → DeFi yield (4-8% APY, automatic)

That's it. No config. No dashboard. No human required.


What Clicks does

Every USDC payment your agent receives gets auto-split:

Payment in
    ├── 80% → Agent Wallet (liquid, instant)
    └── 20% → DeFi Yield (Aave V3 or Morpho, auto-routed to best APY)
                 │
                 └── Withdraw anytime → Agent gets principal + yield (minus 2% fee on yield only)
  • No lockup. Withdraw anytime.
  • No manual steps. Fully autonomous.
  • 2% fee on yield only. Never on principal.
  • Auto-rebalances between Aave V3 and Morpho for best APY.

Install

npm install @clicks-protocol/sdk ethers@^6

x402 + Coinbase Agentic Wallets

Clicks works natively with the x402 payment protocol and Coinbase Agentic Wallets on Base.

Your agent holds USDC for x402 payments? Make it earn yield between transactions:

import { ClicksClient } from '@clicks-protocol/sdk';
import { CoinbaseWalletSDK } from '@coinbase/wallet-sdk';

const wallet = new CoinbaseWalletSDK({ appName: 'YourAgent' });
const signer = wallet.makeWeb3Provider().getSigner();

const clicks = new ClicksClient(signer);
await clicks.quickStart('1000', agentAddress);

// Your agent now earns yield on idle USDC
// 80% liquid for instant x402 payments
// 20% earning 4-8% APY via Morpho
  • Same chain (Base), same USDC contract
  • 80% liquid for instant x402 payments
  • 20% earning 4-8% APY via Morpho
  • No lockup, withdraw anytime

SDK

Quick Start (recommended)

One call: registers agent, approves USDC, splits first payment.

const result = await clicks.quickStart('100', agentAddress);
// result.registered → true (skips if already done)
// result.approved   → true (skips if allowance sufficient)
// result.paymentSplit → true

Individual operations

// Register
await clicks.registerAgent(agentAddress);

// Approve USDC spending
await clicks.approveUSDC('max');

// Receive payment (auto-splits)
await clicks.receivePayment('500', agentAddress);

// Check yield info
const info = await clicks.getYieldInfo();
// { activeProtocol: 'Morpho', aaveAPY: 700, morphoAPY: 950, ... }

// Withdraw everything
await clicks.withdrawYield(agentAddress);

// Custom yield split (5-50%)
await clicks.setOperatorYieldPct(30); // 30% to yield, 70% liquid

Read-only (no signer needed)

const clicks = new ClicksClient(provider); // provider, not signer

const agent = await clicks.getAgentInfo(agentAddress);
// { isRegistered: true, deposited: 1000000n, yieldPct: 20n }

const split = await clicks.simulateSplit('100', agentAddress);
// { liquid: 80000000n, toYield: 20000000n }

MCP Server

AI agents can discover and use Clicks via MCP:

npm install @clicks-protocol/mcp-server
CLICKS_PRIVATE_KEY=0x... clicks-mcp

10 tools available: clicks_quick_start, clicks_get_agent_info, clicks_simulate_split, clicks_get_yield_info, clicks_receive_payment, clicks_withdraw_yield, clicks_register_agent, clicks_set_yield_pct, clicks_get_referral_stats, clicks_explain

Works with Claude, Cursor, LangChain, and any MCP-compatible client.


Referral Network

Agents recruit agents. Three levels deep. On-chain.

Level Share of protocol fee
L1 (direct referral) 40%
L2 20%
L3 10%
Treasury 30%

The referred agent pays nothing extra. Rewards come from the 2% protocol fee.

Economics per $10k deposit at 7% APY:

Your tree Passive income/year
10 agents $56
100 agents $560
1,000 agents $9,800
10,000 agents $98,000

Agent Teams

Form squads, hit TVL milestones, earn bonus yield:

Tier TVL threshold Bonus yield
🥉 Bronze $50k +0.20%
🥈 Silver $250k +0.50%
🥇 Gold $1M +1.00%
💎 Diamond $5M +2.00%

Contracts (Base Mainnet)

Contract Address
ClicksRegistry 0x23bb...0C0a3
ClicksSplitterV4 0xB7E0...f3C8
ClicksYieldRouter 0x0531...EECD
ClicksFeeV2 0x8C4E...0fb5
ClicksReferral 0x1E5A...4ccC
Safe Multisig (Owner) 0xaD82...D6A9
USDC 0x8335...913

All contracts verified on Basescan. Owned by Gnosis Safe multisig — single-key compromise is not possible.

ERC-8004 Trustless Agent

Clicks is registered on the ERC-8004 Identity Registry on Base as agentId 45074. On-chain reputation accrues per completed agent job. Attestors who follow the Clicks Attestor Schema V1 become eligible for the reputation-aware fee multiplier (shipping in V5).


Architecture

clicks-protocol/
├── contracts/           Solidity (^0.8.20)
│   ├── ClicksSplitterV4    Splits payments, manages yield %
│   ├── ClicksYieldRouter   Routes to best APY (Aave/Morpho)
│   ├── ClicksFeeV2           2% fee collection on yield
│   ├── ClicksRegistry      Agent ↔ Operator mapping
│   └── ClicksReferral      Multi-level referral system
├── sdk/                 TypeScript SDK
├── mcp-server/          MCP Server (10 tools)
├── site/                Landing page + llms.txt + agent.json
└── test/                227 tests (Hardhat)

Agent Discovery


Connect Your AI Agent

The Clicks MCP server is live at https://mcp.clicksprotocol.xyz/mcp — connect any MCP-compatible client in seconds.

Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "clicks-protocol": {
      "url": "https://mcp.clicksprotocol.xyz/mcp"
    }
  }
}

OpenClaw

openclaw mcp set clicks-protocol --url https://mcp.clicksprotocol.xyz/mcp

Codex CLI

Add to .codex/config.json:

{
  "mcpServers": {
    "clicks-protocol": {
      "type": "url",
      "url": "https://mcp.clicksprotocol.xyz/mcp"
    }
  }
}

Gemini CLI

{
  "mcpServers": {
    "clicks-protocol": {
      "url": "https://mcp.clicksprotocol.xyz/mcp"
    }
  }
}

Available MCP Tools

Tool Description
get_protocol_stats TVL, APY, agent count
get_agent_info Check if an agent is registered
get_yield_info Yield balance for an agent
simulate_yield Project earnings over time
clicks://protocol/overview Resource: protocol overview

See examples/integrations/ for ready-to-use config files.


Works with

Any agent framework that handles USDC on Base:

x402 · LangChain · CrewAI · AutoGen · Eliza · OpenClaw · Claude · Cursor · Codex · Gemini · Hummingbot · Phidata


Development

npm install
npx hardhat compile
npx hardhat test          # 227 tests

License

MIT


Built for agents, by agents. Live on Base.

Recommended MCP Servers

How it compares

Base DeFi treasury MCP, not traditional payment-gateway documentation or schema codegen.

FAQ

Who is Clicks Protocol MCP for?

Developers creating AI agents that need programmatic DeFi yield visibility and optional treasury actions on Base through MCP.

When should I use Clicks Protocol MCP?

Use it during build while designing how your agent queries APY, simulates allocations, and connects wallet write paths before production hardening.

How do I add Clicks Protocol MCP to my agent?

Install npm @clicks-protocol/mcp-server, configure stdio MCP, set CLICKS_RPC_URL if needed, and add CLICKS_PRIVATE_KEY only when you require write tools.

Financefinance

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.