# Crypto & DeFi MCP — TVL, Stablecoins & Funding for AI Agents (`nexgendata/crypto-defi-mcp`) Actor

MCP server exposing DeFi TVL, stablecoin supply, perp funding, top coins and prediction-market data as agent tools. Connect Claude, Cursor, n8n.

- **URL**: https://apify.com/nexgendata/crypto-defi-mcp.md
- **Developed by:** [NexGenData](https://apify.com/nexgendata) (community)
- **Categories:** MCP servers, AI, Business
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 10 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $100.00 / 1,000 data tool calls

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Crypto & DeFi MCP

Crypto & DeFi MCP is a NexGenData tool on Apify that returns DeFi TVL, stablecoin supply, funding rates and prediction-market data as agent tools from public crypto and DeFi data sources.

A Model Context Protocol server that gives AI agents on-chain and crypto-market data — TVL, stablecoins, funding, prediction markets — as callable tools. For crypto and DeFi agent builders.

### 📊 Sample Output

This actor runs as a standby MCP server: it starts, answers tool calls at its `/mcp` endpoint and writes no dataset rows, so there is no row table to show. See the tool list and the sample inputs below.

### 💰 Pricing

**Called-actor charges:** each tool call runs one of our NexGenData data actors on your Apify account, and that actor's own per-result price is charged on top of this server's per-call fee.

| Event | Price (USD) | When it is charged |
|---|---|---|
| Actor Start (`apify-actor-start`) | $0.0005 | Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event). |
| Data tool call (`tool-call`) | $0.1 | Charged per tool invocation across the bundle. |
| Bulk results (`bulk-results`) | $0.05 | Charged when a tool returns more than 10 records. |

Pay-per-event: you pay only for what the run delivers. A run that delivers nothing bills no result events (only the actor-start event, when the actor defines one). Example: a run that delivers 100 results costs 100 × $0.1 = $10.00 plus the start fee.

### 🔗 Related Actors

More from the NexGenData **MCP servers for AI agents** family:

- [Banking & Financial Stability MCP — for AI Agents](https://apify.com/nexgendata/banking-financial-stability-mcp?fpr=2ayu9b)
- [China A-Share Market MCP — Screener & Filings for AI Agents](https://apify.com/nexgendata/china-market-intelligence-mcp?fpr=2ayu9b)
- [Chinese Social Signals MCP — Weibo & Douyin for AI Agents](https://apify.com/nexgendata/chinese-social-signals-mcp?fpr=2ayu9b)
- [Crypto Prices MCP Server — Coin Prices & FX for AI Agents](https://apify.com/nexgendata/crypto-mcp-server?fpr=2ayu9b)
- [Domain Intelligence MCP — DNS, WHOIS & SSL for AI Agents](https://apify.com/nexgendata/domain-intelligence-mcp-server?fpr=2ayu9b)
- [Ecommerce Intelligence MCP — Shopify Data for AI Agents](https://apify.com/nexgendata/ecommerce-intelligence-mcp-server?fpr=2ayu9b)

29 more in this family on the [NexGenData Store page](https://apify.com/nexgendata?fpr=2ayu9b).

### 🛠 Tools (6)

- `get_defi_tvl` — Total value locked by DeFi protocol/chain.
- `get_stablecoins` — Stablecoin supply and peg data.
- `get_perp_funding` — Perpetual-swap funding rates.
- `get_crypto_top100` — Top 100 coins by market cap.
- `get_kalshi_markets` — Kalshi prediction-market data.
- `get_polymarket_markets` — Polymarket prediction-market data.

### 🔌 Connect (Claude Desktop / Cursor / n8n / OpenAI Agents SDK)

Add this MCP server to your client config:

```json
{
  "mcpServers": {
    "crypto-defi": {
      "url": "https://nexgendata--crypto-defi-mcp.apify.actor/mcp"
    }
  }
}
```

**Sample agent prompt:**

```
Which stablecoins have the largest supply, and what are the top DeFi protocols on Base by TVL?
```

**Pricing:** $0.10 per tool call (Pay-Per-Event). Runs in Standby mode.

***

### Related NexGenData actors

Part of NexGenData's **Finance / Markets and MCP** clusters — pair this server with:

- [DeFi TVL Protocol Tracker](https://apify.com/nexgendata/defi-tvl-protocol-tracker)
- [Stablecoin Supply & Peg Monitor](https://apify.com/nexgendata/stablecoin-supply-peg-monitor)
- [Crypto Perp Funding Rates Tracker](https://apify.com/nexgendata/crypto-perp-funding-rates-tracker)
- [Kalshi Prediction Markets Tracker](https://apify.com/nexgendata/kalshi-prediction-markets-tracker)
- [Polymarket Prediction Markets Tracker](https://apify.com/nexgendata/polymarket-prediction-markets-tracker)
- [Crypto Top-100 Screener](https://apify.com/nexgendata/crypto-top100-screener)

Browse the full 200+ actor catalog at **https://apify.com/nexgendata**.

*Factual public data — not financial or investment advice.*

# Actor input Schema

## Actor input object example

```json
{}
```

# Actor output Schema

## `mcpEndpoint` (type: `string`):

Connect any MCP client (Claude, Cursor, n8n, the OpenAI Agents SDK) to this server's tools. Stable Standby URL: https://nexgendata--crypto-defi-mcp.apify.actor/mcp — send your Apify API token as an `Authorization: Bearer` header. For a single run started from the Console or API, the endpoint is this run's container URL + /mcp. Each tool call is billed per the Actor's live pay-per-event price.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("nexgendata/crypto-defi-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("nexgendata/crypto-defi-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call nexgendata/crypto-defi-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nexgendata/crypto-defi-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/OuHHvMZxkIMMW8aXr/builds/WPMfJDwyKRqBpV5xa/openapi.json
