ProofYield MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ProofYield MCP find high-yield DeFi opportunities on Base"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ProofYield MCP
An Enterprise-Grade Model Context Protocol (MCP) Server for Verifiable DeFi Yield Discovery and Algorithmic Portfolio Planning.
Overview
ProofYield MCP bridges the gap between Large Language Models (LLMs) and decentralized finance by providing AI agents with standardized, secure tools to discover yield opportunities, formulate execution plans, and verify cryptographic proof-of-work receipts. Built on top of the Model Context Protocol (MCP), it acts as a modular middleware pipeline that enables assistants (such as Claude, Cursor, and custom agents) to interact safely with blockchain yield protocols.
Key Features
Discovery Engine: Query real-time, risk-adjusted yield opportunities across decentralized protocols using standardized MCP tools.
Algorithmic Planning: Generate multi-step, risk-mitigated DeFi allocation strategies and execution paths tailored to user parameters.
Cryptographic Receipts & Evidence Tracking: Every discovery and planning action generates auditable proof receipts and evidence logs stored in persistent repositories.
Hardened Auth & Security Pipeline: Built-in middleware for request validation, authentication, and secure interaction modeling.
Interactive UI Widgets: Embedded modern frontend components (built with Next.js & React) designed to render rich DeFi dashboards directly inside MCP-client chat interfaces.
Smart Contract Integration: Includes Solidity smart contracts (e.g.,
MockYieldVault) deployed and tested using Foundry for on-chain verification and simulation.
Related MCP server: Universal Crypto MCP
Architecture & Project Structure
The project is structured into modular layers with clear separation between MCP protocol handling, core business logic, on-chain contracts, and frontend widget rendering:
proofyield-mcp/
├── contracts/ # Solidity smart contracts & Foundry suites
│ ├── MockYieldVault.sol # Mock yield vault for testing & simulation
│ └── test/ # Foundry test cases (.t.sol)
├── deployments/ # Chain deployment artifacts (e.g., Base Sepolia)
├── scripts/ # Automation, deployment, and testing scripts
│ ├── deploy-vault.ps1 # PowerShell script for vault contract deployment
│ ├── dev-browser.mjs # Helper to launch UI widgets in browser dev mode
│ └── live-smoke.mjs # Smoke testing script against live/test environments
├── src/ # Core TypeScript MCP Server Application
│ ├── app.module.ts # Root application module defining DI & bootstrapping
│ ├── index.ts # Application entry point
│ ├── health/ # Health check endpoints and system monitoring
│ ├── modules/ # Domain specific feature modules
│ │ ├── discovery/ # Yield opportunity discovery (Tools, Prompts, Resources)
│ │ ├── planning/ # Strategy planning (Tools, Prompts, Resources)
│ │ └── shared/ # Shared services, schemas, & repositories
│ │ ├── config.service.ts # Environment & configuration management
│ │ ├── evidence.repository.ts # Persistence layer for audit/evidence logs
│ │ ├── receipt.repository.ts # Persistence layer for proof-of-work receipts
│ │ └── schemas.ts # Zod / data validation schemas
│ └── widgets/ # Next.js frontend widgets for MCP UI rendering
│ ├── app/ # Next.js App Router (Dashboard pages & layouts)
│ ├── lib/ # Browser MCP client utilities
│ └── out/ # Static HTML exports for UI embeds
├── tests/ # Integration and security test suites
│ └── core-security.test.mjs # Core auth & security validation tests
├── foundry.toml # Foundry configuration for smart contracts
├── package.json # Node.js dependencies & NPM scripts
└── tsconfig.json # TypeScript compiler configurationPrerequisites
Ensure your development environment meets the following requirements:
Node.js: v18.x or v20.x (LTS recommended)
Package Manager: npm, pnpm, or yarn
Foundry: Required for smart contract compilation and testing (
forge,cast,anvil)Git: For version control and submodule management
Getting Started
1. Clone the Repository
git clone https://github.com/your-org/proofyield-mcp.git
cd proofyield-mcp2. Install Dependencies
Install the root server dependencies as well as the UI widget dependencies:
# Install root MCP server dependencies
npm install
# Install Next.js UI widget dependencies
cd src/widgets && npm install && cd ../..3. Environment Configuration
Copy the example environment file and configure your local variables:
cp .env.example .envOpen .env and configure your RPC URLs, private keys (for testnets), and MCP server port configurations.
4. Build the Project
Compile the TypeScript server, build the frontend UI widgets, and compile the Foundry smart contracts:
# Build the TypeScript MCP server
npm run build
# Build the Next.js UI Widgets
cd src/widgets && npm run build && cd ../..
# Compile Solidity contracts using Foundry
forge buildRunning the Application
Development Mode
Run the MCP server locally with hot-reloading enabled for rapid development:
npm run devTo test or develop the interactive UI widgets in your browser, launch the widget dev server:
node scripts/dev-browser.mjsProduction Mode
To run the compiled production server:
npm startMCP Modules & Core Capabilities
The server exposes two primary AI-facing modules via the Model Context Protocol:
1. Discovery Module (/src/modules/discovery)
Tools (
discovery.tools.ts): Allows agents to query yield vaults, filter by APY/TVL, and assess smart contract risk scores.Resources (
discovery.resources.ts): Exposes live feeds of verified protocol metrics.Prompts (
discovery.prompts.ts): Pre-configured system prompts that instruct LLMs on how to analyze yield data objectively without hallucinating APYs.
2. Planning Module (/src/modules/planning)
Tools (
planning.tools.ts): Provides algorithmic step-by-step route generation for capital allocation (e.g., Bridge → Swap → Stake → Deposit).Resources (
planning.resources.ts): Access to historical execution strategies and gas optimization models.Prompts (
planning.prompts.ts): Guides agents in presenting risk-adjusted financial strategies and requesting user confirmation before execution.
3. Shared Evidence & Receipt Repositories
Every action taken by the Discovery and Planning modules is cryptographically recorded:
receipt.repository.ts: Stores verifiable proof-of-work receipts for completed tool calls.evidence.repository.ts: Maintains audit logs and data snapshots used to justify AI recommendations.
Smart Contracts & Blockchain Layer
The /contracts directory contains the on-chain components powering ProofYield:
MockYieldVault.sol: An ERC-4626 compatible mock yield vault used to simulate staking, yield generation, and withdrawal flows on testnets (e.g., Base Sepolia).
Deploying Contracts
Use the provided deployment scripts or Foundry directly:
# Deploy using Foundry (example for Base Sepolia)
forge script contracts/deploy/Deploy.s.sol:Deploy --rpc-url $BASE_SEPOLIA_RPC --broadcast
# Or use the provided automation script
./scripts/deploy-vault.ps1Testing & Verification
We enforce strict test coverage across smart contracts, server logic, and security pipelines.
Run Smart Contract Tests (Foundry)
Execute the Solidity test suite to verify vault mechanics and math:
forge test -vvvRun Server & Security Tests
Run the Node.js test suites to validate middleware pipelines, authentication guardrails, and tool execution:
# Run core security and authentication tests
node tests/core-security.test.mjs
# Execute a live smoke test against running endpoints
node scripts/live-smoke.mjsAgent & IDE Integration
ProofYield MCP includes pre-configured agent skill profiles and configuration rules for major AI coding assistants and environments.
Claude / Cursor / Copilot / Gemini / OpenCode: Check the .agents/, .claude/, .cursor/, and .gemini/ directories for specialized SKILL.md instructions covering:
auth-security: Best practices and rules for authentication and key management.
mcp-app-architecture: Guidelines on extending modules and tools.
middleware-pipeline: How to inject custom interceptors and logging into request lifecycles.
ui-widgets: Instructions for building and embedding Next.js widgets into chat streams.
To connect this server to your local MCP client (e.g., Claude Desktop), add the following to your claude_desktop_config.json:
{
"mcpServers": {
"proofyield": {
"command": "node",
"args": ["/absolute/path/to/proofyield-mcp/dist/index.js"],
"env": {
"NODE_ENV": "production"
}
}
}
}Available Tools
9 toolsexecution_preparePrepare the simulated wallet transactionAIdempotent
Return only the exact unsigned transaction produced by the latest non-expired simulation. The server does not sign or submit it and never accepts caller-provided targets or calldata.
Inputs: planHash (required). Returns: to, data, from, kind, +10 more
execution_verifyVerify the signed testnet transactionBIdempotent
Read the live transaction and receipt, prove that sender, target, calldata, value, chain, and postconditions match the prepared plan, and never report success without on-chain evidence.
Inputs: chainId (required), planHash (required), transactionHash (required). Returns: kind, status, chainId, gasUsed, +9 more
monitor_checkCheck whether a rebalance should be proposedARead-only
Compare a stored executed/planned decision with a fresh validated opportunity scan. It can recommend a new proposal but never moves funds automatically.
Inputs: planHash (required), currentOpportunities (required). Returns: status, planHash, triggers, observedAt, +2 more
opportunities_scanResearch approved yield opportunitiesBRead-only
Query only configured allowlisted adapters for test-USDC opportunities. Live Aave rates are read on-chain; controlled vault rates are explicitly labeled simulated; DO_NOTHING is always included.
Inputs: amount (required), assetId (required), walletAddress (required), allowedChainIds. Returns: object
plan_simulateSimulate the next bounded wallet actionB
Revalidate a stored plan and trusted adapter against live chain state. If allowance is insufficient, safely simulate and return only an exact approval transaction; otherwise simulate the protocol action and expected postconditions.
Inputs: planHash (required). Returns: planId, status, chainId, success, +11 more
portfolio_getSnapshotRead testnet portfolioARead-only
Read live native and configured test-USDC balances for a validated wallet on supported testnets. Returns per-chain failures without fabricating balances.
Inputs: walletAddress (required), chainIds. Returns: chains, snapshotHash, walletAddress, observedTimestamp
receipt_getRead the Decision ReceiptARead-onlyIdempotent
Retrieve the complete validated Decision Receipt by receipt ID or plan hash. Receipts persist across restarts only when the optional local hackathon store is configured.
Inputs: idOrHash (required). Returns: plan, stage, intent, policy, +17 more
strategy_createPlanBuild a policy-bounded treasury planA
Validate a server-produced wallet snapshot and opportunity set, apply deterministic hard gates before ranking, include the liquid baseline, and create a short-lived typed plan. Caller-provided addresses never become trusted execution targets.
Inputs: amount (required), snapshot (required), opportunities (required), policy. Returns: plan, stage, intent, policy, +17 more
system_getStatusOpen ProofYieldARead-only
Open the ProofYield treasury dashboard and report public configuration. The connected MCP host LLM is the reasoning brain; deterministic ProofYield code authorizes every financial action.
Inputs: no named parameters. Returns: brain, phase, tools, version, +6 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct financial action: plan creation, system status, receipt retrieval, portfolio snapshot, opportunity scanning, plan simulation, unsigned transaction preparation, execution verification, and post-execution monitoring. No two tools overlap in purpose.
All tools follow a consistent noun_verb pattern (e.g., strategy_createPlan, portfolio_getSnapshot, execution_prepare). The verb portion is uniformly a verb or verb phrase, and the noun prefix clearly identifies the domain area.
With 9 tools, the server covers the entire lifecycle of a yield strategy—from opportunity scanning and planning to simulation, preparation, verification, and monitoring—without unnecessary redundancy.
The tool set provides a complete workflow for testnet yield management: scanning opportunities, creating plans, simulating, preparing unsigned transactions, verifying on-chain execution, and monitoring outcomes. No obvious gaps exist for the intended domain.
Maintenance
Related MCP Connectors
Underwritten DeFi yield discovery & goal planning for AI agents on Base & EVM.
Discover DeFi yield opportunities and manage Zyfai positions with self-custodial AI agents.
Passive income opportunity scanner. Yield analysis and portfolio optimization for AI agents.
Agentic AI runtime: persistent memory, vault, autonomous agents, deep research, DeFi execution.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI-powered DeFi operations across Ethereum, Polygon, and Solana with automated portfolio optimization, risk assessment, and yield farming strategies. Provides intelligent portfolio diagnostics, investment strategy generation, and multi-chain DeFi protocol integration through natural language.-
- FlicenseCqualityBmaintenanceEnables AI agents to interact with any EVM-compatible blockchain through natural language, supporting token swaps, cross-chain bridges, staking, lending, governance, gas optimization, and portfolio tracking across networks like Ethereum, BSC, Polygon, Arbitrum, and more.10031 npm44-
- AlicenseAqualityBmaintenanceDeFi execution and agent-to-agent economy tools for AI agents — swaps, yield, transfers, policy enforcement, trust scoring, A2A jobs, and P\&L across Ethereum, Base, Arbitrum, and Polygon.311Apache 2.0
- FlicenseBqualityDmaintenanceEnables AI assistants to discover, evaluate, and execute DeFi yield strategies across EVM and Solana chains through natural conversation, with transactions signed locally.153 npm1-