Connecting to Nansen MCP

The Nansen MCP server provides AI assistants with access to comprehensive blockchain analytics through a secure API. This guide covers how to connect to Nansen MCP.

Prerequisites

Before connecting, you'll need:

  1. Nansen API Key: Get yours at app.nansen.ai/account?tab=api

  2. npx: Required for remote connections (npm install -g npx)

Connection Methods

1. Claude Desktop (One-Click Install; Claude Desktop Required)

The easiest way to get started with Nansen MCP. Double-click the downloaded .dxt file to configure automatically.

Quick Install Link

2. Claude Code (Terminal Integration)

Connect Nansen MCP through your terminal:

claude mcp add --transport http nansen <https://mcp.nansen.ai/ra/mcp/> --header "NANSEN-API-KEY: YOUR_API_KEY_HERE"

3. Other MCP Clients

Integration example for various other tools supporting MCPs

Server configuration:

  • Server: https://mcp.nansen.ai/ra/mcp/

  • Header: NANSEN-API-KEY: your_api_key

  • Transport: mcp-remote --allow-http

{
  "mcpServers": {
    "nansen-mcp": {
      "env": {
        "NANSEN_API_KEY": "your_api_key"
      },
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "<https://mcp.nansen.ai/ra/mcp/>",
        "--header",
        "NANSEN-API-KEY:${NANSEN_API_KEY}",
        "--allow-http"
      ]
    }
  }
}

NPX example:

npx -y mcp-remote <https://mcp.nansen.ai/ra/mcp/> \\
  --header "NANSEN-API-KEY:YOUR_API_KEY_HERE" \\
  --allow-http

Authentication

⚠️ Nansen MCP uses the same API as your regular API keys. Ensure you have sufficient credits for your usage.

Last updated

Was this helpful?