YieldCave MCP Server
Tokenized asset data for agents: treasury yields, stablecoin rates, tokenized stocks, alerts.
YieldCave scores 61 (Good), licensed MIT and written in JavaScript. It can be reached as a remote MCP endpoint. It declares 12 tools. Filed under Finance. GitHub shows 0 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
61 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Where the 61 comes from
22 + 15 + 0 + 10 + 4 + 10 = 61. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 15 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Remote auth: API key required. Get a key or token from the provider first, then add it as a header in your client config. How remote auth works
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "yieldcave-yieldcave": { "url": "https://mcp.yieldcave.com" } }}
Environment variables
This server does not declare environment variables.
Tools12Tool docs quality grade D
All capabilitiesSimple-interest arithmetic: your current APY vs the best liquid tokenized treasury over a horizon, with assumptions spelled out
get_rwa_assettoolOne symbol (e.g. BUIDL) across every chain, with total TVL and a curated description
One underlying (e.g. TSLA) across every wrapper: issuers, chains, most liquid token, premium range
list_rwa_yieldstoolTokenized RWA deployments with APY and TVL. Filter by chain, kind (treasury or otherrwa), minTvlUsd; sort by tvlUsd or apy
Single-asset stablecoin pools (USDC, USDT, DAI, USDe, ...) on lending, vault, credit and basis venues, each labelled by group, with base vs reward APY, 30-day mean and TVL. $10M floor by default
Tokenized stocks, pre-IPO shares and ETFs (xStocks, bStocks, Ondo, Robinhood, Dinari, Coinbase, ...): price, market cap, volume, underlying ticker, premium/discount to the underlying quote, chains. Source: CoinGecko, quotes via Yahoo chart
rwa_changestoolWhat moved since N days ago: APY and TVL change per deployment, new and vanished deployments (hosted, or local with snapshots)
rwa_historytoolDaily TVL and TVL-weighted APY for one symbol over the last N days, with the change. universe is rwa or stablecoin. Hosted: from Postgres snapshots. Local: from npm run snapshot files
rwa_issuer_termstoolHand-curated terms for BUIDL, USYC, USDY, OUSG, USTB, TBILL, STBT, BENJI: structure, eligibility (US persons?), minimums, redemption, fees, sources, date verified
Totals: distinct treasury tokens, TVL, median APY, top five, plus other RWA totals
Per stablecoin: venues, TVL, median APY, best venue overall and best collateralized-lending venue; totals by group; tokenized-treasury median for comparison
Totals, by issuer and kind, top underlyings, premium statistics
About
YieldCave
Machine-readable tokenized-finance data for AI agents: tokenized treasuries, stablecoin yield venues, and tokenized stocks.
YieldCave is an MCP server. Add it to Claude Desktop, Claude Code or Cursor and your agent can answer questions like:
- "What tokenized US treasuries are on Solana right now, and what do they yield?"
- "How much more would $25k earn in the best liquid tokenized treasury than in my 0.4% savings account?"
- "Summarize the tokenized RWA market."
- "Where does USDC earn the most on a collateralized lending market with at least $50M behind it?"
- "Which tokenized NVIDIA token is the most liquid, and is it trading at a premium to the stock?"
It is read-only. It never touches a wallet, never moves money and never recommends. That is the point: an index, not a broker.
Data comes from DefiLlama's public API. No API key is needed.
1. Run it locally (5 minutes)
You need Node 20 or newer (node --version).
cd ~/yieldcave && npm install
See the data in your terminal:
npm run demo
Run the unit tests (no network needed):
npm test
Run the end-to-end checks, which start the real MCP server and call it the way Claude would, over stdio and over HTTP:
npm run smoke && npm run smoke:http
2. Add it to Claude Desktop
Open this file (create it if it does not exist):
~/Library/Application Support/Claude/claude_desktop_config.json
Add YieldCave under mcpServers. If the file already has other servers, add just the "yieldcave" block inside the existing object.
{
"mcpServers": {
"yieldcave": {
"command": "node",
"args": ["/Users/bjf/yieldcave/src/server.js"]
}
}
}
Quit and reopen Claude Desktop. You should see a tools icon with four YieldCave tools. Try: "Use YieldCave to summarize the tokenized treasury market."
3. Add it to Claude Code
claude mcp add yieldcave -- node /Users/bjf/yieldcave/src/server.js
3b. Use it from claude.ai in a browser (hosted version)
YieldCave also runs in the cloud on Supabase, so claude.ai (and anyone else) can reach it without your Mac being on.
https://mcp.yieldcave.com
In claude.ai: Customize → Connectors → Add → Add custom connector → paste that URL, no sign-in. The hosted version serves data from Postgres, which a scheduled job refreshes every hour, and it keeps one snapshot per day. That history powers the fifth tool, rwa_history.
How the hosted version is put together, all inside the supabase/ folder:
supabase/functions/_shared/ the real code: data.js, tools.js, mcp.js (src/ re-exports these)
supabase/functions/mcp/ public MCP endpoint, reads market_latest and snapshots from Postgres
supabase/functions/refresh/ fetches DefiLlama + CoinGecko + quotes, writes market_latest + today's snapshot, fires alerts; needs REFRESH_SECRET header
supabase/functions/enrich/ fills chain metadata for tokenized equities, 15 per run, every 10 minutes
supabase/functions/stripe-webhook/ upgrades/downgrades keys on Stripe events
supabase/functions/site/ serves the landing page (pages.js is generated from site/)
supabase/migrations/ tables (market, snapshots, alerts, api_keys, usage_daily), RLS on, hourly pg_cron job, public site bucket
scripts/ configure-stripe.sh, publish-site.sh
To redeploy after a change:
supabase functions deploy mcp --no-verify-jwt --use-api && supabase functions deploy refresh --no-verify-jwt --use-api
Check a deployment end to end (tools, history, and an alert that creates, fires, and deletes itself):
set -a; source .env.local; set +a; YIELDCAVE_URL=https://ccvhvxbqtvqbhexhrjnj.supabase.co/functions/v1/mcp npm run smoke:remote && npm run smoke:alerts
Secrets (database password, refresh secret) live in .env.local, which git ignores. Never commit them.
4. The tools
| Tool | What it returns |
|---|---|
list_rwa_yields | Tokenized RWA deployments with APY and TVL. Filter by chain, kind (treasury or other_rwa), minTvlUsd; sort by tvlUsd or apy |
get_rwa_asset | One symbol (e.g. BUIDL) across every chain, with total TVL and a curated description |
list_stablecoin_yields | Single-asset stablecoin pools (USDC, USDT, DAI, USDe, ...) on lending, vault, credit and basis venues, each labelled by group, with base vs reward APY, 30-day mean and TVL. $10M floor by default |
stablecoin_yield_summary | Per stablecoin: venues, TVL, median APY, best venue overall and best collateralized-lending venue; totals by group; tokenized-treasury median for comparison |
list_tokenized_equities | Tokenized stocks, pre-IPO shares and ETFs (xStocks, bStocks, Ondo, Robinhood, Dinari, Coinbase, ...): price, market cap, volume, underlying ticker, premium/discount to the underlying quote, chains. Source: CoinGecko, quotes via Yahoo chart data |
get_tokenized_equity | One underlying (e.g. TSLA) across every wrapper: issuers, chains, most liquid token, premium range |
tokenized_equity_summary | Totals, by issuer and kind, top underlyings, premium statistics |
rwa_market_summary | Totals: distinct treasury tokens, TVL, median APY, top five, plus other RWA totals |
compare_yield_to_tokenized_treasuries | Simple-interest arithmetic: your current APY vs the best liquid tokenized treasury over a horizon, with assumptions spelled out |
rwa_issuer_terms | Hand-curated terms for BUIDL, USYC, USDY, OUSG, USTB, TBILL, STBT, BENJI: structure, eligibility (US persons?), minimums, redemption, fees, sources, date verified |
rwa_history | Daily TVL and TVL-weighted APY for one symbol over the last N days, with the change. universe is rwa or stablecoin. Hosted: from Postgres snapshots. Local: from npm run snapshot files |
rwa_changes | What moved since N days ago: APY and TVL change per deployment, new and vanished deployments (hosted, or local with snapshots) |
create_alert, list_alerts, delete_alert | Hosted only, needs a key. A rule such as "any treasury APY above 4.5" or "USDY TVL below $1B". Checked hourly; fires a JSON POST to your HTTPS webhook (Slack, Discord, Zapier, your server) at most once per 24 hours |
create_api_key, my_usage, upgrade, manage_subscription | Hosted only. Free key by email (shown once), plan and usage, a Pro checkout link, and a Stripe billing-portal link to change or cancel |
4b. Plans, keys and metering (hosted)
| Plan | Price | Calls/day | Alerts | History | Changes | Stablecoin venues | Issuer terms | Tokenized equities |
|---|---|---|---|---|---|---|---|---|
| Anonymous | $0 | 100 per IP | 0 | 7 days | 1 day back | lending and vault, 10 rows | summary | 10 rows, no premiums |
| Free key | $0 | 300 | 3 | 7 days | 1 day back | lending and vault, 10 rows | summary | 10 rows, no premiums |
| Pro | $49/month | 5,000 | 100 | full | any range | all groups, 100 rows | full record with sources | 100 rows, premiums and premium sort |
Live data is free; depth is paid. Get a key by asking your agent to call create_api_key with your email; send it as an x-api-key header (or Authorization: Bearer), or as ?key=yc_... on the connector URL for claude.ai. Pro is bought with the upgrade tool (Stripe checkout) and managed with manage_subscription. Self-hosted servers have no plan limits.
claude.ai setup with a key. Custom connectors in claude.ai cannot send request headers, so the key goes in the URL: add a custom connector with https://mcp.yieldcave.com/?key=yc_your_key and "No sign-in". A header (x-api-key or Authorization: Bearer) wins when both are present. The server never logs query strings or keys. Treat the URL as a secret, since anyone holding it holds the key.
Every tools/call is counted in the usage_daily table against the key, or a hashed IP for anonymous callers. Limits reset at midnight UTC. Keys are stored as SHA-256 hashes; the plain key is returned once and never again. Alerts belong to the key that created them. All of this is in supabase/functions/mcp/index.ts; the limits themselves are in supabase/functions/_shared/plans.js.
Switching on payments needs a Stripe account and three values. Create a recurring $49/month product, add a webhook endpoint for https://ccvhvxbqtvqbhexhrjnj.supabase.co/functions/v1/stripe-webhook with the events checkout.session.completed, customer.subscription.deleted, customer.subscription.updated, then run:
./scripts/configure-stripe.sh sk_live_... price_... whsec_...
Until then, upgrade returns a polite "payments are not switched on yet". The webhook upgrades a key to Pro when checkout completes and downgrades it when the subscription ends; manage_subscription opens Stripe's billing portal (return URL https://yieldcave.com). Checkout success and cancel pages are https://yieldcave.com/thanks and https://yieldcave.com; a SITE_URL secret overrides both if you ever need to.
Landing page is https://yieldcave.com, hosted on Cloudflare (Workers static assets, the current form of Cloudflare Pages). Edit site/*.html, then publish with ./scripts/publish-site.sh, which runs wrangler pages deploy (one-time npx wrangler login first). The site Edge Function is a fallback copy of the same pages and is not linked from anywhere.
Every response carries a disclaimer and the time the data was fetched. Issuer terms are curated by hand in supabase/functions/_shared/issuers.js with a verifiedOn date and source URLs; update that file when terms change.
5. Project layout
src/data.js re-export of supabase/functions/_shared/data.js (fetch, normalize, cache, local snapshots, equities)
src/equities.js re-export of _shared/equities.js: tokenized stock parsing and tools
src/tools.js re-export of _shared/tools.js: pure functions behind each tool (unit-tested)
src/mcp.js re-export of _shared/mcp.js: declares the five tools
src/snapshot.js saves today's market locally (npm run snapshot)
src/server.js stdio entry point: Claude Desktop, Claude Code, Cursor
src/http.js HTTP entry point: claude.ai custom connectors, remote clients
src/demo.js prints a summary table in the terminal
test/ unit tests (node --test) and a live smoke test
site/ landing page with a live table (npm run site, then open http://localhost:8080)
6. How it works, for someone new to APIs
An API is a URL that returns data instead of a web page. Open https://yields.llama.fi/pools in a browser and you will see raw JSON for ~16,000 yield pools. src/data.js downloads that, keeps only the pools DefiLlama classifies as real-world assets, and reshapes each one into a dozen clearly named fields.
MCP is a small protocol that lets an AI model call functions you define. src/server.js tells the model "here are four functions, here is what each argument means"; when the model decides to call one, the server runs the matching function in src/tools.js and hands back JSON. Claude reads that JSON and writes the answer in English.
The server talks over stdio (standard input/output), which is why console.log is banned inside it: anything printed to stdout would corrupt the protocol stream. Use console.error for debugging.
7. Next steps
Hosted endpoint, history, issuer terms, webhook alerts, API keys and metering are live. Pro needs only a Stripe account to switch on. Next: a custom domain, and more asset classes (tokenized equities).
Disclaimer
Information only, not financial advice. Figures come from public third-party data and may be delayed or wrong. Verify with the issuer before acting.
License
MIT
Frequently asked questions
What is YieldCave MCP Server?
Tokenized asset data for agents: treasury yields, stablecoin rates, tokenized stocks, alerts.
How do I install YieldCave MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. YieldCave MCP Server connects to the remote endpoint https://mcp.yieldcave.com/, so there is nothing to install locally.
Is YieldCave MCP Server free and open source?
Yes. YieldCave MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does YieldCave MCP Server support remote (HTTP) connections?
Yes. YieldCave MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does YieldCave MCP Server provide?
YieldCave MCP Server provides 12 tools, including compare_yield_to_tokenized_treasuries, get_rwa_asset, get_tokenized_equity, and list_rwa_yields. See the full tool list for descriptions and parameters.
How is YieldCave MCP Server's trust score calculated?
YieldCave MCP Server scores 61 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.