# Crypto Data MCP Server (`gochujang/crypto-data-mcp`) Actor

Real-time crypto market data exposed as an MCP (Model Context Protocol) server. AI agents connect directly and call tools: kimchi premium, DeFi yields, ETF flows, Fear & Greed index, funding rates, market overview. No API keys required. Runs as a persistent HTTP server.

- **URL**: https://apify.com/gochujang/crypto-data-mcp.md
- **Developed by:** [Hojun Lee](https://apify.com/gochujang) (community)
- **Categories:** Developer tools
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Crypto Data MCP Server

Real-time crypto market data exposed as an **MCP (Model Context Protocol) server**. Connect Claude Desktop or any MCP-compatible AI agent directly — no scraping, no API keys, no setup required.

> **Important:** This is a **server actor**, not a one-shot scraper. Do NOT click "Run" — use the **Standby URL** to connect your AI agent. Clicking "Run" starts a short-lived instance that will time out.

***

### ⚡ Connect in 60 seconds (Claude Desktop)

1. **Get your Standby URL** from the actor page → **Integrations** tab → copy the Standby URL\
   Format: `https://xxxxxxxxxxxxxxxx.apify.actor`

2. **Add to Claude Desktop config** (`claude_desktop_config.json`):

```json
{
  "mcpServers": {
    "crypto-data": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://your_standby_url/mcp/v1"]
    }
  }
}
```

3. **Restart Claude Desktop** — the 6 crypto tools appear automatically.

***

### What is MCP?

Model Context Protocol lets AI assistants (Claude, GPT, etc.) call external tools in a standardized way. This actor runs as a persistent MCP server that your AI agent queries for live crypto data.

***

### Available Tools

| Tool | Description |
|------|-------------|
| `get_kimchi_premium` | Korean exchange premium vs global BTC/ETH price |
| `get_defi_yields` | Top DeFi yield opportunities (DefiLlama) |
| `get_etf_flows` | BTC/ETH spot ETF daily inflow/outflow data |
| `get_fear_greed` | Crypto Fear & Greed Index (0–100) |
| `get_funding_rates` | Perpetual funding rates across major CEXs |
| `get_market_overview` | BTC dominance, total market cap, top movers |

***

### MCP Endpoints

Once connected via the Standby URL:

| Endpoint | Method | Description |
|----------|--------|-------------|
| `/mcp/v1` | POST | MCP tool call (JSON-RPC) |
| `/mcp/v1/tools` | GET | List available tools |
| `/health` | GET | Health check |

***

### Example Tool Calls

**Fear & Greed Index:**

```json
{
  "method": "tools/call",
  "params": { "name": "get_fear_greed", "arguments": {} }
}
```

**DeFi yields with filters:**

```json
{
  "method": "tools/call",
  "params": {
    "name": "get_defi_yields",
    "arguments": { "min_apy": 8.0, "min_tvl": 5000000, "limit": 10 }
  }
}
```

**ETF flows:**

```json
{
  "method": "tools/call",
  "params": {
    "name": "get_etf_flows",
    "arguments": { "etf_type": "us-btc-spot" }
  }
}
```

***

### Tool Parameters

#### `get_defi_yields`

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `min_apy` | number | 5.0 | Minimum APY % |
| `min_tvl` | number | 1,000,000 | Minimum TVL in USD |
| `limit` | integer | 20 | Max results |

#### `get_etf_flows`

| Parameter | Type | Values |
|-----------|------|--------|
| `etf_type` | string | `us-btc-spot`, `us-eth-spot` |

#### `get_funding_rates`

| Parameter | Type | Default |
|-----------|------|---------|
| `symbols` | array | `["BTC", "ETH", "SOL", "BNB", "XRP"]` |

***

### Input Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `port` | integer | `8080` | Internal port for the MCP server |

***

### Use Cases

- **Claude Desktop** — Ask "what's the Bitcoin fear & greed today?" and get live data
- **AI trading agents** — Feed real-time market context into automated strategies
- **Crypto chatbots** — Add live data to any LLM without managing API keys
- **Research pipelines** — Pull structured market data on demand

***

### Notes

- This actor uses **Apify Standby mode** — it stays alive and responds to requests on demand
- Connect via the **Standby URL** from the Integrations tab, not by clicking "Run"
- Data sources: CoinGecko, DefiLlama, SoSoValue, Alternative.me (no API keys needed)
- No Apify API token required for the MCP connection itself

# Actor input Schema

## `port` (type: `integer`):

Port for the MCP HTTP server. Default 8080. Overridden by ACTOR\_STANDBY\_PORT env var.

## `maxRuntimeSecs` (type: `integer`):

Auto-shutdown after N seconds. 0 = run indefinitely (real standby mode). For testing set to 240 or less.

## Actor input object example

```json
{
  "port": 8080,
  "maxRuntimeSecs": 240
}
```

# 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 = {
    "maxRuntimeSecs": 0
};

// Run the Actor and wait for it to finish
const run = await client.actor("gochujang/crypto-data-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 = { "maxRuntimeSecs": 0 }

# Run the Actor and wait for it to finish
run = client.actor("gochujang/crypto-data-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 '{
  "maxRuntimeSecs": 0
}' |
apify call gochujang/crypto-data-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gochujang/crypto-data-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/y2eh2LeEbyCksWL9k/builds/AfJXDaEcCkBmtCfZd/openapi.json
