# coin_api_mcp

> MCP Server

This repository hosts a Model Context Protocol server providing access to CoinMarketCap's cryptocurrency data, enabling AI applications to retrieve listings, quotes, and detailed information about various coins. This repository hosts

## Overview

- **Category:** Developer Tools
- **Language:** Python
- **Stars:** 37
- **Forks:** 1
- **Owner:** longmans
- **GitHub:** https://github.com/longmans/coin_api_mcp
- **Created:** 2024-12-14T16:29:01+00:00
- **Updated:** 2025-03-26T15:26:08+00:00
- **Source:** https://model-context-protocol.com/servers/coin-api-cryptocurrency-data-model-context

## Setup

## Setup

**Installing via Smithery:**

```bash
npx -y @smithery/cli install coin-api-mcp --client claude
```

**Build the Server:**

1.  Clone the repository: `git clone https://github.com/longmans/coin_api_mcp.git`
2.  Navigate to the directory: `cd coin_api_mcp`
3.  Build: `uv build`
4.  Install: `uv pip install .`

**Running the Server:**

```bash
python -m coin_api_mcp
```

**Configuration:**

1.  Set the `COINMARKETCAP_API_KEY` environment variable: `export COINMARKETCAP_API_KEY=your_api_key_here`
2.  Alternatively, provide the API key as a command-line argument: `python -m coin_api_mcp --api-key=your_api_key_here`

**Configure for Claude.app:**

Add the following to your Claude settings:

```json
"mcpServers": {
  "coin_api": {
    "command": "python",
    "args": ["-m", "coin_api_mcp"]
  },
  "env": {
        "COINMARKETCAP_API_KEY": "your_api_key_here"
  }
}
```

Remember to set the `COINMARKETCAP_API_KEY` environment variable or provide it via the `--api-key` argument.

## Tools

## Available Tools

1.  `listing-coins` (Fetches a paginated list of all active cryptocurrencies with the latest market data.)
2.  `get-coin-info` (Retrieves detailed information about a specific cryptocurrency.)
3.  `get-coin-quotes` (Fetches the latest market quotes for one or more cryptocurrencies.)
