1. Conduid
  2. Developer Tools
  3. Pendle MCP
MCP server · Developer Tools

Pendle MCP

Pendle Finance FastMCP server with AI predictions

Unclaimed last commit 11 months ago devtools
34Low

Scored 18 days ago · breakdown

About Pendle MCP

Pendle MCP is an MCP server published by maneesha029 in the Developer Tools category: pendle Finance FastMCP server with AI predictions.

The repository has 2 stars and 0 forks, with the last commit 11 months ago. Six months or more without a commit doesn't mean the server is broken, but check the open issues before depending on it in production.

Install

From source
git clone https://github.com/maneesha029/Pendle_mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Pendle MCP

Powered by Claude · Grounded in docs

I know everything about Pendle MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Pendle Finance FastMCP Server 🚀

Python FastAPI

This repository contains a Model Context Protocol (MCP) Server built with FastMCP in Python.
It connects to Pendle Finance DeFi Protocol and exposes endpoints for AI agents or clients like MCP Inspector.

Features include:

  • Fetching live yields from Pendle API
  • Simulating staking and swaps
  • Retrieving user DeFi portfolio
  • AI-based token recommendations (simulated)
  • AI future yield predictions (simulated)

⚙ Setup and Installation

  1. Prerequisites

Python 3.10+ installed on your system

Node.js 16+ if you want to use MCP Inspector

  1. Clone This Repo

git clone https://github.com/maneesa029/Pendle_mcp cd Pendle_mcp

  1. Create and Activate a Virtual Environment

Create virtual environment

python -m venv venv

Windows

.\venv\Scripts\activate

macOS/Linux

source venv/bin/activate

  1. Install Dependencies

pip install -r requirements.txt

  1. Configure .env

Create a .env file in the root folder and add your configuration:

FastAPI settings

FASTAPI_ENV=development HOST=127.0.0.1 PORT=8000

Pendle API (no secret key needed for public endpoints)

PENDLE_API_URL=https://api.pendle.finance/v1/yields

Ethereum testnet (if using staking simulation or swaps)

RPC_URL=https://sepolia.infura.io/v3/YOUR_INFURA_KEY PRIVATE_KEY=0xYOUR_TEST_PRIVATE_KEY

⚠ Security Warning: Do NOT use your main wallet private key with real funds. Always use a testnet key or a small segregated account for testing.


🔬 Running and Monitoring the Server

  1. Start the Pendle MCP Server

uvicorn server:app --reload --port 8000

You should see:

INFO: Uvicorn running on http://127.0.0.1:8000 INFO: Application startup complete.

  1. Open MCP Inspector (Optional)

If you want to test tools interactively:

npx @modelcontextprotocol/inspector

This will launch a local URL (e.g., http://127.0.0.1:6274)

Open the URL in your browser

In Tools tab, you’ll see all exposed Pendle MCP functions:

get_yield → fetch top yields

stake → simulate staking

swap → simulate swap

portfolio → user portfolio

predict_best_token → AI-recommended token

predict_future → future yield prediction


✅ 3. Test via Python Client

test_client.py

import requests

BASE = "http://127.0.0.1:8000"

print(requests.get(f"{BASE}/get_yield").json()) print(requests.post(f"{BASE}/stake", json={"user_address":"0x123","token":"PENDLE","amount":10}).json()) print(requests.get(f"{BASE}/predict_best_token").json())


🔹 Features

Fetch live Pendle yields from API

Simulate staking and swaps

Retrieve user DeFi portfolio

AI predicts best token to stake

AI predicts future yields for N days

Works seamlessly with MCP Inspector or any AI agent


🔹 Optional AI Improvements

Replace random predictions with historical yield ML model (scikit-learn / Prophet)

Include portfolio optimization for multiple tokens

Connect Ethereum testnet to simulate real transactions

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Pendle MCP

How do I install Pendle MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Pendle MCP safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Pendle MCP still maintained?

The last commit was 11 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.