# CoinGecko — Pipedream Connect

> The most reliable & comprehensive cryptocurrency data API for traders, developers, and enterprises

- API slug: `coingecko` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Web & App Development
- Website: https://www.coingecko.com/
- This page (HTML): https://pipedream.com/apps/coingecko
- Tools: 12 actions · 0 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: coingecko`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "coingecko",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Get Coin:
const result = await mcp.callTool({
  name: "coingecko-get-coin",
  arguments: {
    coinId: "Coin ID",
    localization: true,
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "coingecko-get-coin",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    coingecko: { authProvisionId: "apn_xxxxxxx" },
    coinId: "Coin ID",
    localization: true,
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (12)

### `coingecko-get-coin` — Get Coin (Read-only)

Get current data for a coin by its ID, including price, market cap, volume, community data, and developer data. See the documentation

Full schema: https://pipedream.com/apps/coingecko/actions/get-coin.md

### `coingecko-get-coin-history` — Get Coin History (Read-only)

Get historical data (price, market cap, and volume) for a coin on a specific date. See the documentation

Full schema: https://pipedream.com/apps/coingecko/actions/get-coin-history.md

### `coingecko-get-coin-value` — Get Coin Value (Read-only)

Get the current price of one or more cryptocurrencies in any supported currencies. See the documentation

Full schema: https://pipedream.com/apps/coingecko/actions/get-coin-value.md

### `coingecko-get-exchange-rates` — Get Exchange Rates (Read-only)

Get BTC-to-currency exchange rates for currencies recognized by CoinGecko. See the documentation

Full schema: https://pipedream.com/apps/coingecko/actions/get-exchange-rates.md

### `coingecko-get-global-defi-market-overview` — Get Global DeFi Market Overview (Read-only)

Get the current DeFi market data from the top 100 cryptocurrencies, including DeFi market cap, trading volume, and top coin dominance. See the documentation

Full schema: https://pipedream.com/apps/coingecko/actions/get-global-defi-market-overview.md

### `coingecko-get-global-market` — Get Global Market (Read-only)

Get global cryptocurrency market data including total market cap, total volume, market cap percentage, and more. See the documentation

Full schema: https://pipedream.com/apps/coingecko/actions/get-global-market.md

### `coingecko-list-coin-tickers` — List Coin Tickers (Read-only)

List trading tickers for a specified coin, including exchange info, price, volume, and trust score. See the documentation

Full schema: https://pipedream.com/apps/coingecko/actions/list-coin-tickers.md

### `coingecko-list-coins` — List Coins (Read-only)

List all supported coins with their ID, name, and symbol on CoinGecko. See the documentation

Full schema: https://pipedream.com/apps/coingecko/actions/list-coins.md

### `coingecko-list-markets` — List Markets (Read-only)

Search for coins, exchanges, NFTs, and categories on CoinGecko. See the documentation

Full schema: https://pipedream.com/apps/coingecko/actions/list-markets.md

### `coingecko-list-trending-coins` — List Trending Coins (Read-only)

List the top-7 trending coins on CoinGecko based on search volume in the last 24 hours. See the documentation

Full schema: https://pipedream.com/apps/coingecko/actions/list-trending-coins.md

### `coingecko-list-trending-nfts` — List Trending NFTs (Read-only)

List the top-7 trending NFTs on CoinGecko based on the highest trading volume in the last 24 hours. See the documentation

Full schema: https://pipedream.com/apps/coingecko/actions/list-trending-nfts.md

### `coingecko-list-vs-currency-options` — List vs Currency Options (Read-only)

Retrieves available options for the vs Currency field.

Full schema: https://pipedream.com/apps/coingecko/actions/list-vs-currency-options.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
