Puente MCP Gateway
Provides a Coinbase AgentKit action provider for autonomous agents to simulate and execute Base L2 debt rescues and earn builder revenue share.
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., "@Puente MCP Gatewayscan my Morpho Blue debt on Base and simulate a flash-loan rescue plan"
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.
โก Santa Rosa Protocol
Headless DeFi Infrastructure, Anti-Liquidation Engine & MCP Gateway on Base L2
๐ Live Public Endpoints & Official Base L2 Bridges (Puente Oficial)
Connect remote AI agents, bots, and applications directly over HTTPS:
Service | Public Endpoint / Puente | Protocol | Description |
Puente MCP Gateway |
| JSON-RPC 2.0 | Native Model Context Protocol tools for AI agents. |
Puente Health & Telemetry API |
| REST | Live Base L2 network and contract status. |
Operations Live Dashboard | Web / SSE | Real-time telemetry feed and agent transaction monitor. |
๐ Base L2 On-Chain Bridge Addresses (Puente Oficial)
For bridging cross-chain collateral and settlement into Base:
Base L2 Standard Bridge (L2):
0x4200000000000000000000000000000000000010Base Portal Bridge (Ethereum L1):
0x49048044D57e1C92A77f79988d21Fa8fAF74E97e
Related MCP server: liquidation-oracle
๐ Deployed Contracts (Base Mainnet โ ChainId: 8453)
Santa Rosa Router:
0xcd4f88bca4e2653fd24f61b4ef3aaccd76310a57Protocol Treasury:
0x8f7670EA615910D0A86320e84A611577F68E3908Flash Loan Liquidity: Morpho Blue (0.00% fee โ $160M+ USDC liquidity)
๐ก What is Santa Rosa Protocol?
Santa Rosa Protocol is an autonomous, non-custodial Machine-to-Machine (M2M) execution framework built on Base L2. It bridges complex on-chain DeFi operations directly into LLM agent environments via the Model Context Protocol (MCP).
When a borrower's loan approaches liquidation on Morpho Blue or Aave v3, external liquidators seize collateral and penalize the borrower 5.00%. Santa Rosa executes an atomic, gasless simulation and instantaneous Debt Rescue using 0.00% fee Morpho Blue flash loans, charging only 0.25% flat fee.
Borrowers save ~95% of their penalized capital (20.0x cheaper), while the referring AI agent or builder receives an instant 0.05% builder revenue share paid in USDC in the exact same transaction block.
๐ The 20x Cost Breakthrough (Mathematical Comparison)
User Rescued Debt (USD) | External MEV Penalty (5.00%) | Santa Rosa Rescue Fee (0.25%) | ๐ก๏ธ Net Capital Saved by User | ๐ธ Builder Rev-Share (0.05% in USDC) |
$10,000 | $500.00 | $25.00 | $475.00 (20.0x cheaper) | $5.00 USDC |
$50,000 | $2,500.00 | $125.00 | $2,375.00 (20.0x cheaper) | $25.00 USDC |
$100,000 | $5,000.00 | $250.00 | $4,750.00 (20.0x cheaper) | $50.00 USDC |
$500,000 | $25,000.00 | $1,250.00 | $23,750.00 (20.0x cheaper) | $250.00 USDC |
$1,000,000 | $50,000.00 | $2,500.00 | $47,500.00 (20.0x cheaper) | $500.00 USDC |
๐๏ธ Architecture & Execution Flow
flowchart TD
subgraph Clients["Agents & Builders"]
C1["Claude Desktop"]
C2["Cursor IDE"]
C3["Coinbase AgentKit"]
C4["ElizaOS Agent"]
C5["Sentinel Keeper Bot"]
end
subgraph Gateway["Public Gateway"]
MCP["Puente MCP Gateway (JSON-RPC 2.0)\n/mcp"]
REST["REST API & Health\n/health & /v1/simulate"]
end
subgraph OnChain["Base Mainnet (8453)"]
Router["FlashShiftRouter Contract\n0xcd4f88bca4e2653fd24f61b4ef3aaccd76310a57"]
MorphoFlash["Morpho Blue Flash Loan\n(0.00% Fee)"]
Lending["Morpho Blue / Aave v3\n(Debt Repayment & Collateral Release)"]
PMM["KyberSwap / Private Market Makers\n(Zero Price Impact Swap)"]
Treasury["Treasury (80%)\n0x8f76...3908"]
Builder["Builder Payout (20%)\n(0.05% Volume in USDC)"]
end
Clients -->|Remote MCP / HTTP| Gateway
Gateway -->|Calldata| Router
Router -->|1. Borrow USDC (0% fee)| MorphoFlash
MorphoFlash -->|2. Callback| Router
Router -->|3. Repay Debt| Lending
Lending -->|4. Release Collateral| Router
Router -->|5. Swap Collateral| PMM
Router -->|6. Repay Flash Loan| MorphoFlash
Router -->|7a. Protocol Fee (0.20%)| Treasury
Router -->|7b. Instant Builder Reward (0.05%)| Builder๐ค Builder Revenue Share Program (5 bps Instant USDC)
Any referring wallet, agent, or bot earns 0.05% (5 bps) of rescued volume in USDC. The fee is distributed atomically on-chain in the same transaction block via smart contract.
Smart Contract Execution Logic (FlashShiftRouter.sol):
// Split total 0.25% fee (25 bps) into:
// - Protocol Treasury: 20 bps (80%)
// - Builder / Referrer: 5 bps (20% of fee = 0.05% of volume in USDC)
uint256 builderFee = (amount * RESCUE_BUILDER_BPS) / BPS_DENOMINATOR;
uint256 protocolFee = (amount * RESCUE_PROTOCOL_BPS) / BPS_DENOMINATOR;
IERC20(loanToken).safeTransfer(treasury, protocolFee);
if (builder != address(0) && builderFee > 0) {
IERC20(loanToken).safeTransfer(builder, builderFee);
}REST API Integration Example:
curl -X POST https://sunset-determining-budget-deluxe.trycloudflare.com/v1/simulate/rescue \
-H "Content-Type: application/json" \
-d '{
"userAddress": "0x10c53e75fE7A7E6bF58a9e68B6a30Fcc7D4e6e2c",
"currentDebtUsd": 41227.81,
"currentCollateralUsd": 42536.10,
"debtToRepayUsd": 41227.81,
"referralAddress": "0xYourPayoutWalletAddress"
}'Response:
{
"summary": "Guaranteed net savings for borrower: $1,958.32 USD avoiding forced liquidation.",
"simulation": {
"financialComparison": {
"liquidationPenaltyIfLiquidatedUsd": 2061.39,
"santaRosaFeeUsd": 103.07,
"builderFeeUsd": 20.61,
"protocolFeeUsd": 82.46,
"netMoneySavedUsd": 1958.32
}
}
}๐ค 1-Click AI Agent Integration (MCP)
Santa Rosa exposes a fully managed remote MCP gateway. External agents connect in seconds without running local servers.
1. Claude Desktop (3 Steps)
1-Click Install via Smithery:
npx -y @smithery/cli install @lucascordone-spec/santa-rosa --client claudeOr edit
claude_desktop_config.json:{ "mcpServers": { "santa-rosa": { "command": "npx", "args": ["-y", "mcp-remote", "https://sunset-determining-budget-deluxe.trycloudflare.com/mcp"], "env": { "SANTA_ROSA_PARTNER_WALLET": "0xYourBaseAddressHere" } } } }Restart Claude Desktop and start scanning/rescuing Base positions!
2. Cursor IDE (3 Steps)
1-Click Install via Smithery:
npx -y @smithery/cli install @lucascordone-spec/santa-rosa --client cursorOr configure
.cursor/mcp.json:{ "mcpServers": { "santa-rosa": { "command": "npx", "args": ["-y", "mcp-remote", "https://sunset-determining-budget-deluxe.trycloudflare.com/mcp"], "env": { "SANTA_ROSA_PARTNER_WALLET": "0xYourBaseAddressHere" } } } }Ask Cursor Composer to simulate debt rescue plans or generate Base transactions.
3. Coinbase AgentKit (3 Steps)
Install Action Provider:
npm install @santa-rosa/agentkit-action-provider @coinbase/agentkit viem zodInitialize Provider:
import { AgentKit } from "@coinbase/agentkit"; import { santaRosaActionProvider } from "@santa-rosa/agentkit-action-provider"; const agentKit = await AgentKit.from({ actionProviders: [ santaRosaActionProvider({ partnerWallet: "0xYourBaseAddressHere" // Earns 0.05% in USDC }) ] });Run your autonomous agent script:
npx ts-node example-agent.ts.
4. ElizaOS Plugin (3 Steps)
Install Plugin:
npm install @santa-rosa/plugin-elizaos @elizaos/core viem zodAdd to
character.json:{ "name": "DeFi Guardian", "plugins": ["@santa-rosa/plugin-elizaos"], "settings": { "secrets": { "SANTA_ROSA_PARTNER_WALLET": "0xYourBaseAddressHere", "SANTA_ROSA_GATEWAY_URL": "https://sunset-determining-budget-deluxe.trycloudflare.com/mcp" } } }Run ElizaOS: your character can now monitor and defend vaults autonomously.
5. Sentinel Keeper Bot
# Dry run scan
node packages/sentinel-keeper/sentinel.mjs --dry-run
# 10s polling monitor
node packages/sentinel-keeper/sentinel.mjs --poll --interval 10๐ ๏ธ Available MCP Tools
get_user_debt_positions: Scans active borrow/collateral positions in Morpho Blue & Aave v3 on Base L2.simulate_rescue_savings: Gasless mathematical simulation proving 20x cheaper rescue vs. 5.00% MEV liquidation penalties and computing builder revenue.quote_debt_rescue: Generates quote with 0.25% fee (80% Protocol / 20% Builder) with 0.00% Morpho flash loan fee.quote_leverage_multiply: Generates 1-click leverage multiply plan (3xโ5x) with 0.10% fee.build_rescue_transaction: Returns ready-to-sign EVM calldata targeting the Santa Rosa Base Router (0xcd4f88bca4e2653fd24f61b4ef3aaccd76310a57).
๐งช Testing & Verification
Smart Contracts (Foundry)
cd contracts
forge test --match-path test/FlashShiftRouter.t.sol -vvvTypeScript Packages & Workspaces
npm install
npm run build๐ค Contributing & Security
Contributing Guidelines: CONTRIBUTING.md
Security & Responsible Disclosure: SECURITY.md
Awesome MCP Pull Request Template: docs/pull_request_awesome_mcp.md
Social Distribution Kit: docs/github_launch_kit.md
๐ License & Terms
This project is open-source under the MIT License.
This server cannot be deployed
Maintenance
Related MCP Connectors
17 pay-per-call web, finance, legal and onchain tools for AI agents. USDC on Base via x402/MPP.
Pay-per-call tools for AI agents, paid in USDC on Base or Solana. Web search, page and PDF reading, crypto news, Hyperliquid perps, market pulse, Chainlink price history, token checks, SEC filings, weather and more. Free calls every day, and a failed call costs nothing. Works with Tollkit Wallet.
Real-time Ethereum liquidation intelligence for AI agents and MEV bots.
Pay-per-call agent tools on Base: market pulse, USDC stats, crypto prices, JSON repair, DNS, URLs.
Related MCP Servers
AlicenseAqualityDmaintenanceAutonomous DeFi yield for AI agents on Base. Query APY rates, agent status, payment splits, and referral stats. 4 read-only tools + 1 resource.92MIT- AlicenseNot gradedqualityCmaintenanceEnables AI agents to check DeFi liquidation risk levels for lending protocols like Aave, Compound, and Morpho, including at-risk positions, liquidation prices, current prices, and aggregate exposure. Access is pay-per-call via x402 micropayments with USDC on Base, requiring no API key or signup.MIT
- AlicenseNot gradedqualityBmaintenanceLets AI agents check credit scores, request underwriting decisions, and review credit market stats, all via free unauthenticated tools on Base L2.MIT

AgentRisk MCPofficial
AlicenseAqualityCmaintenanceEnables AI agents on Base to call a check_token_risk tool before trading, providing honeypot detection, LP-lock verification, brand impersonation checks, and live sell simulation across Uniswap V2/V3/V4 and Aerodrome with a clear risk score and should-trade decision.14 npmMIT