Skip to main content
Glama
PaulieB14

graph-lending-mcp

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_protocols

List all supported lending protocols with TVL, borrow totals, and network. Optionally filter by network or schema version.

get_protocol

Full LendingProtocol data for a single protocol: revenue, user counts, transaction counts, TVL.

get_markets

Top markets for a protocol ordered by TVL. Returns rates, caps, LTV thresholds.

get_market

Deep-dive on a single market by its contract address ID.

get_interest_rates

Current supply and borrow APRs across all markets in a protocol. Filter by side or rate type.

get_account

Account summary: open/closed position counts, deposit/borrow/liquidation counts, and current open positions.

get_positions

Open positions for a wallet address. Optionally filter by side (COLLATERAL or BORROWER).

get_deposits

Recent deposit transactions for a market or account.

get_borrows

Recent borrow transactions for a market or account.

get_repays

Recent repay transactions for a market or account.

get_withdrawals

Recent withdrawal transactions for a market or account.

get_liquidations

Recent liquidation events with liquidator, liquidatee, collateral asset, profitUSD.

get_flashloans

Recent flashloan events including fee amounts.

get_daily_financials

Protocol-level daily snapshots: TVL, volume, revenue. Last N days.

get_market_snapshots

Daily snapshots for a specific market: price, TVL, volume, rates history.

get_usage_metrics

Daily active user counts and transaction activity for a protocol.

compare_protocols

Fetch and compare multiple protocols side-by-side sorted by TVL. Tolerates individual endpoint failures.

top_markets_by_tvl

Global top N markets by TVL across all registered protocols. Optionally filter by network.

query_subgraph

Execute a raw GraphQL query against any registered lending subgraph. Use this when the built-in tools don't cover what you need — custom filters, uncommon fields, exploratory queries. Returns raw JSON.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PaulieB14/graph-lending-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server