> ## Documentation Index
> Fetch the complete documentation index at: https://docs.60db.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Installation

# Installation

Install and set up the 60db MCP Server.

**Source code:** [github.com/60db-ai/mcp](https://github.com/60db-ai/mcp) · **npm:** [`60db-mcp-server`](https://www.npmjs.com/package/60db-mcp-server)

## Prerequisites

* **Node.js 18+** - [Download](https://nodejs.org/)
* **60db API Key** - Get from [https://app.60db.ai](https://app.60db.ai)

## Install from npm

```bash theme={null}
npm install -g 60db-mcp-server
```

Verify the binary is on your PATH:

```bash theme={null}
60db-mcp-server --help
```

## Install from Source

```bash theme={null}
# Clone the public repository
git clone https://github.com/60db-ai/mcp.git
cd mcp

# Install dependencies
npm install

# Build the server (TypeScript → dist/)
npm run build

# Run it
npm start
```

## Verify Installation

```bash theme={null}
# Check if server is installed
60db-mcp-server --version

# Or if installed from source
npm start
```

## Environment Setup

Set your API key:

```bash theme={null}
# Set 60db API key
export SIXTYDB_API_KEY=sk_your_api_key_here

# Set API base URL (optional, defaults to https://api.60db.ai)
export SIXTYDB_API_BASE_URL=https://api.60db.ai
```

Alternatively, authenticate with a JWT:

```bash theme={null}
export SIXTYDB_JWT_TOKEN=your_jwt_token_here
```

<Note>
  Legacy `QLABS_API_KEY`, `QLABS_JWT_TOKEN`, and `QLABS_API_BASE_URL` env vars are still honored for backward compatibility — existing configs will continue to work after the rename, but new deployments should use the `SIXTYDB_*` names.
</Note>

### Making it Permanent

Add to your `~/.bashrc`, `~/.zshrc`, or `~/.profile`:

```bash theme={null}
echo 'export SIXTYDB_API_KEY=sk_your_api_key_here' >> ~/.bashrc
source ~/.bashrc
```

## Development Setup

For development with auto-reload:

```bash theme={null}
npm run dev
```

## Production Build

```bash theme={null}
npm run build
npm start
```

## Next Steps

* [Configuration](/mcp-server/configuration) - Complete the setup
* [Claude Desktop](/mcp-server/claude-desktop) - Integrate with Claude
