# mcp-market-data [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/CryptoAPIs-io/cryptoapis-mcp-market-data  
**GitHub Stars:** 0  
**npm Downloads (last month):** 618  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-market-data

## Description
MCP server for cryptocurrency asset prices, exchange rates, and market metadata via Crypto APIs

## Tools
Capabilities this server exposes over MCP:

- **market_data_metadata**
- **market_data_exchange_rates**
- **market_data_assets**

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "mcp-market-data": {
    "command": "npx",
    "args": ["-y","@cryptoapis-io/mcp-market-data"],
    "env": {
      "CRYPTOAPIS_API_KEY": "",
      "MCP_AUTH_TOKEN": ""
    }
  }
}
```

**Requires environment variables:** `CRYPTOAPIS_API_KEY`, `MCP_AUTH_TOKEN` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What mcp-market-data does

mcp-market-data exposes Crypto APIs Market Data operations through the Model Context Protocol. It focuses on asset discovery, exchange-rate lookups, and asset metadata rather than trading or portfolio actions.

The server can list supported cryptocurrency and fiat assets, optionally filtering by asset type and paginating with a limit and offset. Agents can request an exchange rate between two assets by symbol, such as BTC and USD, or by Crypto APIs asset ID. They can also retrieve details for a specific asset using either its symbol or ID.

The implementation targets Crypto APIs version 2024-12-12 and requires a Crypto APIs account and API key.

## How it works

Install the npm package and launch it as an MCP process. The default transport is stdio, which is suitable for desktop MCP clients that start the server as a subprocess. HTTP transport is also available and serves the MCP endpoint at `/mcp` by default.

In HTTP mode, the server can use one API key for all requests, supplied at startup, or accept a separate `x-api-key` header on each request. The latter supports deployments where callers provide their own Crypto APIs credentials. HTTP listens on `127.0.0.1` unless another host is selected.

## Setup and configuration

Install the package with:

```bash
npm install @cryptoapis-io/mcp-market-data
```

Run it with an argument:

```bash
npx @cryptoapis-io/mcp-market-data --api-key YOUR_API_KEY
```

Alternatively, set `CRYPTOAPIS_API_KEY` before starting the default stdio server. HTTP deployments can set `--transport http`, choose a port with `--port`, and change the MCP route with `--path`. The default port is `3000`.

Claude Desktop and Cursor configurations can launch the package through `npx` and pass the API key in the client environment. The server can also be connected to n8n through its MCP Client Tool after starting HTTP mode.

For remote access, bind HTTP to an appropriate interface with `--host`. Use `MCP_AUTH_TOKEN` or `--auth-token` to require a Bearer token, and configure `--allowed-hosts` when binding beyond loopback. The server also supports stateless HTTP mode with `--stateless`.

## Tools and capabilities

- `market_data_metadata`: lists supported crypto and fiat assets with optional type, limit, and offset parameters.
- `market_data_exchange_rates`: obtains rates by two asset symbols or two asset IDs.
- `market_data_assets`: retrieves asset details by symbol or unique asset ID.

The package can be installed independently or as part of the broader `@cryptoapis-io/mcp` package. MCP Inspector can be used to test the server from the command line.

## Limitations and notes

A valid Crypto APIs key is required before making requests. Stdio mode requires the key at startup; HTTP mode can instead require an `x-api-key` header for every request. Invalid or missing credentials may cause Crypto APIs to ban the requesting IP.

HTTP binds to localhost by default, so other machines and containers cannot connect until the host is changed. Non-loopback deployments should use authentication and host allowlisting. Avoid placing bearer tokens directly in command-line arguments where they may be visible in the process list; the `MCP_AUTH_TOKEN` environment variable is preferred.

The server provides the Market Data operations listed above. Its tools do not cover exchange trading, order placement, or portfolio management.

_Full upstream README: https://allmcps.com/mcp/mcp-market-data/readme_

