# Pyth Pro MCP server

> Provides AI assistants with real-time and historical market data for over 500 crypto, equities, FX, and commodities assets.

- Repository: https://github.com/pyth-network/pyth-crosschain
- Page: https://hostedmcp.org/servers/pyth-network/mcp
- Official: yes
- Transport: remote
- Stars: 255
- Latest version: 0.3.2

## Install

### Claude Code

```sh
claude mcp add --transport http mcp https://mcp.pyth.network/mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.pyth.network/mcp"
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "mcp": {
      "type": "http",
      "url": "https://mcp.pyth.network/mcp"
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp","type":"http","url":"https://mcp.pyth.network/mcp"}'
```

### Codex

```sh
codex mcp add mcp --url https://mcp.pyth.network/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.mcp]
url = "https://mcp.pyth.network/mcp"
```

### Gemini CLI

```sh
gemini mcp add -s user --transport http mcp https://mcp.pyth.network/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "url": "https://mcp.pyth.network/mcp",
      "type": "http"
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `PYTH_AUTH_HEADER` | no | no |  |
| `PYTH_PRO_ACCESS_TOKEN` | no | no |  |

## Tools (6)

- `get_symbols`
- `get_latest_price`
- `get_historical_price`
- `get_price_range`
- `get_candlestick_data`
- `convert_date_to_timestamp`

## FAQ

### Do I need an API key to use the server?

Yes, an access token is required for most tools like getting latest, historical, or candlestick prices, though searching for symbols is optional.

### How can I find out which price feeds are available?

You can use the `get_symbols` tool to search and list available price feeds, which can be filtered by asset or instrument type.

### Can I use this with Claude Desktop?

Yes, you can connect via custom connectors or by using the mcp-remote bridge to pass your authorization header.
