Skip to main content
Glama
TradingView MCP Server

TradingView MCP Server

README.md
# Tradingview Mcp Server

![npm](https://img.shields.io/npm/v/@phoenix-assistant/tradingview-mcp-server)
![CI](https://github.com/phoenix-assistant/tradingview-mcp-server/actions/workflows/ci.yml/badge.svg)
![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)

> MCP server exposing TradingView real-time market data as tools

## Installation

```bash
npm install @phoenix-assistant/tradingview-mcp-server
```

## Quick Start

```bash
npx @phoenix-assistant/tradingview-mcp-server --port 3000
```

```typescript
import { createServer } from '@phoenix-assistant/tradingview-mcp-server';

const { server, close } = await createServer({ port: 3000 });
```

## API

### `createServer(config?)`

Start the server.

| Option | Type | Default | Description |
|--------|------|---------|-------------|
| `port` | `number` | `3000` | Server port |
| `host` | `string` | `0.0.0.0` | Server host |
| `verbose` | `boolean` | `false` | Enable logging |

### Endpoints

| Path | Method | Description |
|------|--------|-------------|
| `/health` | GET | Health check |
| `/api/status` | GET | Service status |

## Development

```bash
npm install
npm test
npm run build
```

## License

MIT © [Phoenix Assistant](https://github.com/phoenix-assistant)