Skip to main content

MCP Server

The Surf MCP server gives any MCP-compatible AI client (Claude Desktop, Cursor, Windsurf, etc.) direct access to crypto data. It dynamically generates tools from the OpenAPI spec — no code to write, no endpoints to memorize.

Quick Start

Add to your MCP client config:
Or with Bun (faster startup):

Prerequisites

Config File Locations

Tools

The server exposes 12 tools, one per API domain:

Usage Examples

Once configured, your AI assistant can use the tools directly:

How It Works

On startup, the server:
  1. Fetches the OpenAPI spec from https://api.asksurf.ai/gateway/openapi.json (cached for 24h)
  2. Groups all operations by their API tag
  3. Registers one MCP tool per tag with auto-generated descriptions and command enums
  4. Routes tool calls through @surf-ai/sdk for HTTP transport and auth
The server automatically picks up new API endpoints when the spec is updated — just restart.

Surf Skill vs MCP Server

Resources