跳到主要内容

What is MCP

The Model Context Protocol (MCP) is an open protocol that defines how AI models communicate with external tools and data sources. The Cryptohopper Market Data MCP is an implementation of this protocol that exposes crypto market data — orderbooks, tickers, and candles — to any MCP-compatible client.

This page is the reference explainer. For the long-form blog version, see What is MCP, and why does it matter for crypto traders?

Definition

MCP is a standardised interface through which a language model can:

  • Discover the tools available on a server (tool discovery).
  • Invoke a tool with structured arguments (tool invocation).
  • Receive structured results (tool response).

MCP was introduced by Anthropic in late 2024 and is now supported by major AI clients including Claude Code, Claude desktop, Cursor, VS Code, Zed, Gemini CLI, and OpenAI Codex.

Primitives

An MCP server may expose three kinds of primitives:

PrimitiveDescriptionExample in the Cryptohopper MCP
ToolA function the model can call. Defined by name, description, and argument schema.get_ticker, get_orderbook, get_candles
ResourceA named piece of data the model can read.Not currently exposed
PromptA reusable prompt template suggested by the server.Not currently used by the Cryptohopper MCP

The Cryptohopper Market Data MCP uses tools only. See Architecture for the full surface.

Transport

The Cryptohopper MCP uses HTTP with Server-Sent Events (SSE) as its transport:

  • Initial handshake and authentication: HTTP
  • Ongoing tool invocations: SSE stream
  • Request encoding: JSON
  • Authentication: bearer token in the Authorization header
  • Endpoint: https://mcp-data.cryptohopper.com/mcp

Interaction model

A typical interaction proceeds as follows:

  1. The client connects to the server and authenticates.
  2. The client queries the server for available tools.
  3. The server returns a list of tool definitions, each including a JSON schema for its arguments.
  4. The client presents the tool definitions to the language model.
  5. The model decides whether to call a tool based on the user's message.
  6. If the model chooses a tool, the client invokes it on the server and receives the result.
  7. The result is inserted into the model's context and a response is generated.

Note: The model does not hold persistent state between tool calls. Each call is independent.

Comparison with REST

MCP does not replace REST APIs. It is optimised for different use cases:

AxisREST APIMCP
CallerApplication codeAI model / agent
Tool discoveryManual (developer reads docs)Automatic (model reads schema)
Request shapeURL + paramsStructured tool call
Best forETL, bots, dashboardsInteractive analysis, agents
Latency profileLow, fixedLow per call + model reasoning
DeterminismHighDepends on model

See MCP vs. REST API for crypto market data for the extended comparison.

Capabilities exposed by the Cryptohopper MCP

The Cryptohopper Market Data MCP exposes tools for:

  • Retrieving current ticker data for a specific pair on a specific exchange.
  • Retrieving a snapshot of the orderbook for a specific pair on a specific exchange.
  • Retrieving candle (OHLCV) data at configurable timeframes.
  • Listing supported exchanges.
  • Listing supported pairs on a given exchange.
  • Returning the current usage and quota for the authenticated account.
  • The tools available depend on the active subscription tier. See subscription tiers.

Limitations

The Cryptohopper Market Data MCP is read-only. It does not:

  • Execute trades.
  • Manage orders or positions.
  • Modify account state.
  • Persist data between calls.

Trade execution is available through the Cryptohopper REST Trading API. See Combine MCP + Cryptohopper Trading API for end-to-end agents. A dedicated trade-execution MCP is on the roadmap.

Security properties

  • All connections are over TLS.
  • Authentication is per-account bearer token.
  • Tokens are revocable from the Cryptohopper account interface.
  • The server does not persist session state.

See API key security best practices.

Specification

MCP is an open specification maintained by Anthropic. The full specification is available at modelcontextprotocol.io.

本文对您有帮助吗?

免费开始使用Cryptohopper进行交易!

免费使用 – 无需信用卡

Let's get started
即将推出新应用!